]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net80211: enable promiscuous mode state change for non-monitor/ahdemo modes
authorAndriy Voskoboinyk <avos@FreeBSD.org>
Thu, 21 Apr 2016 05:47:47 +0000 (05:47 +0000)
committerAndriy Voskoboinyk <avos@FreeBSD.org>
Thu, 21 Apr 2016 05:47:47 +0000 (05:47 +0000)
commit6459bd2843eab7f7d383415a6ee0873f68f3437d
treedfc147a61fa00eeba76287cf22eb9fa002dde78f
parentc706c470e41177e3a4963a8b5907933db8e88e58
net80211: enable promiscuous mode state change for non-monitor/ahdemo modes

- Allow to enable/disable promiscuous mode when:
  * interface is not a member of bridge, or;
  * request was issued by user (ifconfig wlan0 promisc), or;
  * interface is in MONITOR or AHDEMO mode.
- Drop local workarounds in mwl(4) and malo(4).

Tested with:
- Intel 3945BG, STA mode;
- RTL8188CUS, MONITOR mode;

Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D5472
sys/dev/malo/if_malo.c
sys/dev/mwl/if_mwl.c
sys/net80211/ieee80211.c
sys/net80211/ieee80211_ioctl.c