iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9

乔楚 honestqiao at gmail.com
Thu Aug 9 02:20:37 UTC 2012


2012/8/9 Adrian Chadd <adrian at freebsd.org>:
> Hm, so can you disable mesh?
>
> Or, so you don't have to recompile everything, just edit
> ieee80211_input.c, find this code:
>
>
>
> #ifdef IEEE80211_SUPPORT_MESH
>                 case IEEE80211_ELEMID_MESHID:
>                         scan->meshid = frm;
>                         break;
>                 case IEEE80211_ELEMID_MESHCONF:
>                         scan->meshconf = frm;
>                         break;
> #endif
>
> .. and just change that ifdef to
>
> #ifdef UNUSED
>
> I'd like to see if somehow your code is mis-parsing the beacon and
> populating those meshid/meshconf fields. They should be NULL at the
> start of that function.
>
>
>
> Adrian

>And this is an example of it working? What's ifconfig wlan0 list sta show?
Yes , It's working.

#ifconfig wlan0 list sta
ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG
8c:21:0a:43:ef:d4    4   11  54M 27.5    0     16  11296 EPS  AEHTR
RSN HTCAP ATH WPS

#ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 8c:a9:82:5a:41:58
        inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11ng
        status: associated
        ssid OpenBSD channel 11 (2462 MHz 11g ht/20) bssid 8c:21:0a:43:ef:d4
        country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
        AES-CCM 2:128-bit txpower 14 bmiss 10 scanvalid 450 bgscan
        bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 64 protmode CTS
        ampdulimit 64k -amsdutx amsdurx shortgi wme roaming MANUAL


> Hm, so can you disable mesh?
Are you mean remove IEEE80211_SUPPORT_MESH from kernel config?


More information about the freebsd-wireless mailing list