From: Gabor Juhos Date: Fri, 24 Jul 2009 15:27:21 +0000 (+0200) Subject: ath9k: fix race with IEEE80211_CONF_PS checks X-Git-Tag: v2.6.32-rc1~703^2~506^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96148326c4b54db5c384def1a5ab285c359d1395;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed