diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-01-29 13:13:50 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-02-04 16:09:58 +0100 |
commit | 682bd38b8ac1fa3e84e84cddd1f1d7eeebce1212 (patch) | |
tree | b05470db358c1a0b86552e5f659a098fc2968bfa /net/mac80211/ieee80211_i.h | |
parent | mac80211: send deauth when connection is lost (diff) | |
download | linux-682bd38b8ac1fa3e84e84cddd1f1d7eeebce1212.tar.xz linux-682bd38b8ac1fa3e84e84cddd1f1d7eeebce1212.zip |
mac80211: always allow calling ieee80211_connection_loss()
With multi-channel, there's a corner case where a driver
doesn't receive a beacon soon enough to be able to sync
its timers with the AP. In this case, the only recovery
(after trying again) is to disconnect from the AP. Allow
calling ieee80211_connection_loss() for such cases. To
make that possible, modify the work function to not rely
on the IEEE80211_HW_CONNECTION_MONITOR flag but use new
state kept in the interface instead.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index c9c66dec170a..25a0647ada8f 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -391,6 +391,7 @@ struct ieee80211_if_managed { unsigned long probe_timeout; int probe_send_count; bool nullfunc_failed; + bool connection_loss; struct mutex mtx; struct cfg80211_bss *associated; |