]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mbssid: Indicate MBSSID information in RNR
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 2 Dec 2022 19:06:00 +0000 (21:06 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 2 Dec 2022 21:06:32 +0000 (23:06 +0200)
Indicate whether the collocated BSS in the RNR is a part of a multiple
BSSID set and whether it is a transmited BSSID.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/ieee802_11.c

index 8f5c2c2376f6e3c116f52226000739b341e044b3..41a0d66a686c0d997c83c5d2ad56297f914b7a29 100644 (file)
@@ -6636,6 +6636,14 @@ static u8 * hostapd_eid_rnr_iface(struct hostapd_data *hapd,
                            reporting_hapd->conf->ssid.short_ssid)
                                bss_param |= RNR_BSS_PARAM_SAME_SSID;
 
+                       if (iface->conf->mbssid != MBSSID_DISABLED &&
+                           iface->num_bss > 1) {
+                               bss_param |= RNR_BSS_PARAM_MULTIPLE_BSSID;
+                               if (i == 0)
+                                       bss_param |=
+                                               RNR_BSS_PARAM_TRANSMITTED_BSSID;
+                       }
+
                        if (is_6ghz_op_class(hapd->iconf->op_class) &&
                            bss->conf->unsol_bcast_probe_resp_interval)
                                bss_param |=