[PATCH] hostap: RNR Bssid is empty

Shay Bar shay.bar at celeno.com
Thu May 26 00:13:22 PDT 2022


bss->conf->bssid may be kept unset and will cause an empty BSSID field in RNR.
Fix is to use own_addr instead.

Signed-off-by: Shay Bar <shay.bar at celeno.com>
Signed-off-by: moran.daori <moran.daori at celeno.com>
---
 src/ap/ieee802_11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index aa26ad4ef..db22b1562 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -7450,7 +7450,7 @@ static u8 * hostapd_eid_rnr_iface(struct hostapd_data *hapd,
 				break;
 
 			*eid++ = RNR_NEIGHBOR_AP_OFFSET_UNKNOWN;
-			os_memcpy(eid, bss->conf->bssid, ETH_ALEN);
+			os_memcpy(eid, bss->own_addr, ETH_ALEN);
 			eid += ETH_ALEN;
 			os_memcpy(eid, &bss->conf->ssid.short_ssid, 4);
 			eid += 4;
-- 
2.17.1




More information about the Hostap mailing list