when ssid suppression is enabled don't respond to probe requests

unless our ssid is specified
This commit is contained in:
Sam Leffler 2005-01-22 20:31:22 +00:00
parent e5a96ac7fb
commit 4ef04d32f3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140634

View File

@ -1986,6 +1986,14 @@ ieee80211_recv_mgmt(struct ieee80211com *ic, struct mbuf *m0,
IEEE80211_VERIFY_ELEMENT(rates, IEEE80211_RATE_MAXSIZE);
IEEE80211_VERIFY_ELEMENT(ssid, IEEE80211_NWID_LEN);
IEEE80211_VERIFY_SSID(ic->ic_bss, ssid);
if ((ic->ic_flags & IEEE80211_F_HIDESSID) && ssid[1] == 0) {
IEEE80211_DISCARD(ic, IEEE80211_MSG_INPUT,
wh, ieee80211_mgt_subtype_name[subtype >>
IEEE80211_FC0_SUBTYPE_SHIFT],
"%s", "no ssid with ssid suppression enabled");
ic->ic_stats.is_rx_ssidmismatch++; /*XXX*/
return;
}
if (ni == ic->ic_bss) {
if (ic->ic_opmode == IEEE80211_M_IBSS) {