mac80211: pass up beacons from external BSS when operating as AP
PATCH 1/1 mac80211: pass up beacons from external BSS when operating as AP
Beacons from external BSSes are required for updating overlapping BSS info (i.e. ERP protection). Pass them up unconditionally.
--- net/mac80211/rx.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
net/mac80211/rx.c +2 -1
@@ -2658,7 +2658,8 @@ static int prepare_for_handlers(struct ieee80211_rx_data *rx,return 0 ; }else if (!ieee80211_bssid_match (bssid, sdata->vif.addr)) { -if (!(status->rx_flags &IEEE80211_RX_IN_SCAN )) +if (!(status->rx_flags &IEEE80211_RX_IN_SCAN ) && + !ieee80211_is_beacon (hdr->frame_control))return 0 ; status->rx_flags &= ~IEEE80211_RX_RA_MATCH ; }
Signature · 1 line
1.7.1
Johannes Berg
maintainerQuoted 2 lines · Arik Nemtsov
Beacons from external BSSes are required for updating overlapping BSS info (i.e. ERP protection). Pass them up unconditionally.
Where will they be processed though?
johannes
Quoted 5 lines · Johannes Berg
Quoted 2 lines · Arik Nemtsov
Beacons from external BSSes are required for updating overlapping BSS info (i.e. ERP protection). Pass them up unconditionally.
Where will they be processed though?
In src/ap/ap_list.c (hostap.git) ;-)
This code has been there for a long time, but the functionality was broken at some point (maybe already during d80211 -> mac80211 process) due to the beacons not getting delivered there anymore.
Signature · 1 line
Jouni Malinen PGP id EFC895FA
Johannes Berg
maintainerQuoted 5 lines · Jouni Malinen
Quoted 4 lines · Johannes Berg
Quoted 2 lines · Arik Nemtsov
Beacons from external BSSes are required for updating overlapping BSS info (i.e. ERP protection). Pass them up unconditionally.
Quoted 7 lines
Quoted 1 line
Where will they be processed though?
In
src/ap/ap_list.c(hostap.git) ;-)This code has been there for a long time, but the functionality was broken at some point (maybe already during d80211 -> mac80211 process) due to the beacons not getting delivered there anymore.
Oh, I guess then they are delivered via the monitor interface?
johannes
Quoted 6 lines · Johannes Berg
Quoted 3 lines · Jouni Malinen
This code has been there for a long time, but the functionality was broken at some point (maybe already during d80211 -> mac80211 process) due to the beacons not getting delivered there anymore.
Oh, I guess then they are delivered via the monitor interface?
I haven't tested this patch, but yes, I would assume so. They used to be delivered in the exact same way as other management frames and at this point, that would indeed be the monitor interface.
Signature · 1 line
Jouni Malinen PGP id EFC895FA