nl80211: accept testmode dump with netdev
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Dec 2011 16:22:05 +0000 (17:22 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Dec 2011 19:50:11 +0000 (14:50 -0500)
commit00918d33c0e9966392e5a13aeacd712b9da473c9
treea0fd2e1efffc820244f371cb15652a88ecf38715
parent5d22df200beccb1dea26fe4d8684ed93ae2f0aeb
nl80211: accept testmode dump with netdev

All nl80211 commands that need only the wiphy
still allow identifying it by giving an interface
index, except, as Kenny pointed out, the testmode
dump support.

Fix this by looking up the wiphy via the ifidx in
this case as well.

Tested-by: Kenny Hsu <kenny.hsu@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c