]> 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)
commit1564e7767bc7cbc72b6954f9e296f907dc53c693
tree81f73219cf0132dca99028fe1a8f4a26805d5247
parent3d7a4d10a0a7a04630d0860f4fd8e2a8ccdb99e7
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