ath9k: fix race with IEEE80211_CONF_PS checks
There is a small window where the mac80211 changes the IEEE80211_CONF_PS flag, and then informs the driver about the change. We have a race condition if we are checking the flag in the same time. Avoid it by introducing a local variable, and using that instead of checking the IEEE80211_CONF_PS flag directly. This fix the problem reported by Luis: http://article.gmane.org/gmane.linux.kernel.wireless.general/34363 Changes-licensed-under: ISC Signed-off-by:Gabor Juhos <juhosg@openwrt.org> Signed-off-by:
John W. Linville <linville@tuxdriver.com>
Showing
- drivers/net/wireless/ath/ath9k/ath9k.h 1 addition, 0 deletionsdrivers/net/wireless/ath/ath9k/ath9k.h
- drivers/net/wireless/ath/ath9k/hw.c 7 additions, 10 deletionsdrivers/net/wireless/ath/ath9k/hw.c
- drivers/net/wireless/ath/ath9k/hw.h 0 additions, 1 deletiondrivers/net/wireless/ath/ath9k/hw.h
- drivers/net/wireless/ath/ath9k/main.c 4 additions, 4 deletionsdrivers/net/wireless/ath/ath9k/main.c
Loading
Please register or sign in to comment