summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorweongyo <weongyo@FreeBSD.org>2010-02-27 23:04:29 +0000
committerweongyo <weongyo@FreeBSD.org>2010-02-27 23:04:29 +0000
commit994749fe919f6da207ab11375f0d24a5bc80fa12 (patch)
treead8247ea8d66f6103e2679eb44a2b6cf30c5f840
parent4b622047b70d7c7b395253defef5fd50616a9850 (diff)
downloadFreeBSD-src-994749fe919f6da207ab11375f0d24a5bc80fa12.zip
FreeBSD-src-994749fe919f6da207ab11375f0d24a5bc80fa12.tar.gz
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>
-rw-r--r--sys/dev/bwn/if_bwn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/bwn/if_bwn.c b/sys/dev/bwn/if_bwn.c
index 13b35e8..c21b4c3 100644
--- a/sys/dev/bwn/if_bwn.c
+++ b/sys/dev/bwn/if_bwn.c
@@ -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, enum ieee80211_state nstate, int arg)
}
}
- 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);
OpenPOWER on IntegriCloud