aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant.c
diff options
context:
space:
mode:
authorLior David <qca_liord@qca.qualcomm.com>2016-04-04 16:19:25 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-08 09:56:34 (GMT)
commit90f14962ec14f3ff46c12f0a191404e5957786b1 (patch)
tree532e25fd19ee441140ffc26722fdc3bea88a68b5 /wpa_supplicant/wpa_supplicant.c
parent39881726d5b3b0ccba8f8fa175448316351fbab6 (diff)
downloadhostap-90f14962ec14f3ff46c12f0a191404e5957786b1.zip
hostap-90f14962ec14f3ff46c12f0a191404e5957786b1.tar.gz
hostap-90f14962ec14f3ff46c12f0a191404e5957786b1.tar.bz2
wpa_supplicant: "don't care" value for pbss in ssid structure
Add a new value 2 to the pbss parameter of wpa_ssid structure, which means "don't care". This value is used in infrastructure mode to request connection to either AP or PCP, whichever is available in the scan results. The value is also used in regular WPS (not P2P group formation) to make WPS work with devices running as either AP or PCP. Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant.c')
-rw-r--r--wpa_supplicant/wpa_supplicant.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 51bb245..3f1d08b 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -2414,7 +2414,7 @@ static void wpas_start_assoc_cb(struct wpa_radio_work *work, int deinit)
} else {
params.ssid = ssid->ssid;
params.ssid_len = ssid->ssid_len;
- params.pbss = ssid->pbss;
+ params.pbss = (ssid->pbss != 2) ? ssid->pbss : 0;
}
if (ssid->mode == WPAS_MODE_IBSS && ssid->bssid_set &&