mac80211: reset probe_send_count also in HW_CONNECTION_MONITOR case
authorEliad Peller <eliad@wizery.com>
Tue, 11 Feb 2014 10:30:18 +0000 (12:30 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Feb 2014 11:58:32 +0000 (12:58 +0100)
commit448cd2e248732326632957e52ea9c44729affcb2
tree2d75253fd63bec208aff353edeff23dd666ea6fe
parentb59ec8dd4394cf11e3253e849a04734be6d3d694
mac80211: reset probe_send_count also in HW_CONNECTION_MONITOR case

In case of beacon_loss with IEEE80211_HW_CONNECTION_MONITOR
device, mac80211 probes the ap (and disconnects on timeout)
but ignores the ack.

If we already got an ack, there's no reason to continue
disconnecting. this can help devices that supports
IEEE80211_HW_CONNECTION_MONITOR only partially (e.g. take
care of keep alives, but does not probe the ap.

In case the device wants to disconnect without probing,
it can just call ieee80211_connection_loss.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/mlme.c