diff mbox series

[6/6] multiple_bssid: always use the transmitting BSSs when generating the beacons

Message ID 20200604091525.10877-7-john@phrozen.org
State Superseded
Headers show
Series multiple_bssid: add AP support | expand

Commit Message

John Crispin June 4, 2020, 9:15 a.m. UTC
When egnerating a beacon or probe response for a non transmitting BSS, always
use the transmittings BSSs data.

Signed-off-by: John Crispin <john@phrozen.org>
---
 src/ap/beacon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/src/ap/beacon.c b/src/ap/beacon.c
index c62adb816..48be9b7fe 100644
--- a/src/ap/beacon.c
+++ b/src/ap/beacon.c
@@ -1038,7 +1038,7 @@  void handle_probe_req(struct hostapd_data *hapd,
 	wpa_msg_ctrl(hapd->msg_ctx, MSG_INFO, RX_PROBE_REQUEST "sa=" MACSTR
 		     " signal=%d", MAC2STR(mgmt->sa), ssi_signal);
 
-	resp = hostapd_gen_probe_resp(hapd, mgmt, elems.p2p != NULL,
+	resp = hostapd_gen_probe_resp(hostapd_get_primary_bss(hapd), mgmt, elems.p2p != NULL,
 				      &resp_len);
 	if (resp == NULL)
 		return;
@@ -1061,7 +1061,7 @@  void handle_probe_req(struct hostapd_data *hapd,
 				hapd->cs_c_off_ecsa_proberesp;
 	}
 
-	ret = hostapd_drv_send_mlme(hapd, resp, resp_len, noack,
+	ret = hostapd_drv_send_mlme(hostapd_get_primary_bss(hapd), resp, resp_len, noack,
 				    csa_offs_len ? csa_offs : NULL,
 				    csa_offs_len, 0);