]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: abort CAC in stop_ap()
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Tue, 11 Jun 2013 08:44:39 +0000 (10:44 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 12 Jun 2013 07:12:43 +0000 (09:12 +0200)
commit7085ab6a69baf3989863d19d8cdcdf2d6b4fc136
tree8cf001a4de84b487f7fbbdcf79af64e953adf211
parent61589bf1622afdbb9cd8e15d10c308096d652de0
mac80211: abort CAC in stop_ap()

When a CAC is running and stop_ap is called (e.g. when hostapd is killed
while performing CAC), the CAC must be aborted immediately.
Otherwise ieee80211_stop_ap() will try to stop it when it's too late -
wdev->channel is already NULL and the abort event can not be generated.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c