android_kernel_oneplus_msm8998/net/wireless
Vamsi Krishna 8c59c22321 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 818965d39177 ("cfg80211: Allow a
scan request for a specific BSSID").

Fixes: 818965d39177 ("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>
Git-commit: 478b2a3b7faa4c50c54b2bd3a2507405fcf6fad8
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
CRs-Fixed: 1097863
Change-Id: Ib55302c8fc9dbf2a4114a793e17f9b2dc9ade37c
2016-12-08 01:43:03 -08:00
..
.gitignore
ap.c Revert "cfg80211: export interface stopping function" 2016-03-22 11:16:48 -07:00
chan.c cfg80211: make wdev_list accessible to drivers 2016-11-18 01:20:15 +02:00
core.c cfg80211: make wdev_list accessible to drivers 2016-11-18 01:20:15 +02:00
core.h cfg80211: make wdev_list accessible to drivers 2016-11-18 01:20:15 +02:00
db.txt msm: wlan: update regulatory database 2016-11-17 12:19:51 -08:00
debugfs.c mac80211: fix some snprintf misuses 2013-10-01 12:16:51 +02:00
debugfs.h
ethtool.c cfg80211: make ethtool the driver's responsibility 2014-06-23 11:05:33 +02:00
genregdb.awk wireless: fixup genregdb.awk for remove of antenna gain from wireless-regd 2014-07-21 12:24:20 +02:00
ibss.c Lots of updates for net-next; along with the usual flurry 2015-03-31 16:39:04 -04:00
Kconfig cfg80211: reg: make CRDA support optional 2015-10-16 09:15:39 +02:00
lib80211.c lib80211: remove unused print_ssid() 2014-10-14 02:18:27 +02:00
lib80211_crypt_ccmp.c hostap: Don't use create_proc_read_entry() 2013-04-29 15:41:56 -04:00
lib80211_crypt_tkip.c hostap: Don't use create_proc_read_entry() 2013-04-29 15:41:56 -04:00
lib80211_crypt_wep.c hostap: Don't use create_proc_read_entry() 2013-04-29 15:41:56 -04:00
Makefile cfg80211: 802.11p OCB mode handling 2014-11-04 13:18:17 +01:00
mesh.c Revert "cfg80211: export interface stopping function" 2016-03-22 11:16:48 -07:00
mlme.c cfg80211: allow mgmt_frame_register callback to sleep 2015-07-17 15:38:26 +02:00
nl80211.c nl80211: Use different attrs for BSSID and random MAC addr in scan req 2016-12-08 01:43:03 -08:00
nl80211.h cfg80211: allow wiphy specific regdomain management 2014-12-17 11:49:55 +01:00
ocb.c cfg80211: 802.11p OCB mode handling 2014-11-04 13:18:17 +01:00
radiotap.c radiotap: fix bitmap-end-finding buffer overrun 2013-12-16 12:06:43 +01:00
rdev-ops.h cfg80211: Add support to update connection parameters 2016-12-08 15:10:27 +05:30
reg.c cfg80211: make wdev_list accessible to drivers 2016-11-18 01:20:15 +02:00
reg.h cfg80211: Stop calling crda if it is not responsive 2015-04-01 11:22:38 +02:00
regdb.h
scan.c cfg80211: Allow a scan request for a specific BSSID 2016-08-29 00:21:40 -07:00
sme.c cfg80211: make wdev_list accessible to drivers 2016-11-18 01:20:15 +02:00
sysfs.c Revert "cfg80211/mac80211: disconnect on suspend" 2016-03-22 11:16:49 -07:00
sysfs.h net: misc: Remove extern from function prototypes 2013-10-19 19:12:11 -04:00
trace.c cfg80211: add tracing to rdev-ops 2012-10-18 10:53:37 +02:00
trace.h cfg80211: Add support to update connection parameters 2016-12-08 15:10:27 +05:30
util.c cfg80211: validate beacon int as part of iface combinations 2016-11-18 14:16:44 +02:00
wext-compat.c cfg80211: wext: clear sinfo struct before calling driver 2015-06-09 13:54:58 -07:00
wext-compat.h cfg80211-wext: export symbols only when needed 2015-02-28 21:31:09 +01:00
wext-core.c wext: Fix 32 bit iwpriv compatibility issue with 64 bit Kernel 2016-06-24 10:18:20 -07:00
wext-priv.c
wext-proc.c net: proc: change proc_net_remove to remove_proc_entry 2013-02-18 14:53:08 -05:00
wext-sme.c wireless: Use eth_<foo>_addr instead of memset 2015-03-03 17:01:38 -05:00
wext-spy.c