summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
diff options
context:
space:
mode:
authorAyala Beker <ayala.beker@intel.com>2015-12-16 00:32:07 +0200
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-12-20 23:27:43 +0200
commit8be30c13ebafdf743ab638a83095715a01bc1071 (patch)
tree774e03fe5f82b396d634e44eb195fcd82d6df59e /drivers/net/wireless/intel/iwlwifi/mvm/sta.c
parent8d0e4f8f737d808b9fa296813470f34559a9ac00 (diff)
downloadblackbird-obmc-linux-8be30c13ebafdf743ab638a83095715a01bc1071.tar.gz
blackbird-obmc-linux-8be30c13ebafdf743ab638a83095715a01bc1071.zip
iwlwifi: mvm: Change number of associated stations when station becomes associated
Currently, the number of associated stations gets updated when adding a new station or removing it. This is incorrect as it's possible that a station was inserted before it was associated Fix this by increasing/decreasing ap_assoc_sta_count whenever a station transitions in/out the associated state. Signed-off-by: Ayala Beker <ayala.beker@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/sta.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/sta.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
index 2c9675b45350..b556e33658d7 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
@@ -278,11 +278,6 @@ int iwl_mvm_add_sta(struct iwl_mvm *mvm,
if (sta_id == IWL_MVM_STATION_COUNT)
return -ENOSPC;
- if (vif->type == NL80211_IFTYPE_AP) {
- mvmvif->ap_assoc_sta_count++;
- iwl_mvm_mac_ctxt_changed(mvm, vif, false, NULL);
- }
-
spin_lock_init(&mvm_sta->lock);
mvm_sta->sta_id = sta_id;
OpenPOWER on IntegriCloud