iwlwifi: mvm: set AID to firmware only for associated stations
authorJohannes Berg <johannes.berg@intel.com>
Thu, 1 Dec 2016 15:25:30 +0000 (16:25 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 3 Feb 2017 14:26:43 +0000 (16:26 +0200)
commit6ea29ce5749687d125d56b6748fa68eee1791f6e
tree9006af6866db0d05b1d64a2f1aa3640646e0d237
parentcba84570a0eb8826bcd69627fd975935bdcf7eaf
iwlwifi: mvm: set AID to firmware only for associated stations

The firmware will soon actually look at the AID field, and
when it does that it'll try to ensure that the AID is never
changing. Due to the way the station is added, it may start
with an invalid AID before it's associated, so to ensure a
constant AID (once it becomes non-zero), track the station
state and set the AID only when the station is associated
and when it disassociates.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.h