aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/mac.c
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2014-08-28 03:59:39 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2014-09-02 03:16:54 -0400
commita4841eb6392e14a5070e633de30637342f6578d2 (patch)
tree384cc2a471caee5f8ca15a9a108f25f1a154ade3 /drivers/net/wireless/ath/ath10k/mac.c
parente75db4e3685f79e4d9426499565e56e347a9bd25 (diff)
ath10k: fix num_legacy_stations tracking
If a station was reassociated, i.e. due to change of supported rates update via sta_rc_update() the num_legacy_stations would be (incorrectly) bumped up leading to unbalanced usage of the var. This in turn could lock rtscts protection up as enabled. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/mac.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index b858c8288196..4e30e577b3ed 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -1615,7 +1615,7 @@ static int ath10k_station_assoc(struct ath10k *ar, struct ath10k_vif *arvif,
1615 return ret; 1615 return ret;
1616 } 1616 }
1617 1617
1618 if (!sta->wme) { 1618 if (!sta->wme && !reassoc) {
1619 arvif->num_legacy_stations++; 1619 arvif->num_legacy_stations++;
1620 ret = ath10k_recalc_rtscts_prot(arvif); 1620 ret = ath10k_recalc_rtscts_prot(arvif);
1621 if (ret) { 1621 if (ret) {