mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Be more careful handling off-channel frames: if the driver (wrongly)
sends frames up the stack after changing the current channel then the lookup by ieee channel number may fail leaving a null ptr in se_chan; if this happens fallback to the channel recorded when the frame is processed (curchan). Since the frame doesn't contribute to scan results for the sta this is acceptable. Reviewed by: thompsa MFC after: 3 days
This commit is contained in:
parent
1b72425ab3
commit
1a4ae5c45b
1 changed files with 4 additions and 3 deletions
|
|
@ -290,11 +290,12 @@ found:
|
|||
*/
|
||||
c = ieee80211_find_channel_byieee(ic, sp->bchan,
|
||||
sp->curchan->ic_flags);
|
||||
if (c == NULL && ise->se_chan == NULL) {
|
||||
if (c != NULL) {
|
||||
ise->se_chan = c;
|
||||
} else if (ise->se_chan == NULL) {
|
||||
/* should not happen, pick something */
|
||||
c = sp->curchan;
|
||||
ise->se_chan = sp->curchan;
|
||||
}
|
||||
ise->se_chan = c;
|
||||
} else
|
||||
ise->se_chan = sp->curchan;
|
||||
ise->se_fhdwell = sp->fhdwell;
|
||||
|
|
|
|||
Loading…
Reference in a new issue