mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
validate the bssid for non-data frames too when operating in
adhoc/ahdemo/hostap modes
This commit is contained in:
parent
2e6e32da7b
commit
7f1d8b7517
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147254
@ -216,8 +216,6 @@ ieee80211_input(struct ieee80211com *ic, struct mbuf *m,
|
||||
}
|
||||
bssid = wh->i_addr3;
|
||||
}
|
||||
if (type != IEEE80211_FC0_TYPE_DATA)
|
||||
break;
|
||||
/*
|
||||
* Data frame, validate the bssid.
|
||||
*/
|
||||
@ -229,6 +227,8 @@ ieee80211_input(struct ieee80211com *ic, struct mbuf *m,
|
||||
ic->ic_stats.is_rx_wrongbss++;
|
||||
goto out;
|
||||
}
|
||||
if (type != IEEE80211_FC0_TYPE_DATA)
|
||||
break;
|
||||
/*
|
||||
* For adhoc mode we cons up a node when it doesn't
|
||||
* exist. This should probably done after an ACL check.
|
||||
|
Loading…
Reference in New Issue
Block a user