]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Fix regression in channelwidth switch at the same channel
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Mon, 9 Jan 2012 10:07:53 +0000 (15:37 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Jan 2012 20:46:40 +0000 (15:46 -0500)
commit44d3103fbb8d821e682916924a99472a5fd8d5d0
treeaed6d28a9043cb882e878676dc015d6b0f63c690
parentd376b928d312cee55b7b3c8541abdc213e53d39a
ath9k: Fix regression in channelwidth switch at the same channel

The commit "ath9k: Fix invalid noisefloor reading due to channel update"
preserves the current channel noisefloor readings before updating
channel type at the same channel index. It is also updating the curchan
pointer. As survey updation is also referring curchan pointer to fetch
the appropriate index, which might leads to invalid memory access. This
patch partially reverts the change and stores the noise floor history
buffer before updating channel type w/o updating curchan.

Cc: stable@kernel.org
Cc: Gary Morain <gmorain@google.com>
Cc: Paul Stewart <pstew@google.com>
Reported-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/calib.c
drivers/net/wireless/ath/ath9k/main.c