]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: use RX status band instead of current band
authorJohannes Berg <johannes.berg@intel.com>
Thu, 26 Jul 2012 12:31:19 +0000 (14:31 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Aug 2012 12:13:43 +0000 (14:13 +0200)
commit114a2f3f5e3cb5f8737ae20378cd5e9f523ca2a0
tree405d1a9c9571f0435eec8b67e3bc7deb72f68a68
parent9146ee9046fd06f7c886b6e380b368d05db1df42
mac80211: use RX status band instead of current band

Even for single-channel devices it is possible that we
switch the channel temporarily (e.g. for scanning) but
while doing so process a received frame that was still
received on the old channel, so checking the current
band is racy. Use the band from status instead.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c