diff options
author | Lior David <qca_liord@qca.qualcomm.com> | 2016-02-08 12:30:04 +0200 |
---|---|---|
committer | Hamad Kadmany <hkadmany@codeaurora.org> | 2016-04-15 01:46:28 +0300 |
commit | 2b06378d256f48d8b7553bcba221ba16a4e227bc (patch) | |
tree | 6efee8cf63f1440804030d75c3a304638d398445 /src | |
parent | 99aceafee577f4d53d98bd918a60f9920154b985 (diff) | |
download | android_external_wpa_supplicant_8-2b06378d256f48d8b7553bcba221ba16a4e227bc.tar.gz android_external_wpa_supplicant_8-2b06378d256f48d8b7553bcba221ba16a4e227bc.tar.bz2 android_external_wpa_supplicant_8-2b06378d256f48d8b7553bcba221ba16a4e227bc.zip |
wpa_supplicant: Basic support for PBSS/PCP
PBSS (Personal Basic Service Set) is a new BSS type for DMG
networks. It is similar to infrastructure BSS, having an AP-like
entity called PCP (PBSS Control Point), but it has few differences.
PBSS support is mandatory for IEEE 802.11ad devices.
Add a new "pbss" argument to network block. The argument is used
in the following scenarios:
1. When network has mode=2 (AP), when pbss flag is set will start
as a PCP instead of an AP.
2. When network has mode=0 (station), when pbss flag is set will
connect to PCP instead of AP.
The function wpa_scan_res_match() was modified to match BSS according to
the pbss flag in the network block (wpa_ssid structure). When pbss flag
is set it will match only PCPs, and when it is clear it will match only
APs.
Change-Id: Ic93d717160b60ef61a6eceb574d31b3f142811fc
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Git-commit: b907491281b06b4dee9e0d0326e23c67ce486eb5
Git-repo: git://w1.fi/srv/git/hostap.git
CRs-Fixed: 985990
Diffstat (limited to 'src')
-rw-r--r-- | src/ap/ap_config.h | 1 | ||||
-rw-r--r-- | src/ap/beacon.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h index 72c58e76..6cf44c7e 100644 --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h @@ -552,6 +552,7 @@ struct hostapd_bss_config { int radio_measurements; int vendor_vht; + int pbss; }; diff --git a/src/ap/beacon.c b/src/ap/beacon.c index 98d68329..54d0d6f4 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -1043,6 +1043,7 @@ int ieee802_11_build_ap_params(struct hostapd_data *hapd, params->osen = 1; } #endif /* CONFIG_HS20 */ + params->pbss = hapd->conf->pbss; return 0; } |