[PATCH] hostapd: RNR: skip own BSS by BSSID, not by short SSID
David Lang
david at lang.hm
Thu Nov 12 06:03:36 PST 2026
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 */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 900-scale-rnr-same-ssid-neighbors.patch
Type: text/x-diff
Size: 1050 bytes
Desc:
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20261112/d1f31a81/attachment.bin>
More information about the Hostap
mailing list