]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Add support for setting pbss option from config file
authorIan Archer <ian.archer@bluwirelesstechnology.com>
Fri, 18 Jan 2019 12:40:15 +0000 (12:40 +0000)
committerJouni Malinen <j@w1.fi>
Mon, 21 Jan 2019 10:35:59 +0000 (12:35 +0200)
There is currently no support for setting hostapd_bss_config.pbss from a
config file, i.e., it was used only based on automatic logic in
wpa_supplicant. This patch adds a key naturally called "pbss" which can
be used to set it.

Cc: Antony King <antony.king@bluwirelesstechnology.com>
Signed-off-by: Brendan Jackman <brendan.jackman@bluwirelesstechnology.com>
hostapd/config_file.c

index daaa484f22c2b21a113c4652f9e167f7514d554c..e2ca2789b7f3c370aa838dc91342d3b379c6686a 100644 (file)
@@ -4258,6 +4258,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                conf->rssi_reject_assoc_rssi = atoi(pos);
        } else if (os_strcmp(buf, "rssi_reject_assoc_timeout") == 0) {
                conf->rssi_reject_assoc_timeout = atoi(pos);
+       } else if (os_strcmp(buf, "pbss") == 0) {
+               bss->pbss = atoi(pos);
        } else {
                wpa_printf(MSG_ERROR,
                           "Line %d: unknown configuration item '%s'",