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@xxxxxxxxxx> Signed-off-by: moran.daori <moran.daori@xxxxxxxxxx> --- 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 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap