Date: Sat, 27 Feb 2010 23:04:29 +0000 (UTC) From: Weongyo Jeong <weongyo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r204436 - head/sys/dev/bwn Message-ID: <201002272304.o1RN4TWY099894@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002272304.o1RN4TWY099894>