]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit13d2574621a1723a8036a26532e4d2a41f8482a9
tree8b1c582c96cdc0e3495ffce00f0099218184d00e
parentb134fc67bb4edc24fb8e0c49f886a40fa2de83dd
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