From: Rajkumar Manoharan Date: Mon, 9 Jan 2012 10:07:53 +0000 (+0530) Subject: ath9k: Fix regression in channelwidth switch at the same channel X-Git-Tag: v3.2.2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9bc8b31648585fa3c985f6ac52a07a1d85f0e4a;p=pandora-kernel.git ath9k: Fix regression in channelwidth switch at the same channel commit 1a19f77f3642b8194ad9cf55548cc5d92e841766 upstream. 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: Gary Morain Cc: Paul Stewart Reported-by: Mohammed Shafi Shajakhan Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed