]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_htc: make ->sta_rc_update atomic for most calls
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 28 Jan 2014 08:14:48 +0000 (09:14 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Feb 2014 20:30:06 +0000 (15:30 -0500)
commit293f9b482ff98bc368ba8e62215193c5c84e038a
treed2891782e2e56d8a19474e8ea0c6334b16786b25
parent127dbaecac1f582e8e53c6b6f143aeb66f58a9be
ath9k_htc: make ->sta_rc_update atomic for most calls

sta_rc_update() callback must be atomic, hence we can not take mutexes
or do other operations, which can sleep in ath9k_htc_sta_rc_update().

I think we can just return from ath9k_htc_sta_rc_update(), if it is
called without IEEE80211_RC_SUPP_RATES_CHANGED bit. That will help
with scheduling while atomic bug for most cases (except mesh and IBSS
modes).

For mesh and IBSS I do not see other solution like creating additional
workqueue, because sending firmware command require us to sleep, but
this can be done in additional patch.

Patch partially fixes bug:
https://bugzilla.redhat.com/show_bug.cgi?id=990955

Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_main.c