]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: check ATTR_FREQ for wmediumd (netlink) packets
authorAdam Welle <arwelle@cert.org>
Tue, 1 Dec 2015 22:13:52 +0000 (17:13 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Dec 2015 13:43:32 +0000 (14:43 +0100)
commit89942099df9d49d93bf4d654fb6ded2f12db711e
tree4dcbf72edfde53a27f27f0500500d52198631155
parentfe58d6d4e0927a813f386354f7464e7d171f8f1e
mac80211_hwsim: check ATTR_FREQ for wmediumd (netlink) packets

If a packet is received from netlink with the frequency value set it is
checked against the current radio's frequency and discarded if different.
The frequency is also checked against data2->tmp_chan to support the "hw"
off-channel/scan case.

Signed-off-by: Adam Welle <arwelle@cert.org>
[allow both simultaneously, add locking]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c