nl80211: use __cfg80211_rdev_from_attrs for testmode
authorJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jun 2012 12:23:16 +0000 (14:23 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jun 2012 08:57:03 +0000 (10:57 +0200)
To fix the testmode cross-namespace access problem,
use __cfg80211_rdev_from_attrs() to get the device
instead of open-coding similar functionality.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c

Simple merge