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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Feb 2014 19:22:16 +0000 (11:22 -0800)
commitdf590d884ef9a0d85c1fd53a97cc54bb0f5341a7
tree100f0e03b2b13b9c082630cf07acd84a8b97672f
parent5425534d6b0e9036ee5a6954b1fb53cac371b16b
ath9k: Use correct channel for RX packets

commit ff9a93f2ebb88ac7aab9568de80b64b92078e96d upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath9k/recv.c