]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4deae2dc9886efe04d337a782b30fbcdfc6d98af
tree384cc2a471caee5f8ca15a9a108f25f1a154ade3
parent93c96c84c9e087676ab2b2a43712d2190da7d05d
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