mac80211: Recalc min chandef when station is associated
authorIlan Peer <ilan.peer@intel.com>
Sun, 13 Dec 2015 11:41:43 +0000 (13:41 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 24 Feb 2016 08:04:19 +0000 (09:04 +0100)
commita7201a6c5ea0157e96d17240d185a538bfdb7038
tree83db0d468d7db0d7a1cb290b903e820baa987402
parent178830481eee5eea147a1c8fab67a96e09d80345
mac80211: Recalc min chandef when station is associated

The minimum chandef bandwidth calculation was done only in case
a new station was inserted (or when an existing station was removed).
However, it is possible that stations are inserted before they are
associated, e.g., when FULL_AP_CLIENT_STATE is supported and user
space adds stations unassociated.

Fix this by calling ieee80211_recalc_min_chandef() whenever
a station transitions in/out the associated state, and only
consider station marked as associated.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c
net/mac80211/sta_info.c