ath10k: fix num_legacy_stations tracking
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 28 Aug 2014 07:59:39 +0000 (09:59 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 2 Sep 2014 07:16:54 +0000 (10:16 +0300)
commita4841eb6392e14a5070e633de30637342f6578d2
tree384cc2a471caee5f8ca15a9a108f25f1a154ade3
parente75db4e3685f79e4d9426499565e56e347a9bd25
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>
drivers/net/wireless/ath/ath10k/mac.c