]> 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)
commit0d5ee9abbdd2493cb8503407bd5ba78a12909f4f
tree95e582416ee448ca113807688f587e5f2f06dff1
parent0147eb985138cd9d701cc886f9f969ea7d8ef095
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