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

乔楚 honestqiao at gmail.com
Thu Aug 23 13:52:52 UTC 2012


2012/8/23 乔楚/HonestQiao <honestqiao at gmail.com>:
> 2012-08-23 14:27, Bernhard Schmidt<bschmidt at freebsd.org> wrote:
>>On Wed, Aug 22, 2012 at 12:18 PM, Bernhard Schmidt <bschmidt at freebsd.org> wrote:
>>> On Wed, Aug 22, 2012 at 5:38 AM, 乔楚 <honestqiao at gmail.com> wrote:
>>>> [11:33:57]root at x201i.pts/2 sys/net80211 # cd /usr/src/
>>>> [11:34:09]root at x201i.pts/2 /usr/src # svn up
>>>> .....
>>>> Updated to revision 239552.
>>>>
>>>> [11:35:46]root at x201i.pts/2 /usr/src # cd sys/net80211
>>>> [11:36:01]root at x201i.pts/2 sys/net80211 # patch -p2 <
>>>> /home/HonestQiao/Downloads/r231187.diff
>>>> Hmm...  Looks like a unified diff to me...
>>>> The text leading up to this was:
>>>> --------------------------
>>>> |Index: sys/net80211/ieee80211.h
>>>> |===================================================================
>>>> |--- sys/net80211/ieee80211.h   (revision 231186)
>>>> |+++ sys/net80211/ieee80211.h   (revision 231187)
>>>> --------------------------
>>>> Patching file ieee80211.h using Plan A...
>>>> Hunk #1 failed at 709.
>>>> 1 out of 1 hunks failed--saving rejects to ieee80211.h.rej
>>>> done
>>>
>>> Is there Windows stuff involved which might change line breaks?
>>>
>>> amy:stable/9% pwd
>>> /home/bschmidt/src/svn/freebsd/stable/9
>>> amy:stable/9% svn up
>>> Updating '.':
>>> At revision 239563.
>>> amy:stable/9% svn stat sys/net80211
>>> amy:stable/9% md5 sys/net80211/ieee80211.h
>>> MD5 (sys/net80211/ieee80211.h) = f3cc66ca7ab81b3c63d1c1fd95806624
>>> amy:stable/9% md5 ~/tmp/r231187.diff
>>> MD5 (/home/bschmidt/tmp/r231187.diff) = e2c5762997088ee1857983a99ddf80bc
>>> amy:stable/9% patch -p0 < ~/tmp/r231187.diff
>>> Hmm...  Looks like a unified diff to me...
>>> The text leading up to this was:
>>> --------------------------
>>> |Index: sys/net80211/ieee80211.h
>>> |===================================================================
>>> |--- sys/net80211/ieee80211.h   (revision 231186)
>>> |+++ sys/net80211/ieee80211.h   (revision 231187)
>>> --------------------------
>>> Patching file sys/net80211/ieee80211.h using Plan A...
>>> Hunk #1 succeeded at 709.
>>> done
>>>
>>> I've attached the patched ieee80211.h
>>
>>Any kind of success yet?
>>
>>I'll push that into the tree as soon as I have received some kind of
>>confirmation.
>>
>>--
>>Bernhard
>
> I'll test it today night.

Good news.
Nothing changed on My AP, My FreeBSD can connect to My AP with your
patched file.

[21:51:10]root at x201i.pts/1 /usr/src # svn info
Path: .
Working Copy Root Path: /usr/src
URL: svn://svn.freebsd.org/base/stable/9
Repository Root: svn://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 239552
Node Kind: directory
Schedule: normal
Last Changed Author: kevlo
Last Changed Rev: 239549
Last Changed Date: 2012-08-22 08:59:17 +0800 (Wed, 22 Aug 2012)

[21:51:13]root at x201i.pts/1 /usr/src # svn stat
M       sys/net80211/ieee80211.h
[21:51:19]root at x201i.pts/1 /usr/src # ifconfig -v wlan0 list sta
ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG
8c:21:0a:43:ef:d4    4   11  54M 24.0    0    903  13920 EPS  AQEHTRS
SSID<OpenBSD> RATES<B2,B4,B11,B22,12,18,24,36> DSPARMS<11> ERP<0x0>
RSN<v1 mc:AES-CCMP uc:AES-CCMP km:8021X-PSK> XRATES<48,72,96,108>
HTCAP<cap 0x11ef param 0x3 mcsset[0-15] extcap 0x400 txbf 0xde7e606
antenna 0x0> ???<331aef1103ffff00000000000000000000-> HTINFO<ctl 11,
7,15,0,0 basicmcs[]> ???<34160b0715000000000000000000000000->
WME<qosinfo 0x83 BE[aifsn 3 cwmin 4 cwmax 10 txop 0] BK[aifsn 7 cwmin
4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 4 txop 94] VI[aifsn 2
cwmin 2 cwmax 3 txop 47]> ATH<0x7fff> WPS<v:1.0 st:C
uuid-e:00-01-02-03-04-05-06-07-08-09-0a-0b-0c-0d-0e-0f>
[21:51:28]root at x201i.pts/1 /usr/src #
[21:51:28]root at x201i.pts/1 /usr/src # uname -a
FreeBSD x201i.honestqiao 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0
r239552M: Thu Aug 23 12:36:01 CST 2012
root at x201i.honestqiao:/usr/obj/usr/src/sys/HonestQiaoKernel  amd64


More information about the freebsd-wireless mailing list