]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit237961eff6c4f56ae98dba1506f7a52b176d3c4d
tree95e582416ee448ca113807688f587e5f2f06dff1
parent8ea35bb04a078503d56c0402e9193dc6cb3836d7
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