]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcab37ad8e7ded34505eb6dfdb697ffd67813f2bd
treea0fd2e1efffc820244f371cb15652a88ecf38715
parent5a545b49e0b27df12db8cd10e43d558c015d8b51
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