mac80211: disconnect iface if CSA unexpectedly fails
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 8 May 2014 07:10:02 +0000 (09:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 May 2014 09:57:27 +0000 (11:57 +0200)
commitcf8767dd7635d2209485dc765965d33537ad66eb
tree95e582416ee448ca113807688f587e5f2f06dff1
parent771bb3ddc225d6dbbef8f22838c1287c4e3cd02b
mac80211: disconnect iface if CSA unexpectedly fails

It doesn't make much sense to leave a crippled
interface running.

As a side effect this will unblock tx queues with
CSA reason immediately after failure instead of
until after userspace requests interface to stop.

This also gives userspace an opportunity to
indirectly see CSA failure.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
[small code cleanup]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c