From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 23 13:52:52 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7AE4E1065674; Thu, 23 Aug 2012 13:52:52 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id F20B38FC23; Thu, 23 Aug 2012 13:52:51 +0000 (UTC) Received: by qatn12 with SMTP id n12so539580qat.13 for ; Thu, 23 Aug 2012 06:52:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=KCrH1dY13hR2eHtdSkV3/3TSQieB2vfPFXdeO52D/AQ=; b=bdL6odXtHrCZPjv2r+7PjZ86kb/gCZ/6rTZnsOm6PjNg0ZkmWaxW6PnC1hkJzxrgpH xpRaPmx/ueGAat2R5Faw2sSg0bY7IFR2uXS5kjABPqB37U04YHlAdPm68XhGCsLlQidf QRsgFJNQiw1qDbg4LVUwHm+41sFsPJXbQ38xdO8432PX1hgpS2yPlzlD9gourcX+7vuI id8isKGMMMjTISNJOrHYVRCLkgVlortY9yNT4NDTgxMaiDVbIAj7NKBRQxLPjFVBfPxA kHHmQLiMO2AR4vLmjtGTzAfdXKvq9Vk3F9UXI0ExDw6UeOvGJ11TDdHfuTWuaf9+R38f mLIw== Received: by 10.229.122.220 with SMTP id m28mr711984qcr.49.1345729970844; Thu, 23 Aug 2012 06:52:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.197.65 with HTTP; Thu, 23 Aug 2012 06:52:10 -0700 (PDT) In-Reply-To: <201208231430163933460@gmail.com> References: <201207300139326668335@gmail.com> <201208201829.10554.bschmidt@freebsd.org> <201208212047.50852.bschmidt@freebsd.org> <201208231430163933460@gmail.com> From: =?UTF-8?B?5LmU5qWa?= Date: Thu, 23 Aug 2012 21:52:10 +0800 Message-ID: To: bschmidt Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2012 13:52:52 -0000 2012/8/23 =C7=C7=B3=FE/HonestQiao : > 2012-08-23 14:27, Bernhard Schmidt wrote: >>On Wed, Aug 22, 2012 at 12:18 PM, Bernhard Schmidt = wrote: >>> On Wed, Aug 22, 2012 at 5:38 AM, =C7=C7=B3=FE wr= ote: >>>> [11:33:57]root@x201i.pts/2 sys/net80211 # cd /usr/src/ >>>> [11:34:09]root@x201i.pts/2 /usr/src # svn up >>>> ..... >>>> Updated to revision 239552. >>>> >>>> [11:35:46]root@x201i.pts/2 /usr/src # cd sys/net80211 >>>> [11:36:01]root@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 >>>> |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>> |--- 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) =3D f3cc66ca7ab81b3c63d1c1fd95806624 >>> amy:stable/9% md5 ~/tmp/r231187.diff >>> MD5 (/home/bschmidt/tmp/r231187.diff) =3D e2c5762997088ee1857983a99ddf8= 0bc >>> 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 >>> |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> |--- 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@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@x201i.pts/1 /usr/src # svn stat M sys/net80211/ieee80211.h [21:51:19]root@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 RATES DSPARMS<11> ERP<0x0> RSN XRATES<48,72,96,108> HTCAP ???<331aef1103ffff00000000000000000000-> HTINFO ???<34160b0715000000000000000000000000-> WME ATH<0x7fff> WPS [21:51:28]root@x201i.pts/1 /usr/src # [21:51:28]root@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@x201i.honestqiao:/usr/obj/usr/src/sys/HonestQiaoKernel amd64