]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: introduce a stricter scan state machine
authorMichal Kazior <michal.kazior@tieto.com>
Tue, 5 Aug 2014 12:54:44 +0000 (14:54 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 12 Aug 2014 07:47:48 +0000 (10:47 +0300)
commit977f33256a829738966af6f09b57507afbcdf3f5
tree49826629326a55210f514427776fdc39fa8c51fb
parentf8ae001dd4edfbd1689520b09344144fa06b42b0
ath10k: introduce a stricter scan state machine

This aims at fixing some rare scan bugs related to
firmware reporting unexpected scan event
sequences.

One such bug was if spectral scan phyerr reporting
prevented firmware from properly propagating scan
events to host. This led to scan timeout. After
that next scan would trigger scan completed event
first (before scan started event) leading to
ar->scan.in_progress and timeout timer states to
be overwritten incorrectly and making the very
next scan to hang forever.

Reported-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/mac.h
drivers/net/wireless/ath/ath10k/wmi.c