correct handling of IFF_PROMISC; this should not be pushed to the parent

device except for monitor and ahdemo mode vaps

Reviewed by:	rpaulo
Approved by:	re (kensmith)
This commit is contained in:
sam 2009-07-24 15:28:29 +00:00
parent a2c9681cf8
commit 671d3b45e2

View File

@ -637,7 +637,8 @@ ieee80211_syncifflag_locked(struct ieee80211com *ic, int flag)
* drivers don't need to special-case it
*/
if (flag == IFF_PROMISC &&
vap->iv_opmode == IEEE80211_M_HOSTAP)
!(vap->iv_opmode == IEEE80211_M_MONITOR ||
vap->iv_opmode == IEEE80211_M_AHDEMO))
continue;
bit = 1;
break;