]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Move send_probe_response parameter to BSS specific items
authorJouni Malinen <jouni@codeaurora.org>
Fri, 7 Dec 2018 11:07:36 +0000 (13:07 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 7 Dec 2018 13:03:11 +0000 (15:03 +0200)
This can be more convenient for testing Multiple BSSID functionality.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
hostapd/config_file.c
src/ap/ap_config.c
src/ap/ap_config.h
src/ap/beacon.c

index b26da71a84100a6c51ae2e89046a9487241e2454..1bc835ab26d653b286cf0ad851578b872471515c 100644 (file)
@@ -3148,7 +3148,7 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                                   line, val);
                        return 1;
                }
-               conf->send_probe_response = val;
+               bss->send_probe_response = val;
        } else if (os_strcmp(buf, "supported_rates") == 0) {
                if (hostapd_parse_intlist(&conf->supported_rates, pos)) {
                        wpa_printf(MSG_ERROR, "Line %d: invalid rate list",
index f9b6f295927f9ec77cd43833eaa340b8eb56d5b1..e6b1f10f1c1a064f60c8d287b132fb341e5805b4 100644 (file)
@@ -131,6 +131,8 @@ void hostapd_config_defaults_bss(struct hostapd_bss_config *bss)
         * This can be enabled by default once the implementation has been fully
         * completed and tested with other implementations. */
        bss->tls_flags = TLS_CONN_DISABLE_TLSv1_3;
+
+       bss->send_probe_response = 1;
 }
 
 
@@ -193,7 +195,6 @@ struct hostapd_config * hostapd_config_defaults(void)
        conf->beacon_int = 100;
        conf->rts_threshold = -1; /* use driver default: 2347 */
        conf->fragm_threshold = -1; /* user driver default: 2346 */
-       conf->send_probe_response = 1;
        /* Set to invalid value means do not add Power Constraint IE */
        conf->local_pwr_constraint = -1;
 
index 778366d49afe01c8e62b5e385475ae9cd7e28407..bd440af94980805e6ab28903037e76c64d77eb5c 100644 (file)
@@ -686,6 +686,8 @@ struct hostapd_bss_config {
 #endif /* CONFIG_OWE */
 
        int coloc_intf_reporting;
+
+       u8 send_probe_response;
 };
 
 /**
@@ -717,7 +719,6 @@ struct hostapd_config {
        u16 beacon_int;
        int rts_threshold;
        int fragm_threshold;
-       u8 send_probe_response;
        u8 channel;
        u8 acs;
        struct wpa_freq_range_list acs_ch_list;
index 59bd4af395d7aa9482808b023c6d3de13136fd55..03cec3ece0bb2293ef713eec9539e8db32709d80 100644 (file)
@@ -767,7 +767,7 @@ void handle_probe_req(struct hostapd_data *hapd,
                                            ie, ie_len, ssi_signal) > 0)
                        return;
 
-       if (!hapd->iconf->send_probe_response)
+       if (!hapd->conf->send_probe_response)
                return;
 
        if (ieee802_11_parse_elems(ie, ie_len, &elems, 0) == ParseFailed) {