svn commit: r204436 - head/sys/dev/bwn

Weongyo Jeong weongyo at FreeBSD.org
Sat Feb 27 23:04:30 UTC 2010


Author: weongyo
Date: Sat Feb 27 23:04:29 2010
New Revision: 204436
URL: http://svn.freebsd.org/changeset/base/204436

Log:
  supports the adhoc demo mode that it's tested on modified aircrack-ng
  suite and worked.
  
  Submitted by:	Paul B Mahol <onemda at gmail dot com>

Modified:
  head/sys/dev/bwn/if_bwn.c

Modified: head/sys/dev/bwn/if_bwn.c
==============================================================================
--- head/sys/dev/bwn/if_bwn.c	Sat Feb 27 21:58:55 2010	(r204435)
+++ head/sys/dev/bwn/if_bwn.c	Sat Feb 27 23:04:29 2010	(r204436)
@@ -1076,6 +1076,7 @@ bwn_attach_post(struct bwn_softc *sc)
 	ic->ic_caps =
 		  IEEE80211_C_STA		/* station mode supported */
 		| IEEE80211_C_MONITOR		/* monitor mode */
+		| IEEE80211_C_AHDEMO		/* adhoc demo mode */
 		| IEEE80211_C_SHPREAMBLE	/* short preamble supported */
 		| IEEE80211_C_SHSLOT		/* short slot time supported */
 		| IEEE80211_C_WME		/* WME/WMM supported */
@@ -8447,7 +8448,8 @@ bwn_newstate(struct ieee80211vap *vap, e
 		}
 	}
 
-	if (vap->iv_opmode == IEEE80211_M_MONITOR) {
+	if (vap->iv_opmode == IEEE80211_M_MONITOR ||
+	    vap->iv_opmode == IEEE80211_M_AHDEMO) {
 		/* XXX nothing to do? */
 	} else if (nstate == IEEE80211_S_RUN) {
 		memcpy(sc->sc_bssid, vap->iv_bss->ni_bssid, IEEE80211_ADDR_LEN);


More information about the svn-src-head mailing list