summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravos <avos@FreeBSD.org>2016-02-29 21:17:39 +0000
committeravos <avos@FreeBSD.org>2016-02-29 21:17:39 +0000
commitd06b46d2e70bd88b761cecaa3f904d4bfde094a1 (patch)
tree2da9bfb3d934cca5ea3c5eccffa0d1c4564d6b55
parent32f8969e48ab5784844efd136f961f16213fa5c8 (diff)
downloadFreeBSD-src-d06b46d2e70bd88b761cecaa3f904d4bfde094a1.zip
FreeBSD-src-d06b46d2e70bd88b761cecaa3f904d4bfde094a1.tar.gz
net80211: do not enforce promiscuous mode for AP scan
Drivers should set their own filters via ic_scan_start()/ic_scan_end() callbacks; and we don't need frames other than beacons or probe responses. (Note: this was a noop since r287197 due to promiscuous mode with bridge workaround) Tested with Intel 3945BG, RTL8188EU and WUSB54GC in HOSTAP mode. Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5474
-rw-r--r--sys/net80211/ieee80211_scan_sta.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_scan_sta.c b/sys/net80211/ieee80211_scan_sta.c
index accf6c8..07df92f 100644
--- a/sys/net80211/ieee80211_scan_sta.c
+++ b/sys/net80211/ieee80211_scan_sta.c
@@ -1714,7 +1714,6 @@ ap_start(struct ieee80211_scan_state *ss, struct ieee80211vap *vap)
st->st_scangen++;
st->st_newscan = 1;
- ieee80211_promisc(vap, true);
return 0;
}
@@ -1724,7 +1723,6 @@ ap_start(struct ieee80211_scan_state *ss, struct ieee80211vap *vap)
static int
ap_cancel(struct ieee80211_scan_state *ss, struct ieee80211vap *vap)
{
- ieee80211_promisc(vap, false);
return 0;
}
@@ -1798,7 +1796,6 @@ ap_end(struct ieee80211_scan_state *ss, struct ieee80211vap *vap)
return 0;
}
}
- ieee80211_promisc(vap, false);
if (ss->ss_flags & (IEEE80211_SCAN_NOPICK | IEEE80211_SCAN_NOJOIN)) {
/*
* Manual/background scan, don't select+join the
OpenPOWER on IntegriCloud