Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Aug 2012 10:19:55 +0800
From:      =?UTF-8?B?5LmU5qWa?= <honestqiao@gmail.com>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        freebsd-wireless <freebsd-wireless@freebsd.org>, bschmidt <bschmidt@freebsd.org>
Subject:   Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9
Message-ID:  <CAMAY4Vh5Nf6EGa3K8Vae_MLLfrZozXyO_txRj64VtQ5Hzyr-Ow@mail.gmail.com>
In-Reply-To: <CAJ-Vmo=8mANNs1n4xKRfLpeuPOibL_wNW1xMdigv2rQhR%2BwnWA@mail.gmail.com>
References:  <201207300139326668335@gmail.com> <CAJ-VmokhfuK82iSicx-hKT0X3W=3ia-dwUHqaJxuLJ_YJLOhMw@mail.gmail.com> <2012080200541916697916@gmail.com> <201208011929.23039.bschmidt@freebsd.org> <201208021454506984721@gmail.com> <CAJ-VmoncK47d%2BHVsC=ze6tDDgGQ=wTP3Q7hsADJq%2BcvD6aL1OA@mail.gmail.com> <201208081131539552520@gmail.com> <CAJ-VmokH1Xoo2BfDaJtc-zq4%2BiHjvw5De1y-bCnbvSGrkRBz-Q@mail.gmail.com> <CAMAY4Vg6s8xqjZPVES4OeUkT3rb6ogT3XbseaysQofOFCyPTEQ@mail.gmail.com> <CAJ-VmonDAC2rJTy564HtsVA1_nve2UArgVcB6KAu0R4eSGaGtQ@mail.gmail.com> <CAJ-Vmo=8mANNs1n4xKRfLpeuPOibL_wNW1xMdigv2rQhR%2BwnWA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2012/8/9 Adrian Chadd <adrian@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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMAY4Vh5Nf6EGa3K8Vae_MLLfrZozXyO_txRj64VtQ5Hzyr-Ow>