kernel_optimize_test/net/wireless
Vamsi Krishna 2fa436b3a2 nl80211: Use different attrs for BSSID and random MAC addr in scan req
NL80211_ATTR_MAC was used to set both the specific BSSID to be scanned
and the random MAC address to be used when privacy is enabled. When both
the features are enabled, both the BSSID and the local MAC address were
getting same value causing Probe Request frames to go with unintended
DA. Hence, this has been fixed by using a different NL80211_ATTR_BSSID
attribute to set the specific BSSID (which was the more recent addition
in cfg80211) for a scan.

Backwards compatibility with old userspace software is maintained to
some extent by allowing NL80211_ATTR_MAC to be used to set the specific
BSSID when scanning without enabling random MAC address use.

Scanning with random source MAC address was introduced by commit
ad2b26abc1 ("cfg80211: allow drivers to support random MAC addresses
for scan") and the issue was introduced with the addition of the second
user for the same attribute in commit 818965d391 ("cfg80211: Allow a
scan request for a specific BSSID").

Fixes: 818965d391 ("cfg80211: Allow a scan request for a specific BSSID")
Signed-off-by: Vamsi Krishna <vamsin@qti.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-12-09 12:47:19 +01:00
..
.gitignore
ap.c
chan.c cfg80211: add start / stop NAN commands 2016-09-30 13:21:14 +02:00
core.c cfg80211: disallow beacon_int_min_gcd with IBSS 2016-10-27 09:08:45 +02:00
core.h cfg80211: Rename SAE_DATA to more generic AUTH_DATA 2016-10-27 16:03:20 +02:00
db.txt
debugfs.c
debugfs.h
ethtool.c
genregdb.awk
ibss.c cfg80211: Add support for static WEP in the driver 2016-09-30 13:19:10 +02:00
Kconfig
lib80211_crypt_ccmp.c
lib80211_crypt_tkip.c
lib80211_crypt_wep.c
lib80211.c
Makefile
mesh.c cfg80211: mesh: track (and thus validate) beacon interval 2016-10-27 09:08:45 +02:00
mlme.c cfg80211: Rename SAE_DATA to more generic AUTH_DATA 2016-10-27 16:03:20 +02:00
nl80211.c nl80211: Use different attrs for BSSID and random MAC addr in scan req 2016-12-09 12:47:19 +01:00
nl80211.h cfg80211: always notify userspace of new wireless netdevs 2016-08-11 16:51:41 +02:00
ocb.c
radiotap.c
rdev-ops.h cfg80211: Add support to update connection parameters 2016-10-27 16:03:28 +02:00
reg.c cfg80211: make wdev_list accessible to drivers 2016-05-12 11:16:40 +02:00
reg.h
regdb.h
scan.c cfg80211: add helper to find an IE that matches a byte-array 2016-09-16 14:49:52 +02:00
sme.c cfg80211: allow aborting in-progress connection atttempts 2016-10-19 12:15:38 +02:00
sysfs.c cfg80211: process events caused by suspend before suspending 2016-10-26 07:59:52 +02:00
sysfs.h
trace.c
trace.h cfg80211: Add support to update connection parameters 2016-10-27 16:03:28 +02:00
util.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-10-30 12:42:58 -04:00
wext-compat.c cfg80211: Add support for static WEP in the driver 2016-09-30 13:19:10 +02:00
wext-compat.h
wext-core.c Revert "wext: Fix 32 bit iwpriv compatibility issue with 64 bit Kernel" 2016-08-08 08:49:50 +02:00
wext-priv.c
wext-proc.c
wext-sme.c cfg80211: Add support for static WEP in the driver 2016-09-30 13:19:10 +02:00
wext-spy.c