]> git.baikalelectronics.ru Git - kernel.git/commit
mac82011: use frame control to differentiate probe resp/beacon
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 10 Dec 2012 14:19:13 +0000 (16:19 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:33 +0000 (13:01 +0100)
commitd5504b342f1a5a89f5b210c29b72d93ca6efc338
treee1fed264ee3b9f03e12ed012f76a8de97a4a3eef
parenta5b5841dc7b43ab0adeaad5773dbba2e389e632f
mac82011: use frame control to differentiate probe resp/beacon

The probe response/beacon management frame RX code passes a
bool parameter to differentiate beacons and probe responses.
This is useless since we have the frame and can thus use its
frame control field. Moreover it is buggy since there is one
call to ieee80211_rx_bss_info with a beacon frame that is
indicated as a probe response, which is also fixed by using
the frame control field, so do that.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/scan.c