[PATCH] hostapd: RNR: skip own BSS by BSSID, not by short SSID

Pablo MARTIN-GOMEZ pmartin-gomez at freebox.fr
Wed Dec 2 06:43:09 PST 2026


Hello David,

The change looks good to me; it's the same check that is done for the
Neighbor Report. However, no need for the verbose comment, just put a
`/* Skip the reporting BSS's own entry */` and keep the explanation for
the commit message. You should also send a proper patch v2 to the list
using `git format-patch` and requirements stated in the `CONTRIBUTIONS` doc.

Pablo MG

On 02/12/2026 12:14, David Lang wrote:
> re-sending as there was no response.
> 
> David Lang
> 
> On Thu, 12 Nov 2026, David Lang wrote:
> 
>> I run the wifi network for the Southern California Linux Expo and am
>> looking to implement RNR this year, but in testing, this doesn't work
>>
>> tested an a turis and openwrt one
>>
>> hostapd_eid_nr_db_len() and hostapd_eid_nr_db() skip every neighbor
>> database entry whose short SSID matches the reporting BSS, meaning to
>> skip only the BSS's own entry (added by hostapd_neighbor_set_own_report).
>> That also drops every same-ESS neighbor AP from the Reduced Neighbor
>> Report (beacon IE 201), which are the entries that matter for roaming.
>> Skip only the entry whose BSSID equals hapd->own_addr.
>>
>> David Lang
>>
>> --- a/src/ap/ieee802_11.c
>> +++ b/src/ap/ieee802_11.c
>> @@ -7924,7 +7924,11 @@
>>         if (!nr->nr || wpabuf_len(nr->nr) < 12)
>>             continue;
>>
>> -        if (nr->short_ssid == hapd->conf->ssid.short_ssid)
>> +        /* Skip this BSS's own nr_db entry
>> (hostapd_neighbor_set_own_report).
>> +         * Match by BSSID, not short_ssid: same-ESS remote APs must
>> remain
>> +         * eligible for RNR; only avoid advertising ourselves. Other
>> colocated
>> +         * BSS BSSIDs stay eligible. */
>> +        if (ether_addr_equal(nr->bssid, hapd->own_addr))
>>             continue;
>>
>>         /* Start a new element */
>> @@ -8281,7 +8285,11 @@
>>         if (!nr->nr || wpabuf_len(nr->nr) < 12)
>>             continue;
>>
>> -        if (nr->short_ssid == hapd->conf->ssid.short_ssid)
>> +        /* Skip this BSS's own nr_db entry
>> (hostapd_neighbor_set_own_report).
>> +         * Match by BSSID, not short_ssid: same-ESS remote APs must
>> remain
>> +         * eligible for RNR; only avoid advertising ourselves. Other
>> colocated
>> +         * BSS BSSIDs stay eligible. */
>> +        if (ether_addr_equal(nr->bssid, hapd->own_addr))
>>             continue;
>>
>>         /* Start a new element */
>>
> 
> _______________________________________________
> Hostap mailing list
> Hostap at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/hostap




More information about the Hostap mailing list