]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Fix invalid noisefloor reading due to channel update
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Sat, 13 Aug 2011 04:58:17 +0000 (10:28 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Aug 2011 17:59:46 +0000 (13:59 -0400)
commit1101fe0959f1a39fe918983c237c3366fa43e5cb
treec643cc1db586645011146a7f2bfad107e9f8d7e8
parent5415c345b829e9bc7b9dd98029037856c05b85c9
ath9k: Fix invalid noisefloor reading due to channel update

While switching b/w HT20/40, the current channel's nf values
are updated into history buffer. Since the current channel's
channel type, channel flag got updated before reading
nf value from hw. This channel type mismatch is causing invalid
readings when hw is on ht20 but getnf tries to read on extn chains.

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