]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: reset CQM history upon reconfiguration
authorSara Sharon <sara.sharon@intel.com>
Mon, 21 Sep 2015 12:47:40 +0000 (15:47 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Sep 2015 13:22:50 +0000 (15:22 +0200)
commitf4d8a9b4e55a167b200282314ee5f7743233d5ad
treea252db421217b4173274814420c98308dddaec48
parent9fb6f941f993c912af44fbd1b468b74bd1d168a2
mac80211: reset CQM history upon reconfiguration

The current behavior of notifying CQM events is inconsistent:
Upon first configuration there is a cqm event with the current
status according to threshold configured, regardless of signal
stability.
When there is reconfiguration no event is sent unless there is
a significant change to the signal level according to the new
configuration.

Since the current reconfiguration behavior might cause missing
CQM events in case the current signal did not change but is on
the other side of the new threshold, fix that by resetting the
stored signal level upon reconfiguration.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c