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)
commit2bd7e35da011f51d4fdb3b71f888c3a50194bfcd
tree5c21d882b27059aef8db432bb92c83c02c23113e
parent878d9ec7367816dc336b0c24e6256596559692b7
nl80211: use __cfg80211_rdev_from_attrs for testmode

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