aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_file.c
diff options
context:
space:
mode:
authorPurushottam Kushwaha <pkushwah@qti.qualcomm.com>2017-05-09 15:03:51 (GMT)
committerJouni Malinen <j@w1.fi>2017-05-11 21:20:59 (GMT)
commit43a356b2687219b7a212df8ef21237b5ddf49f35 (patch)
tree5b81f3965c8a56d4d9142e4c2b4f98a1da75daf4 /wpa_supplicant/config_file.c
parent33117656e6c22ccdfbd6bcecee923f837690b111 (diff)
downloadhostap-43a356b2687219b7a212df8ef21237b5ddf49f35.zip
hostap-43a356b2687219b7a212df8ef21237b5ddf49f35.tar.gz
hostap-43a356b2687219b7a212df8ef21237b5ddf49f35.tar.bz2
Provide option to configure BSSID hint for a network
This exposes user configurable option to set bssid_hint for a network. bssid_hint indicates which BSS has been found a suitable candidate for initial association for drivers that use driver/firmware-based BSS selection. Unlike the bssid parameter, bssid_hint does not limit the driver from selecting other BSSs in the ESS. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/config_file.c')
-rw-r--r--wpa_supplicant/config_file.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 7069b16..ceaf434 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -503,6 +503,17 @@ static void write_bssid(FILE *f, struct wpa_ssid *ssid)
}
+static void write_bssid_hint(FILE *f, struct wpa_ssid *ssid)
+{
+ char *value = wpa_config_get(ssid, "bssid_hint");
+
+ if (!value)
+ return;
+ fprintf(f, "\tbssid_hint=%s\n", value);
+ os_free(value);
+}
+
+
static void write_psk(FILE *f, struct wpa_ssid *ssid)
{
char *value;
@@ -713,6 +724,7 @@ static void wpa_config_write_network(FILE *f, struct wpa_ssid *ssid)
STR(ssid);
INT(scan_ssid);
write_bssid(f, ssid);
+ write_bssid_hint(f, ssid);
write_str(f, "bssid_blacklist", ssid);
write_str(f, "bssid_whitelist", ssid);
write_psk(f, ssid);