]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: allow drivers to support random MAC addresses for scan
authorJohannes Berg <johannes.berg@intel.com>
Thu, 12 Jun 2014 19:39:05 +0000 (21:39 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Nov 2014 17:45:52 +0000 (18:45 +0100)
commit85a6ea4ce9b0833acdd2d260a7744e565a143a8f
tree81f73219cf0132dca99028fe1a8f4a26805d5247
parent6ce0408a6b134101f89e80d16c1604f40b9565e4
cfg80211: allow drivers to support random MAC addresses for scan

Add the necessary feature flags and a scan flag to support using
random MAC addresses for scan while unassociated.

The configuration for this supports an arbitrary MAC address
value and mask, so that any kind of configuration (e.g. fixed
OUI or full 46-bit random) can be requested. Full 46-bit random
is the default when no other configuration is passed.

Also add a small helper function to use the addr/mask correctly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/nl80211.c