]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix scheduling while atomic config bug
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 16 Oct 2013 12:44:46 +0000 (15:44 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 16 Oct 2013 12:44:46 +0000 (15:44 +0300)
commit33ff8cb77b30489a8022371294ea3bf14fe7502f
tree847296d0f833a8cf5b2e07b62fef9d38a9752e3e
parent8090170413458ceaf182239ccc1546e216a22e36
ath10k: fix scheduling while atomic config bug

Recent HTC/WMI changes introduced the bug. ath10k
was using _atomic iteration function with
sleepable functions.

mac80211 provides another iteration function but
it cannot be safely called in hw_config() callback
due to local->iflist_mtx being possibly acquired
already.

The patch uses internal vif list for iteration
purposes and removes/refactors no longer necessary
_iter functions.

Reported-By: Kalle Valo <kvalo@qca.qualcomm.com>
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