ath9k: Use correct channel for RX packets
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Thu, 9 Jan 2014 03:21:14 +0000 (08:51 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 9 Jan 2014 15:56:41 +0000 (10:56 -0500)
commitff9a93f2ebb88ac7aab9568de80b64b92078e96d
tree8b1c582c96cdc0e3495ffce00f0099218184d00e
parent9c36254cd767bbdde5538b51bf94921727e595d4
ath9k: Use correct channel for RX packets

Accessing the current channel definition in mac80211
when processing RX packets is problematic because it
could have been updated when a scan is issued. Since a
channel change involves flushing the existing packets
in the RX queue before a chip-reset is done, they would
be processed using the wrong band/channel information.

To avoid this, use the current channel information
maintained in the driver.

Cc: stable@vger.kernel.org
Reported-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c