wpa_supplicant: Make GAS Address3 field selection behavior configurable
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 10 Jun 2016 17:58:23 +0000 (20:58 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 10 Jun 2016 18:44:49 +0000 (21:44 +0300)
commitc86bef2913a6aa9947d45e8d28bb0539c2d5c25c
treea2f83f63121967953f359eb8580717d2d0ee9c08
parent739fd20cc3f922c06b69d8d730e73909db4151c9
wpa_supplicant: Make GAS Address3 field selection behavior configurable

IEEE Std 802.11-2012, 10.19 (Public Action frame addressing) specifies
that the wildcard BSSID value is used in Public Action frames that are
transmitted to a STA that is not a member of the same BSS.
wpa_supplicant used to use the actual BSSID value for all such frames
regardless of whether the destination STA is a member of the BSS.

P2P does not follow this rule, so P2P Public Action frame construction
must not be changed. However, the cases using GAS/ANQP for non-P2P
purposes should follow the standard requirements.

Unfortunately, there are deployed AP implementations that do not reply
to a GAS request sent using the wildcard BSSID value. The previously
used behavior (Address3 = AP BSSID even when not associated) continues
to be the default, but the IEEE 802.11 standard compliant addressing
behavior can now be configured with gas_address3=1.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/config.c
wpa_supplicant/config.h
wpa_supplicant/config_file.c
wpa_supplicant/gas_query.c
wpa_supplicant/wpa_supplicant.conf