ath9k: fix race in setting ATH_OP_INVALID
authorRajkumar Manoharan <rmanohar@qti.qualcomm.com>
Wed, 23 Apr 2014 09:37:57 +0000 (15:07 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 25 Apr 2014 01:46:22 +0000 (21:46 -0400)
commit8c7ae357cc5b6bd037ad2d666e9f3789cf882925
treea4bce2f031a1ddc0120a5afd58eea55ed2dce55a
parentc82552c5b0cb1735dbcbad78b1ffc6d3c212dc56
ath9k: fix race in setting ATH_OP_INVALID

The commit "ath9k: move sc_flags to ath_common" moved setting
ATH_OP_INVALID flag below ieee80211_register_hw. This is causing
the flag never being cleared randomly as the drv_start is called
prior to setting flag. Fix this by setting the flag prior to
register_hw.

Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ahb.c
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/pci.c