aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_file.c
diff options
context:
space:
mode:
authorLior David <qca_liord@qca.qualcomm.com>2016-02-08 10:30:04 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-08 20:23:56 (GMT)
commitb907491281b06b4dee9e0d0326e23c67ce486eb5 (patch)
tree91d050cd4f5cbefda1005eac5581690497bf912f /wpa_supplicant/config_file.c
parent86b5c400a0fe2567e40119c31657076b87cd5f18 (diff)
downloadhostap-b907491281b06b4dee9e0d0326e23c67ce486eb5.zip
hostap-b907491281b06b4dee9e0d0326e23c67ce486eb5.tar.gz
hostap-b907491281b06b4dee9e0d0326e23c67ce486eb5.tar.bz2
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. Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/config_file.c')
-rw-r--r--wpa_supplicant/config_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index c9ba8b7..a1eb691 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -755,6 +755,7 @@ static void wpa_config_write_network(FILE *f, struct wpa_ssid *ssid)
INT(peerkey);
INT(mixed_cell);
INT(max_oper_chwidth);
+ INT(pbss);
#ifdef CONFIG_IEEE80211W
write_int(f, "ieee80211w", ssid->ieee80211w,
MGMT_FRAME_PROTECTION_DEFAULT);