cfg80211: stop sched scan only when needed
authorBarak Bercovitz <barak@wizery.com>
Thu, 5 Dec 2013 09:21:26 +0000 (11:21 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 5 Dec 2013 16:15:38 +0000 (17:15 +0100)
commit24d584d70e478bf2e815135e8bf60f72685046f7
tree211e09aaa79c1a3d3fc99e4e3dace0b5a0765e7f
parentd1e33e654ef6bb3dee766353ed9dd31e7dcb8a94
cfg80211: stop sched scan only when needed

cfg80211_leave stops sched scan when any station vif
is leaving. Add an explicit check and call it only
when the relevant vif (the one we scan on) is leaving.

Signed-off-by: Barak Bercovitz <barak@wizery.com>
[Eliad - changed the commit message a bit]
Signed-off-by: Eliad Peller <eliad@wizery.com>
[Johannes - add ASSERT_RTNL since that protects the pointer]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c