From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 01:04:52 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 96DCAA71 for ; Sun, 30 Jun 2013 01:04:52 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from felyko.com (felyko.com [174.136.100.2]) by mx1.freebsd.org (Postfix) with ESMTP id 882871BF0 for ; Sun, 30 Jun 2013 01:04:52 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:bc8a:da35:62b2:afca] (unknown [IPv6:2601:9:4d00:119:bc8a:da35:62b2:afca]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id 254F43982B for ; Sat, 29 Jun 2013 18:04:45 -0700 (PDT) From: Rui Paulo Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: CFT: wpa_supplicant/hostapd import patch Message-Id: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> Date: Sat, 29 Jun 2013 18:04:44 -0700 To: "freebsd-wireless@freebsd.org" Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) X-Mailer: Apple Mail (2.1508) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 01:04:52 -0000 Hi, I have a patch that updates the base system version of wpa_supplicant / = hostapd at: http://people.freebsd.org/~rpaulo/wpa-2.0.diff Beware that it's big. It would be really helpful if you could test it = before I commit it. Thanks, -- Rui Paulo From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 15:49:56 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1613A454; Sun, 30 Jun 2013 15:49:56 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id D43571223; Sun, 30 Jun 2013 15:49:55 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id D30EE4AC1C; Sun, 30 Jun 2013 19:49:50 +0400 (MSK) Date: Sun, 30 Jun 2013 19:49:38 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <8819701.20130630194938@serebryakov.spb.ru> To: Rui Paulo Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 15:49:56 -0000 Hello, Rui. You wrote 30 =D0=B8=D1=8E=D0=BD=D1=8F 2013 =D0=B3., 5:04:44: RP> I have a patch that updates the base system version of wpa_supplicant /= hostapd at: RP> http://people.freebsd.org/~rpaulo/wpa-2.0.diff RP> Beware that it's big. It would be really helpful if you could test it b= efore I commit it. Patch application error: Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: contrib/wpa/src/drivers/driver_bsd.c |=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 |--- contrib/wpa/src/drivers/driver_bsd.c (working copy) |+++ contrib/wpa/src/drivers/driver_bsd.c (working copy) -------------------------- File to patch: r252418 now I have only usr.sbin/wpa/wpa_supplicant/driver_freebsd.c usr.sbin/wpa/hostapd/driver_freebsd.c --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 16:20:49 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 05E35AE5; Sun, 30 Jun 2013 16:20:49 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from felyko.com (felyko.com [174.136.100.2]) by mx1.freebsd.org (Postfix) with ESMTP id E8B1C12DF; Sun, 30 Jun 2013 16:20:48 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336] (unknown [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id E6C673982B; Sun, 30 Jun 2013 09:20:46 -0700 (PDT) Subject: Re: CFT: wpa_supplicant/hostapd import patch Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=utf-8 From: Rui Paulo X-Priority: 3 (Normal) In-Reply-To: <8819701.20130630194938@serebryakov.spb.ru> Date: Sun, 30 Jun 2013 09:20:45 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> To: Lev Serebryakov X-Mailer: Apple Mail (2.1508) Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 16:20:49 -0000 On 30 Jun 2013, at 08:49, Lev Serebryakov wrote: > Hello, Rui. > You wrote 30 =D0=B8=D1=8E=D0=BD=D1=8F 2013 =D0=B3., 5:04:44: >=20 > RP> I have a patch that updates the base system version of = wpa_supplicant / hostapd at: > RP> http://people.freebsd.org/~rpaulo/wpa-2.0.diff > RP> Beware that it's big. It would be really helpful if you could test = it before I commit it. > Patch application error: >=20 > Hmm... The next patch looks like a unified diff to me... > The text leading up to this was: > -------------------------- > |Index: contrib/wpa/src/drivers/driver_bsd.c > |=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 > |--- contrib/wpa/src/drivers/driver_bsd.c (working copy) > |+++ contrib/wpa/src/drivers/driver_bsd.c (working copy) > -------------------------- > File to patch: >=20 > r252418 >=20 > now I have only >=20 > usr.sbin/wpa/wpa_supplicant/driver_freebsd.c > usr.sbin/wpa/hostapd/driver_freebsd.c >=20 Looks like svn wasn't smart enough to include the copy in the diff = output. Can you copy driver_bsd.c from vendor/wpa/dist/src/drivers? -- Rui Paulo From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 16:27:53 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 78254D41; Sun, 30 Jun 2013 16:27:53 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from felyko.com (felyko.com [IPv6:2607:f2f8:a528::3:1337:ca7]) by mx1.freebsd.org (Postfix) with ESMTP id 657351321; Sun, 30 Jun 2013 16:27:53 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336] (unknown [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id AFC9E3982B; Sun, 30 Jun 2013 09:27:52 -0700 (PDT) Subject: Re: CFT: wpa_supplicant/hostapd import patch Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=utf-8 From: Rui Paulo X-Priority: 3 (Normal) In-Reply-To: Date: Sun, 30 Jun 2013 09:27:51 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> To: Lev Serebryakov X-Mailer: Apple Mail (2.1508) Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 16:27:53 -0000 On 30 Jun 2013, at 09:20, Rui Paulo wrote: > On 30 Jun 2013, at 08:49, Lev Serebryakov wrote: >=20 >> Hello, Rui. >> You wrote 30 =D0=B8=D1=8E=D0=BD=D1=8F 2013 =D0=B3., 5:04:44: >>=20 >> RP> I have a patch that updates the base system version of = wpa_supplicant / hostapd at: >> RP> http://people.freebsd.org/~rpaulo/wpa-2.0.diff >> RP> Beware that it's big. It would be really helpful if you could = test it before I commit it. >> Patch application error: >>=20 >> Hmm... The next patch looks like a unified diff to me... >> The text leading up to this was: >> -------------------------- >> |Index: contrib/wpa/src/drivers/driver_bsd.c >> |=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 >> |--- contrib/wpa/src/drivers/driver_bsd.c (working copy) >> |+++ contrib/wpa/src/drivers/driver_bsd.c (working copy) >> -------------------------- >> File to patch: >>=20 >> r252418 >>=20 >> now I have only >>=20 >> usr.sbin/wpa/wpa_supplicant/driver_freebsd.c >> usr.sbin/wpa/hostapd/driver_freebsd.c >>=20 >=20 >=20 > Looks like svn wasn't smart enough to include the copy in the diff = output. Can you copy driver_bsd.c from vendor/wpa/dist/src/drivers? Actually, I just need to use svn diff --show-copies-as-adds. I've = updated the patch: http://people.freebsd.org/~rpaulo/wpa-2.0.diff.gz -- Rui Paulo From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 16:43:29 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 720F3FEA; Sun, 30 Jun 2013 16:43:29 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 34DA91391; Sun, 30 Jun 2013 16:43:29 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id C67804AC1C; Sun, 30 Jun 2013 20:43:21 +0400 (MSK) Date: Sun, 30 Jun 2013 20:43:09 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <668527349.20130630204309@serebryakov.spb.ru> To: Rui Paulo Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 16:43:29 -0000 Hello, Rui. You wrote 30 =D0=B8=D1=8E=D0=BD=D1=8F 2013 =D0=B3., 20:20:45: RP> Looks like svn wasn't smart enough to include the copy in the RP> diff output. Can you copy driver_bsd.c from vendor/wpa/dist/src/drivers? Now it is Patching file contrib/wpa/src/utils/radiotap.h using Plan A... Reversed (or previously applied) patch detected! Assume -R? [y] I'm apply "meaningful" part by hands. Also, Patching file usr.sbin/wpa/hostapd/driver_freebsd.c using Plan A... Hunk #1 failed at 0. 1 out of 1 hunks failed--saving rejects to usr.sbin/wpa/hostapd/driver_free= bsd.c.rej ... Patching file usr.sbin/wpa/wpa_supplicant/driver_freebsd.c using Plan A... Hunk #1 failed at 0. 1 out of 1 hunks failed--saving rejects to usr.sbin/wpa/wpa_supplicant/driv= er_freebsd.c.rej I removed both by hands. Now I'm building system, and will test hostapd with WPA2-PSK tonight and tomorrow. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:08:31 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 07C368CC; Sun, 30 Jun 2013 20:08:31 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id BD9C61A33; Sun, 30 Jun 2013 20:08:30 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 6C3964AC1C; Mon, 1 Jul 2013 00:08:24 +0400 (MSK) Date: Mon, 1 Jul 2013 00:08:11 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1415556931.20130701000811@serebryakov.spb.ru> To: Rui Paulo Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:08:31 -0000 Hello, Rui. You wrote 30 =D0=B8=D1=8E=D0=BD=D1=8F 2013 =D0=B3., 20:27:51: RP> Actually, I just need to use svn diff --show-copies-as-adds. I've updat= ed the patch: RP> http://people.freebsd.org/~rpaulo/wpa-2.0.diff.gz And it is better to apply it with "svn patch", not simple "patch". BTW, do you have plan to enable different advanced options, as WPS, P2P, and others? --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:09:41 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3DDEAA50; Sun, 30 Jun 2013 20:09:41 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from felyko.com (felyko.com [174.136.100.2]) by mx1.freebsd.org (Postfix) with ESMTP id 2ADC01A38; Sun, 30 Jun 2013 20:09:41 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336] (unknown [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id 52F273982B; Sun, 30 Jun 2013 13:09:40 -0700 (PDT) Subject: Re: CFT: wpa_supplicant/hostapd import patch Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=utf-8 From: Rui Paulo X-Priority: 3 (Normal) In-Reply-To: <1415556931.20130701000811@serebryakov.spb.ru> Date: Sun, 30 Jun 2013 13:09:39 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> To: Lev Serebryakov X-Mailer: Apple Mail (2.1508) Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:09:41 -0000 On 30 Jun 2013, at 13:08, Lev Serebryakov wrote: > Hello, Rui. > You wrote 30 =D0=B8=D1=8E=D0=BD=D1=8F 2013 =D0=B3., 20:27:51: >=20 > RP> Actually, I just need to use svn diff --show-copies-as-adds. I've = updated the patch: > RP> http://people.freebsd.org/~rpaulo/wpa-2.0.diff.gz > And it is better to apply it with "svn patch", not simple "patch". >=20 > BTW, do you have plan to enable different advanced options, as WPS, > P2P, and others? WPS is enabled. P2P requires work in the drivers and net80211. -- Rui Paulo From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:11:50 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2E1A2ABD; Sun, 30 Jun 2013 20:11:50 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id E45841A70; Sun, 30 Jun 2013 20:11:49 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 806F94AC1C; Mon, 1 Jul 2013 00:11:48 +0400 (MSK) Date: Mon, 1 Jul 2013 00:11:36 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <638557210.20130701001136@serebryakov.spb.ru> To: Rui Paulo Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:11:50 -0000 Hello, Rui. You wrote 1 =D0=B8=D1=8E=D0=BB=D1=8F 2013 =D0=B3., 0:09:39: RP> On 30 Jun 2013, at 13:08, Lev Serebryakov wrote: >> RP> Actually, I just need to use svn diff --show-copies-as-adds. I've up= dated the patch: >> RP> http://people.freebsd.org/~rpaulo/wpa-2.0.diff.gz >> And it is better to apply it with "svn patch", not simple "patch". >> BTW, do you have plan to enable different advanced options, as WPS, >> P2P, and others? RP> WPS is enabled. P2P requires work in the drivers and net80211. I'm more interested in hostpad P2P support, not client one :) Does it need work in drivers too? --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:13:06 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0390AADD; Sun, 30 Jun 2013 20:13:06 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from felyko.com (felyko.com [IPv6:2607:f2f8:a528::3:1337:ca7]) by mx1.freebsd.org (Postfix) with ESMTP id E1C541A79; Sun, 30 Jun 2013 20:13:05 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336] (unknown [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id F14893982B; Sun, 30 Jun 2013 13:13:04 -0700 (PDT) Subject: Re: CFT: wpa_supplicant/hostapd import patch Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=utf-8 From: Rui Paulo X-Priority: 3 (Normal) In-Reply-To: <638557210.20130701001136@serebryakov.spb.ru> Date: Sun, 30 Jun 2013 13:13:04 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> To: Lev Serebryakov X-Mailer: Apple Mail (2.1508) Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:13:06 -0000 On 30 Jun 2013, at 13:11, Lev Serebryakov wrote: > Hello, Rui. > You wrote 1 =D0=B8=D1=8E=D0=BB=D1=8F 2013 =D0=B3., 0:09:39: >=20 > RP> On 30 Jun 2013, at 13:08, Lev Serebryakov wrote: >=20 >>> RP> Actually, I just need to use svn diff --show-copies-as-adds. = I've updated the patch: >>> RP> http://people.freebsd.org/~rpaulo/wpa-2.0.diff.gz >>> And it is better to apply it with "svn patch", not simple "patch". >>> BTW, do you have plan to enable different advanced options, as = WPS, >>> P2P, and others? > RP> WPS is enabled. P2P requires work in the drivers and net80211. > I'm more interested in hostpad P2P support, not client one :) Does it > need work in drivers too? Yes, it does. I don't have any plans to work on P2P, sorry. -- Rui Paulo From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:15:18 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4D2A7B02; Sun, 30 Jun 2013 20:15:18 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 13D521A82; Sun, 30 Jun 2013 20:15:18 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id C26334AC58; Mon, 1 Jul 2013 00:15:16 +0400 (MSK) Date: Mon, 1 Jul 2013 00:15:05 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1342388755.20130701001505@serebryakov.spb.ru> To: Rui Paulo Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:15:18 -0000 Hello, Rui. You wrote 1 =D0=B8=D1=8E=D0=BB=D1=8F 2013 =D0=B3., 0:13:04: RP> Yes, it does. I don't have any plans to work on P2P, sorry. Could you give some links/pointers to what is needed from drivers/stack to make it work? Is here any documentation on API, or something like that? --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:17:31 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 50E8BB1C; Sun, 30 Jun 2013 20:17:31 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from felyko.com (felyko.com [174.136.100.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3A1CE1A88; Sun, 30 Jun 2013 20:17:30 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336] (unknown [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id B54643982B; Sun, 30 Jun 2013 13:17:30 -0700 (PDT) Subject: Re: CFT: wpa_supplicant/hostapd import patch Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=utf-8 From: Rui Paulo X-Priority: 3 (Normal) In-Reply-To: <1342388755.20130701001505@serebryakov.spb.ru> Date: Sun, 30 Jun 2013 13:17:30 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> To: Lev Serebryakov X-Mailer: Apple Mail (2.1508) Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:17:31 -0000 On 30 Jun 2013, at 13:15, Lev Serebryakov wrote: > Hello, Rui. > You wrote 1 =D0=B8=D1=8E=D0=BB=D1=8F 2013 =D0=B3., 0:13:04: >=20 > RP> Yes, it does. I don't have any plans to work on P2P, sorry. > Could you give some links/pointers to what is needed from > drivers/stack to make it work? Is here any documentation on API, or > something like that? I did not investigate much. If I were you, I'd look at the Makefile from = hostapd to see which files are needed along with the necessary = CONFIG_P2P macro. Then I would add them to our Makefile. You'll have = build failures. Go from there and figure out how it works and what needs = to be done. -- Rui Paulo From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:25:24 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 32BC2B66; Sun, 30 Jun 2013 20:25:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x22d.google.com (mail-qe0-x22d.google.com [IPv6:2607:f8b0:400d:c02::22d]) by mx1.freebsd.org (Postfix) with ESMTP id C42371AA4; Sun, 30 Jun 2013 20:25:23 +0000 (UTC) Received: by mail-qe0-f45.google.com with SMTP id w7so1380796qeb.18 for ; Sun, 30 Jun 2013 13:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=onafQv567zDeyTIGOQau61rOEO4YD3J8pv0SRHkhw3s=; b=P8Ckv8jGxAy5MBcVUkHmdXN9poVuF2sIYP0fKD8PEtO0VruoTZiSc3hQEZikUInJOt +akeYwdCBYGbAKY8X0QXYgl+WE5JDSLquiFi1OElgMIrd4gcWW3RbQjud7s1yb1Oh2MU BHwgn9sqD98nS8BYokF9DiMiLlJ1VglxiXSMYF5E8MrWYnS9Wq5X3fmjehQ4EZNsSS2y NU6iSjEAgaqDlyrMAiEV+ZHetOCyRe2moQXgUZAzPmMtfolYJraKOd0uxubOcfx1eea/ z4WCQyHAZd1vUTwOkUG6wDt9zuRUS4CTjMniCLlkvH4oQZG8dERcFT669bEPi9I8UtE1 2apg== MIME-Version: 1.0 X-Received: by 10.224.21.130 with SMTP id j2mr29364330qab.112.1372623923327; Sun, 30 Jun 2013 13:25:23 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.101.134 with HTTP; Sun, 30 Jun 2013 13:25:23 -0700 (PDT) In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> Date: Sun, 30 Jun 2013 13:25:23 -0700 X-Google-Sender-Auth: cg56vKcJVnqam1xqomIAaoXpQbc Message-ID: Subject: Re: CFT: wpa_supplicant/hostapd import patch From: Adrian Chadd To: Rui Paulo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Lev Serebryakov , "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:25:24 -0000 On 30 June 2013 13:17, Rui Paulo wrote: > I did not investigate much. If I were you, I'd look at the Makefile from = hostapd to see which files are needed along with the necessary CONFIG_P2P m= acro. Then I would add them to our Makefile. You'll have build failures. Go= from there and figure out how it works and what needs to be done. Yes, do this. I'm going to work on (real) off-channel traffic support in net80211/ath soo= n. Basic p2p isn't that hard - we'd just create another vap (call it a p2p mode vap) and have it implement the relevant semantics for p2p (discovery, announcement, session master/slave handling, etc.) After that I believe it looks like a normal station mode connection. I _think_ that the net80211 / driver side of things is pretty simple. But I could be very wrong. However, the p2p off-channel stuff requires significant stack and driver work. I'm still sketching out what that's going to look like. I'd love for someone to "own" p2p and work with us to get something designed and into the tree! -adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:25:29 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5EB36B69; Sun, 30 Jun 2013 20:25:29 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 246DE1AA5; Sun, 30 Jun 2013 20:25:29 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id D3C394AC58; Mon, 1 Jul 2013 00:25:27 +0400 (MSK) Date: Mon, 1 Jul 2013 00:25:16 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <157797947.20130701002516@serebryakov.spb.ru> To: Rui Paulo Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:25:29 -0000 Hello, Rui. You wrote 1 =D0=B8=D1=8E=D0=BB=D1=8F 2013 =D0=B3., 0:17:30: RP> I did not investigate much. If I were you, I'd look at the Makefile RP> from hostapd to see which files are needed along with the necessary RP> CONFIG_P2P macro. Then I would add them to our Makefile. You'll have RP> build failures. Go from there and figure out how it works and what need= s to be done. "how it works" is most scary part. As far as I understand, 802.11 standards are not freely-available. Or they are? I need to investigate it. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:26:29 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5A646BA2; Sun, 30 Jun 2013 20:26:29 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) by mx1.freebsd.org (Postfix) with ESMTP id ED4431AAA; Sun, 30 Jun 2013 20:26:28 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id d13so1674643qak.9 for ; Sun, 30 Jun 2013 13:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=OxGIsqXkED08ILLhYGU/M8oKyqfiZVdBP1wEvTdxCIc=; b=gcNZVHmCdiUjDwEtfhRDSEA29uUJ7ikaY/yOFTti45J7b4iLb7LWUCoW44md9426A4 a8UrolHRJu0KI0wn8ZHRdrFHcql3yI5MkTY8HNZ5KNyt52NofagVSX7sbqP4idSDZewZ IfmhZNiXZVu79UB/7FbGzW6Ji6d0NGQr2J2/4kJ5bDQmRlm1EQWHZriGFFtO/s+nvvn8 ruL5+pUa2FbfZUddF3UNhdHerEgwdmKRypQylS0w3US/N+w9iTrOh9295+zoTi9aVZcO 4pKfP5OKDBr88y+rUcSx+zQFWkbpc6wjg+clNVODbbNVCadjwwkq1Cy90hQpcFF+Csay 7SqA== MIME-Version: 1.0 X-Received: by 10.229.136.7 with SMTP id p7mr6840435qct.48.1372623988451; Sun, 30 Jun 2013 13:26:28 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.101.134 with HTTP; Sun, 30 Jun 2013 13:26:28 -0700 (PDT) In-Reply-To: <157797947.20130701002516@serebryakov.spb.ru> References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <157797947.20130701002516@serebryakov.spb.ru> Date: Sun, 30 Jun 2013 13:26:28 -0700 X-Google-Sender-Auth: igbVzIqADtIASb1-Up_TjfTvYao Message-ID: Subject: Re: CFT: wpa_supplicant/hostapd import patch From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:26:29 -0000 They're all available for free. The drafts are kept private during the draft process. But after they are standardised, it's all published. Google "802.11-2012" -adrian On 30 June 2013 13:25, Lev Serebryakov wrote: > Hello, Rui. > You wrote 1 =D0=B8=D1=8E=D0=BB=D1=8F 2013 =D0=B3., 0:17:30: > > RP> I did not investigate much. If I were you, I'd look at the Makefile > RP> from hostapd to see which files are needed along with the necessary > RP> CONFIG_P2P macro. Then I would add them to our Makefile. You'll have > RP> build failures. Go from there and figure out how it works and what ne= eds to be done. > "how it works" is most scary part. As far as I understand, 802.11 standa= rds > are not freely-available. Or they are? I need to investigate it. > > -- > // Black Lion AKA Lev Serebryakov > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g" From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:28:30 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AC152E6E; Sun, 30 Jun 2013 20:28:30 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from felyko.com (felyko.com [IPv6:2607:f2f8:a528::3:1337:ca7]) by mx1.freebsd.org (Postfix) with ESMTP id 95FC31AEA; Sun, 30 Jun 2013 20:28:30 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336] (unknown [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id 5908F3982B; Sun, 30 Jun 2013 13:28:30 -0700 (PDT) Subject: Re: CFT: wpa_supplicant/hostapd import patch Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii From: Rui Paulo X-Priority: 3 (Normal) In-Reply-To: <157797947.20130701002516@serebryakov.spb.ru> Date: Sun, 30 Jun 2013 13:28:29 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <775B2027-C5FC-4433-9E7C-B608DA937314@FreeBSD.org> References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <157797947.20130701002516@serebryakov.spb.ru> To: Lev Serebryakov X-Mailer: Apple Mail (2.1508) Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:28:30 -0000 On 30 Jun 2013, at 13:25, Lev Serebryakov wrote: > "how it works" is most scary part. As far as I understand, 802.11 = standards > are not freely-available. Or they are? I need to investigate it. No, they aren't :-( That said, if you can look at the source code of = mac80211/ath9k I think you could derive how it's supposed to work. I = understand that it's a huge task. -- Rui Paulo From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:31:16 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 47EF4B9; Sun, 30 Jun 2013 20:31:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x22e.google.com (mail-qa0-x22e.google.com [IPv6:2607:f8b0:400d:c00::22e]) by mx1.freebsd.org (Postfix) with ESMTP id DA8421B0C; Sun, 30 Jun 2013 20:31:15 +0000 (UTC) Received: by mail-qa0-f46.google.com with SMTP id ih17so1656127qab.5 for ; Sun, 30 Jun 2013 13:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=S0UhrKBlDN3ZR3tAesV0QjkqXapNBrP4hYScnPjxRVw=; b=LWn04OTrRiVIbMPQfDedQFdUN4KzOkN65df29WQFiFQUj8NmTxTwe3YOvZAaA5mPy0 i9RCyxTA5YQ+J0kxY6MZZeag5x9KZASCJVWONXtkD/JpwbG1w8cCxTREhfuhudYFPUnY p7kEpQ9eLyHV6/b8hw9wu1pNMam9hgIDRD8xPD9c4ax2Uk9lpO703HA3s6qsMOEgFfU8 lW+oLP8ZBr81FL1YlbtFCBTNdvhhzEdVjp7sAkzNOojp7kAcVAjT9c6e5dRSLLuiVJWw yCS2Ov6cGFDsMbr6UD1qh1e74J9eKVXhOaPsYFrJKVbwNng6DhhehPGroX704RlsFYvU 5CNw== MIME-Version: 1.0 X-Received: by 10.229.156.16 with SMTP id u16mr6725933qcw.97.1372624275339; Sun, 30 Jun 2013 13:31:15 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.101.134 with HTTP; Sun, 30 Jun 2013 13:31:15 -0700 (PDT) In-Reply-To: <775B2027-C5FC-4433-9E7C-B608DA937314@FreeBSD.org> References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <157797947.20130701002516@serebryakov.spb.ru> <775B2027-C5FC-4433-9E7C-B608DA937314@FreeBSD.org> Date: Sun, 30 Jun 2013 13:31:15 -0700 X-Google-Sender-Auth: 5fY8N8m4CEZExiyAfWGa5jUP0q4 Message-ID: Subject: Re: CFT: wpa_supplicant/hostapd import patch From: Adrian Chadd To: Rui Paulo Content-Type: text/plain; charset=ISO-8859-1 Cc: Lev Serebryakov , "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:31:16 -0000 Lemme search through 802.11-2012. I have ithere. -adrian On 30 June 2013 13:28, Rui Paulo wrote: > On 30 Jun 2013, at 13:25, Lev Serebryakov wrote: > >> "how it works" is most scary part. As far as I understand, 802.11 standards >> are not freely-available. Or they are? I need to investigate it. > > > No, they aren't :-( That said, if you can look at the source code of mac80211/ath9k I think you could derive how it's supposed to work. I understand that it's a huge task. > > -- > Rui Paulo > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:34:19 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3A34FE5; Sun, 30 Jun 2013 20:34:19 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id F3E211B19; Sun, 30 Jun 2013 20:34:18 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id C12594AC1C; Mon, 1 Jul 2013 00:34:17 +0400 (MSK) Date: Mon, 1 Jul 2013 00:34:05 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <657034146.20130701003405@serebryakov.spb.ru> To: Adrian Chadd Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:34:19 -0000 Hello, Adrian. You wrote 1 =D0=B8=D1=8E=D0=BB=D1=8F 2013 =D0=B3., 0:25:23: AC> Basic p2p isn't that hard - we'd just create another vap (call it a AC> p2p mode vap) and have it implement the relevant semantics for p2p AC> (discovery, announcement, session master/slave handling, etc.) After AC> that I believe it looks like a normal station mode connection. Do I understand right, here you describe P in P2P? AC> I _think_ that the net80211 / driver side of things is pretty simple. AC> But I could be very wrong. AC> However, the p2p off-channel stuff requires significant stack and AC> driver work. I'm still sketching out what that's going to look like. And off-channel mode is mode, when here is (true) AP, which coordinates 2 clients to send traffic directly, without AP routing? --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:35:30 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4287E106; Sun, 30 Jun 2013 20:35:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x22c.google.com (mail-qe0-x22c.google.com [IPv6:2607:f8b0:400d:c02::22c]) by mx1.freebsd.org (Postfix) with ESMTP id E89661B20; Sun, 30 Jun 2013 20:35:29 +0000 (UTC) Received: by mail-qe0-f44.google.com with SMTP id 5so1379734qeb.31 for ; Sun, 30 Jun 2013 13:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=AOa2QOB/5GswLoADLXx6ySvgWfYA3u65ECiFpqnruvE=; b=PZBuww4NNFLPrGzfGSuiyzITYGrOREoPVzLDCWIY0zn3qKNQgJH7ejUw2zMYc+bbMd HK/EnueQHqI28sxELMXoObYUgWfCG6CogFkiuUeVqdYE1ZqwE/dRyvQnMefrs15PxXkT zFv+Knwhj1V52XcPgr5dlmlMdcOqw2eJpKAXyk2m3411ilzkHgjhWFLoeuIdApQvKXml hh3yjx9jg9UwmfuwpqEQuHPgNgQ013ZUaysUlnr96gUtL+DLnVSSXX8T1C4LlOXFVVmQ kJM4xTNjvATG431dHGAWY+m2yvhG3vLNsTeSgHFGnTCESNIrWbZhbzuTsQhQGkRW6IbJ 0nWw== MIME-Version: 1.0 X-Received: by 10.229.178.137 with SMTP id bm9mr5000076qcb.41.1372624529465; Sun, 30 Jun 2013 13:35:29 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.101.134 with HTTP; Sun, 30 Jun 2013 13:35:29 -0700 (PDT) In-Reply-To: <657034146.20130701003405@serebryakov.spb.ru> References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <657034146.20130701003405@serebryakov.spb.ru> Date: Sun, 30 Jun 2013 13:35:29 -0700 X-Google-Sender-Auth: d7YewwN4IxZiDVZdso_5erSkGyo Message-ID: Subject: Re: CFT: wpa_supplicant/hostapd import patch From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:35:30 -0000 On 30 June 2013 13:34, Lev Serebryakov wrote: > And off-channel mode is mode, when here is (true) AP, which coordinates 2 > clients to send traffic directly, without AP routing? I don't know the underlying details. I just know what the driver has to do - fast channel change and buffering frames correctly. You can't just do what drivers / net80211 does right now and _flush_ the queue when it's time to change channel; that breaks all kinds of things in 11n. -adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:36:11 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 010DC124; Sun, 30 Jun 2013 20:36:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x233.google.com (mail-qa0-x233.google.com [IPv6:2607:f8b0:400d:c00::233]) by mx1.freebsd.org (Postfix) with ESMTP id 921ED1B26; Sun, 30 Jun 2013 20:36:10 +0000 (UTC) Received: by mail-qa0-f51.google.com with SMTP id f11so1517875qae.3 for ; Sun, 30 Jun 2013 13:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=bvmIRcDYukI8YG8TkOU8IhBluU07IpOFgVpDVuVPysQ=; b=MdKRy7XLXwtnZLuke+YCPgPUkp27asBoo37HarHz/jRQpp6fy2c3dsVQQfn/wAwA6t DNzhOMgpLebfB/jfYMJ/2G9fnyJ+PFy2FFVO3AWY318o1y0ZkzKIudLkpFoAE/LZbQ3x rI6t/U7UBmzHthO8Omp5KIIOLF011BN5snYMxDGF0pZm9Do1u9MKmqCUjGz6NngRkg14 0m0BD8TtvIwMeulYimA9UbfxiZusSf0NxtUFULhRZ6qOS9B4j9gyoSn6LzW+JG24Emco lJHG4FQf50X1bjXt8lf3UQ34ocwKnBu/bXZL8E3pE4pHtIy89koZsezTOiwU0vMLxxgT KMhA== MIME-Version: 1.0 X-Received: by 10.49.35.65 with SMTP id f1mr28834859qej.72.1372624570131; Sun, 30 Jun 2013 13:36:10 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.101.134 with HTTP; Sun, 30 Jun 2013 13:36:10 -0700 (PDT) In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <157797947.20130701002516@serebryakov.spb.ru> <775B2027-C5FC-4433-9E7C-B608DA937314@FreeBSD.org> Date: Sun, 30 Jun 2013 13:36:10 -0700 X-Google-Sender-Auth: 8ctMsIiqanWBJB07skKEx8eh11g Message-ID: Subject: Re: CFT: wpa_supplicant/hostapd import patch From: Adrian Chadd To: Rui Paulo Content-Type: text/plain; charset=ISO-8859-1 Cc: Lev Serebryakov , "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:36:11 -0000 Crap, it seems that you're right. There's no mention of wifi direct or p2p in 802.11-2012. -adrian On 30 June 2013 13:31, Adrian Chadd wrote: > Lemme search through 802.11-2012. I have ithere. > > > > -adrian > > > On 30 June 2013 13:28, Rui Paulo wrote: >> On 30 Jun 2013, at 13:25, Lev Serebryakov wrote: >> >>> "how it works" is most scary part. As far as I understand, 802.11 standards >>> are not freely-available. Or they are? I need to investigate it. >> >> >> No, they aren't :-( That said, if you can look at the source code of mac80211/ath9k I think you could derive how it's supposed to work. I understand that it's a huge task. >> >> -- >> Rui Paulo >> >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:43:11 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EDF94186; Sun, 30 Jun 2013 20:43:11 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id A99AE1B3B; Sun, 30 Jun 2013 20:43:11 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 028194AC58; Mon, 1 Jul 2013 00:43:09 +0400 (MSK) Date: Mon, 1 Jul 2013 00:42:58 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <1848916453.20130701004258@serebryakov.spb.ru> To: Adrian Chadd Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <157797947.20130701002516@serebryakov.spb.ru> <775B2027-C5FC-4433-9E7C-B608DA937314@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: lev@FreeBSD.org 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: Sun, 30 Jun 2013 20:43:12 -0000 Hello, Adrian. You wrote 1 =E8=FE=EB=FF 2013 =E3., 0:36:10: AC> Crap, it seems that you're right. There's no mention of wifi direct or AC> p2p in 802.11-2012. It looks like it is not "official" part of 802.11 http://en.wikipedia.org/wiki/WiFi_Direct I could not find which part ("letter code") of standard it is! --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:45:16 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C2F481BE; Sun, 30 Jun 2013 20:45:16 +0000 (UTC) (envelope-from rpaulo@freebsd.org) Received: from felyko.com (felyko.com [IPv6:2607:f2f8:a528::3:1337:ca7]) by mx1.freebsd.org (Postfix) with ESMTP id A9EEC1B4F; Sun, 30 Jun 2013 20:45:16 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336] (unknown [IPv6:2601:9:4d00:119:59aa:f7dd:2eeb:e336]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id 05DD33982B; Sun, 30 Jun 2013 13:45:15 -0700 (PDT) Subject: Re: CFT: wpa_supplicant/hostapd import patch Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=utf-8 From: Rui Paulo X-Priority: 3 (Normal) In-Reply-To: <1848916453.20130701004258@serebryakov.spb.ru> Date: Sun, 30 Jun 2013 13:45:15 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <64C55E19-C295-4A5A-9B91-5CD3D7B92822@freebsd.org> References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <157797947.20130701002516@serebryakov.spb.ru> <775B2027-C5FC-4433-9E7C-B608DA937314@FreeBSD.org> <1848916453.20130701004258@serebryakov.spb.ru> To: lev@FreeBSD.org X-Mailer: Apple Mail (2.1508) Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:45:16 -0000 On 30 Jun 2013, at 13:42, Lev Serebryakov wrote: > Hello, Adrian. > You wrote 1 =D0=B8=D1=8E=D0=BB=D1=8F 2013 =D0=B3., 0:36:10: >=20 > AC> Crap, it seems that you're right. There's no mention of wifi = direct or > AC> p2p in 802.11-2012. > It looks like it is not "official" part of 802.11 >=20 > http://en.wikipedia.org/wiki/WiFi_Direct >=20 > I could not find which part ("letter code") of standard it is! You can buy them from WiFi alliance: https://www.wi-fi.org/knowledge-center/published-specifications -- Rui Paulo From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:47:00 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 06E4F1D8; Sun, 30 Jun 2013 20:47:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x22a.google.com (mail-qc0-x22a.google.com [IPv6:2607:f8b0:400d:c01::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 981811B5A; Sun, 30 Jun 2013 20:46:59 +0000 (UTC) Received: by mail-qc0-f170.google.com with SMTP id s1so2470456qcw.29 for ; Sun, 30 Jun 2013 13:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=CXDoqN1Nf5N1b0veltzEt540uppVFdDXSSrO5kYG34I=; b=eH9ZTYOs0kx3qi8oq7bFnvd9f2z7qz0hQmOKeMmzQVivplqBF9evKm9uh61joOUCyI Qhx87Df6h9T/gQpiY74qulBBVN7EPX+et6jZXbXQk86SEYDTATwD05nA6dMToulFfa5C RwlEq/Hm07szxco/Sv4GMMVMRJz2l8+2UPs2FzsHYjsS853NKs+WtBfVBcOu+2PbMvnq ko21LuAJPd4xW4BHkg16QByeGBJXaBv1JHoEYR0C1WVr79OPFaBmgtnG8sGXVhB/Qn3Y 0TUWMLfVLYI1zu7Khp9ntJfARbsk4YgT/wTU3wRcmFamgdQPwILiOp+BUUQARLkyolKz zXGA== MIME-Version: 1.0 X-Received: by 10.224.190.137 with SMTP id di9mr28531569qab.95.1372625219093; Sun, 30 Jun 2013 13:46:59 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.101.134 with HTTP; Sun, 30 Jun 2013 13:46:59 -0700 (PDT) In-Reply-To: <1848916453.20130701004258@serebryakov.spb.ru> References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <157797947.20130701002516@serebryakov.spb.ru> <775B2027-C5FC-4433-9E7C-B608DA937314@FreeBSD.org> <1848916453.20130701004258@serebryakov.spb.ru> Date: Sun, 30 Jun 2013 13:46:59 -0700 X-Google-Sender-Auth: yp5XrN8RGFWAXbNhcs4Ouj1PRiA Message-ID: Subject: Re: CFT: wpa_supplicant/hostapd import patch From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:47:00 -0000 Greeeat. Well, I'd love to see this appear. I wonder how we can legitimately get a copy of this for us to use to develop the thing. -adrian On 30 June 2013 13:42, Lev Serebryakov wrote: > Hello, Adrian. > You wrote 1 =D0=B8=D1=8E=D0=BB=D1=8F 2013 =D0=B3., 0:36:10: > > AC> Crap, it seems that you're right. There's no mention of wifi direct o= r > AC> p2p in 802.11-2012. > It looks like it is not "official" part of 802.11 > > http://en.wikipedia.org/wiki/WiFi_Direct > > I could not find which part ("letter code") of standard it is! > > -- > // Black Lion AKA Lev Serebryakov > From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:51:30 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BEFDC44F; Sun, 30 Jun 2013 20:51:30 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 804AB1B79; Sun, 30 Jun 2013 20:51:30 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 2735D4AC1C; Mon, 1 Jul 2013 00:51:29 +0400 (MSK) Date: Mon, 1 Jul 2013 00:51:17 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <778367141.20130701005117@serebryakov.spb.ru> To: Rui Paulo Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: <64C55E19-C295-4A5A-9B91-5CD3D7B92822@freebsd.org> References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <157797947.20130701002516@serebryakov.spb.ru> <775B2027-C5FC-4433-9E7C-B608DA937314@FreeBSD.org> <1848916453.20130701004258@serebryakov.spb.ru> <64C55E19-C295-4A5A-9B91-5CD3D7B92822@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: lev@FreeBSD.org 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: Sun, 30 Jun 2013 20:51:30 -0000 Hello, Rui. You wrote 1 =D0=B8=D1=8E=D0=BB=D1=8F 2013 =D0=B3., 0:45:15: RP> You can buy them from WiFi alliance: RP> https://www.wi-fi.org/knowledge-center/published-specifications So, it more like high-level "howto" than low-level standard, as it looks like to be built on AP operations from standard itself... --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:52:57 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2A704472; Sun, 30 Jun 2013 20:52:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x231.google.com (mail-qc0-x231.google.com [IPv6:2607:f8b0:400d:c01::231]) by mx1.freebsd.org (Postfix) with ESMTP id BB3951B82; Sun, 30 Jun 2013 20:52:56 +0000 (UTC) Received: by mail-qc0-f177.google.com with SMTP id n1so2427052qcx.22 for ; Sun, 30 Jun 2013 13:52:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=XsklNOFGYpjSRrg+r+Ka6gI4MHXmN6sCL3NMD5yazj4=; b=oiZ37GfQbLMdyovoCEw+zYdsp8g0xWClw6FMByIJGr6esQQWmzqqozMUo25ll/+qNj 1Ve3qi3D3r/ishHaej7LBuhD+ujX6tSdCODwYSpWIqnTsj7weq7b+AHRQwO22Y5LZraA 328kdmuuq0YGKUYOqlBrikPRc6JInJ21kBUTFCIXZllqFVZQdeHA4T07CTE+CjmMbfAs ugBGrC+UHmP7CCKZ33l2TAwCajSKcCXFnq1rL2AtEQj53CRiE7nHSdY56XjKUbxHdi9Z w8yqsq7UfWJofoTCD6hgttAM/OcHzcAM5RqyPLqT89iKTde7WfAs94UYIhqr1xEz6N4r G0+Q== MIME-Version: 1.0 X-Received: by 10.49.116.9 with SMTP id js9mr29030663qeb.73.1372625576302; Sun, 30 Jun 2013 13:52:56 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.101.134 with HTTP; Sun, 30 Jun 2013 13:52:56 -0700 (PDT) In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <157797947.20130701002516@serebryakov.spb.ru> <775B2027-C5FC-4433-9E7C-B608DA937314@FreeBSD.org> <1848916453.20130701004258@serebryakov.spb.ru> Date: Sun, 30 Jun 2013 13:52:56 -0700 X-Google-Sender-Auth: JPv1G0tCKgPt8QcJ6gMNT74HneM Message-ID: Subject: Re: CFT: wpa_supplicant/hostapd import patch From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 20:52:57 -0000 blah, lemme ask some people who know people @ wifi alliance for some help. maybe we can get FreeBSD in as a member somehow without having to pay ridiculous levels of cash. We don't need certification, just access to specifications. -adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 20:56:20 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BBAFE57C; Sun, 30 Jun 2013 20:56:20 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 779521B9A; Sun, 30 Jun 2013 20:56:20 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id C523E4AC1C; Mon, 1 Jul 2013 00:56:18 +0400 (MSK) Date: Mon, 1 Jul 2013 00:56:06 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <318287511.20130701005606@serebryakov.spb.ru> To: Adrian Chadd Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <157797947.20130701002516@serebryakov.spb.ru> <775B2027-C5FC-4433-9E7C-B608DA937314@FreeBSD.org> <1848916453.20130701004258@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: lev@FreeBSD.org 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: Sun, 30 Jun 2013 20:56:20 -0000 Hello, Adrian. You wrote 1 =E8=FE=EB=FF 2013 =E3., 0:52:56: AC> blah, lemme ask some people who know people @ wifi alliance for some he= lp. AC> maybe we can get FreeBSD in as a member somehow without having to pay AC> ridiculous levels of cash. We don't need certification, just access to AC> specifications. BTW, if we want to be basis for SOHO router firmware for some vendors (as now most of such devices are linux-based), we better have certification! But it is topic for another thread. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 21:00:50 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8A9AF5B3; Sun, 30 Jun 2013 21:00:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x233.google.com (mail-qe0-x233.google.com [IPv6:2607:f8b0:400d:c02::233]) by mx1.freebsd.org (Postfix) with ESMTP id 269141BAF; Sun, 30 Jun 2013 21:00:50 +0000 (UTC) Received: by mail-qe0-f51.google.com with SMTP id a11so1375763qen.38 for ; Sun, 30 Jun 2013 14:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=9R1FqCFuRb+rmfC9hl+QQdQw4JiDEJWBXw6wbgLwluM=; b=u6AlM/528zo/T5Vkz/oxZe6YkEA4wglW/regrW3RuNlm4IzVvm/kTeteqNFTE+Q6f/ hYLeXP98fZo+ghzkW9915qN0e+sixUSIa2+bk3DIWjtK4UCrAkFWDRux0OotakNtVsri 0B4jp/KAOiX0lTR/3i8d1ROp5s0mAYjIQG2llFc3h44XgKTprJtbcAPN3ZJIIqe16Okx FH1GIWo0XIcwEovsAaxeQmv3GEzhfuYAbieUNC651QRfeGGpCSAIQFzr9L2St9093T9c 1sIEyBt3u/atgTiBGJBA7mLVur+rGTmb7EjQJnsB2LxkzOcu1TFrdLz07/TyVyPCb4/S fcvg== MIME-Version: 1.0 X-Received: by 10.224.190.137 with SMTP id di9mr28562093qab.95.1372626049641; Sun, 30 Jun 2013 14:00:49 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.101.134 with HTTP; Sun, 30 Jun 2013 14:00:49 -0700 (PDT) In-Reply-To: <318287511.20130701005606@serebryakov.spb.ru> References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <157797947.20130701002516@serebryakov.spb.ru> <775B2027-C5FC-4433-9E7C-B608DA937314@FreeBSD.org> <1848916453.20130701004258@serebryakov.spb.ru> <318287511.20130701005606@serebryakov.spb.ru> Date: Sun, 30 Jun 2013 14:00:49 -0700 X-Google-Sender-Auth: UVKuh7FM5fwgumVKt9UD8nj0al4 Message-ID: Subject: Re: CFT: wpa_supplicant/hostapd import patch From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 21:00:50 -0000 Certification isn't our problem. That's a manufacturer problem. _THEY_ have to certify the device anyway. Regardless of whether we have the stack certified. same deal with FCC certification. Just because our stack is certified, doesn't mean that the product will meet FCC certification requirements. So don't worry about the certification angle. We should aim to get this stuff as bullet proof as possible so the certification process is _easy_, but anyone making wifi-certified products have to get htem certfied anyway. -adrian On 30 June 2013 13:56, Lev Serebryakov wrote: > Hello, Adrian. > You wrote 1 =D0=B8=D1=8E=D0=BB=D1=8F 2013 =D0=B3., 0:52:56: > > AC> blah, lemme ask some people who know people @ wifi alliance for some = help. > > AC> maybe we can get FreeBSD in as a member somehow without having to pay > AC> ridiculous levels of cash. We don't need certification, just access t= o > AC> specifications. > BTW, if we want to be basis for SOHO router firmware for some vendors (= as > now most of such devices are linux-based), we better have certification! = But > it is topic for another thread. > > -- > // Black Lion AKA Lev Serebryakov > From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 30 21:14:31 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1BE4FAF2; Sun, 30 Jun 2013 21:14:31 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id CCB511C45; Sun, 30 Jun 2013 21:14:30 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 9120D4AC58; Mon, 1 Jul 2013 01:14:28 +0400 (MSK) Date: Mon, 1 Jul 2013 01:14:16 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1032749777.20130701011416@serebryakov.spb.ru> To: Adrian Chadd Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <1415556931.20130701000811@serebryakov.spb.ru> <638557210.20130701001136@serebryakov.spb.ru> <1342388755.20130701001505@serebryakov.spb.ru> <157797947.20130701002516@serebryakov.spb.ru> <775B2027-C5FC-4433-9E7C-B608DA937314@FreeBSD.org> <1848916453.20130701004258@serebryakov.spb.ru> <318287511.20130701005606@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 30 Jun 2013 21:14:31 -0000 Hello, Adrian. You wrote 1 =D0=B8=D1=8E=D0=BB=D1=8F 2013 =D0=B3., 1:00:49: AC> Certification isn't our problem. That's a manufacturer problem. AC> _THEY_ have to certify the device anyway. Regardless of whether we AC> have the stack certified. I don't know WiFi Alliance rules, but when I participated in project, which included custom MasterCard/Visa terminal, PCI/DSS certification was much more simple and more straightforward in case, when device was based on certified platform (Certified ARM CPU + certified crypto library specific to this ARM chip). A whole bunch of certification steps was skipped by showing that we use certified platform. So, it was competitive advantage of provider of this platform :) But, may be, it is not a case in case of WiFi certification, I don't know. And anyway, we are far from this now :) It is too early to worry about certification, you are right. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 1 03:19:32 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 562B3C9 for ; Mon, 1 Jul 2013 03:19:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x22b.google.com (mail-qc0-x22b.google.com [IPv6:2607:f8b0:400d:c01::22b]) by mx1.freebsd.org (Postfix) with ESMTP id 1F66619E3 for ; Mon, 1 Jul 2013 03:19:32 +0000 (UTC) Received: by mail-qc0-f171.google.com with SMTP id n1so2565387qcw.16 for ; Sun, 30 Jun 2013 20:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=AUsQ4ufJfUWenABc9VBljr3Ku82fYXpJT7JEAJ/Wsag=; b=gzWTGkEmV2U9+JdC2aDzsn1xo+NtqQVpMeAmOHQBzh48PgMH4S8wmVIE0xhBTBV2io 6pkld8SUH9KdMi9LoGwaAd4GS0uKxVUYPgNLuefBKnbJfhhIJ5x0hD7ZZjBijugz/xy4 9o2Cp2SWTvFJwyvvbuFRdHjqm4MPOJkyG9ro+aZyE4z17l6IrZMSYM6mAkcjcF8YcG5x i7H/mBxCQKZvvwht8zDJQcRGUnUU8k1GJ1pL1hAEWM5zvts2R+ng6l0g+7UHbac9WLLg POAag7Wi5Dem/mnC4MXFf7aw/WPbxez/7v7NFG+WoOwlAHKV4/bjuLC3nLOfvx+J98Bl OVLg== MIME-Version: 1.0 X-Received: by 10.229.136.7 with SMTP id p7mr7107649qct.48.1372648394309; Sun, 30 Jun 2013 20:13:14 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.101.134 with HTTP; Sun, 30 Jun 2013 20:13:14 -0700 (PDT) Date: Sun, 30 Jun 2013 20:13:14 -0700 X-Google-Sender-Auth: 1NtnhssfUrEx7up41MthJD0fWd0 Message-ID: Subject: [cft] net80211 PHY changes to include 11n tables, take #1 From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 01 Jul 2013 03:19:32 -0000 Hi all, As part of adding 11n awareness to various parts of net80211 (TDMA, 802.11s code, implementing AMSDU, 11n+fast-frames support, TX rate control) the PHY table code needs to be taught about said rates. Unfortunately the PHY code as it stands only knows about non-11n stuff. To add to the pain, the basic rate bit (0x80) is the same as the MCS rate bit (0x80). They're supposed to not be used in overlapping contexts but in some places (notable ni->tx_rate, for example!) they are. In this code, the rate code -> table index code makes the unfortunate mistake of also indexing things with the basic rate bit set, which messes up MCS rates. The "real" solution is to make the basic rate and mcs rate bits either much higher bits, or to turn the rate representation into a struct with the rate code / speed and PHY bits (eg, BASIC, MCS, etc). That's a big change that touches a _lot_ of code so I'm not yet willing to go and do all that work. It's likely I'm going to have to for 802.11ac support however. Sniffle. The "real real" solution is to not use this rate table index thing outside of a very specific set of instances. I can unfortunately see a million little race conditions here where the driver holds onto a rate table index whilst doing something, whilst some other part of the code decides to wholesale change said rate table underneath it. it's terrifying; I may end up having to do a further pass and kill this whole "use the rate table index" thing outside of contexts that I can protect things with locks. So, here's what I've done: * Make the current PHY and rate table lookup routines non-11n only. If the BASIC bit is set (0x80) then it panics. * Add the 11n rates into the PHY tables * Add some accessor methods to do the ratecode->rateindex lookup rather than manually going grubbing around in ieee80211com. * Modify callers of the ratecode->rateindex routines to strip the basic bit if it's set. They all assume it's legacy at this point, so it's fine. I've tested this on ath (where it should be a no-op) and iwn (where it does use the PHY table and rate control code.) So far, so good. I haven't sat down and fully debugged whether populating the 11n rate table with 11n rates is causing confusion in the iwn code - the iwn code does some magic crap somewhere to "pretend" the rates are non-11n when they indeed are, so the rate control code can do it's thing. i'd obviously like to kill _that_. The patch is here: http://people.freebsd.org/~adrian/ath/20130630-net80211-phy-11n-1.diff Please give it a whirl. It's only really going to show up if your device uses the net80211 rate control code. As it patches ral and iwn, I'm doubly interested in those devices. I'd like to commit this in a couple of days and start working on undoing the brain damage in iwn so the rate control modules can actually do 11n rate table lookups. Thanks! -adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 1 09:23:48 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B2B11E38; Mon, 1 Jul 2013 09:23:48 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 7732C1C34; Mon, 1 Jul 2013 09:23:48 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 8DE194AC58; Mon, 1 Jul 2013 13:23:44 +0400 (MSK) Date: Mon, 1 Jul 2013 13:23:32 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1615103062.20130701132332@serebryakov.spb.ru> To: Rui Paulo Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 01 Jul 2013 09:23:48 -0000 Hello, Rui. You wrote 30 =D0=B8=D1=8E=D0=BD=D1=8F 2013 =D0=B3., 20:27:51: RP> Actually, I just need to use svn diff --show-copies-as-adds. I've updat= ed the patch: RP> http://people.freebsd.org/~rpaulo/wpa-2.0.diff.gz Ok, hostapd works for WPA2-PSK clients in simple cases. I'll work different more complex scenarios (sleeping clients, etc) tonight. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 1 11:06:57 2013 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B0B95666 for ; Mon, 1 Jul 2013 11:06:57 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A072F10F4 for ; Mon, 1 Jul 2013 11:06:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r61B6vc6085983 for ; Mon, 1 Jul 2013 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r61B6vlW085981 for freebsd-wireless@FreeBSD.org; Mon, 1 Jul 2013 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 1 Jul 2013 11:06:57 GMT Message-Id: <201307011106.r61B6vlW085981@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-wireless@FreeBSD.org Subject: Current problem reports assigned to freebsd-wireless@FreeBSD.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 01 Jul 2013 11:06:57 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/179847 wireless [ath] [patch] Update regdomain in ath drivers includin o kern/179709 wireless [ath] Atheros 5212 does not work: stuck beacon; resett o kern/179547 wireless [ath] Add AR9485 custom board fixes (CUS198) o kern/179482 wireless [ath] [patch] Fix AR9462 external LNA configuration o kern/179269 wireless [ath] [AR9285] RX antenna diversity is not functioning o kern/179232 wireless [ath] panic in ath o kern/178986 wireless [ath] Change mac address of ath(4) is not reflected wh o kern/178492 wireless [ath] ath0 (AR9287) panic o kern/178491 wireless [ath] ath0 (AR9287) stuck beacon o kern/178477 wireless [ath] missed beacon / soft reset in STA mode results i o kern/178470 wireless [panic][ath] bss vap can and does change o kern/178411 wireless [ral] [panic] FreeBSD kernel crash in rt2860 o kern/178379 wireless [net80211] [ath] WPA rekey on the STA side fails when o kern/178378 wireless [net80211] crypto state isn't reset during a reassocia o kern/178263 wireless [ath] review the use of ic_freq / ic_ieee / ic_flags / o kern/177847 wireless [ath] With TPC enabled, TX power values aren't clamped o kern/177846 wireless [ath] [net80211] net80211 TX power limit isn't correct o conf/177688 wireless WiFi regodmains information is inconsistent between "e o kern/177530 wireless [ath] ath driver isn't 32 bit int clean o kern/177465 wireless [iwn] 20%-100% packet loss with iwn driver o kern/177451 wireless [ieee80211] page fault in ieee80211_tx_mgt_timeout o kern/176238 wireless [ath] [patch] Correct buffer size calculation and simp o kern/176201 wireless [net80211] [patch] 11n station includes unrelated ht p o kern/176104 wireless [iwn] iwn0: iwn_intr: fatal firmware error o kern/175870 wireless [iwn] /etc/rc.d/netif restart cause system crash o kern/175722 wireless [ath]lot of bad seriesx hwrate in kernel messages o kern/175446 wireless [ath] high volumes of PHY errors lead to BB/MAC hangs o kern/175227 wireless [ath] beacon timers aren't necessarily reprogrammed af o kern/175183 wireless [iwn] iwn(4) becomes unresponsive during initial confi o kern/175053 wireless [iwn] iwn firmware error on 9-stable with Ultimate-N 6 o kern/174891 wireless [ieee80211] struct ieee80211_node is freed during acti o kern/174722 wireless [wlan] can't use channel 12 and 13 (14) with my wifi i o kern/174661 wireless [wlan] lost alias on wlan interface o kern/174283 wireless [net80211] panics in ieee80211_ff_age() and ieee80211_ o kern/174276 wireless [ath] if_ath memory modified after free o kern/174273 wireless [net80211] taking down a net80211 node with active fas o kern/173917 wireless [iwn] wpa-supplicant issues on iwn o kern/173898 wireless [iwn] [patch] iwn(4) DOES support 6235 chip. o kern/173883 wireless [ath] ath0: unable to attach - pci issue? o kern/173711 wireless [ath] powerd kills ath on the Asus EeePC 1005HA o kern/173342 wireless PS-Poll isn't working o kern/173336 wireless [ath] Atheros card improper device poweroff handling o o kern/172955 wireless [ath] 11n does not work in adhoc mode o kern/172706 wireless [wpi] wpi0 fails to load firmware when using country o kern/172672 wireless [ubt] Bluetooth device recognised but not working o kern/172661 wireless hostapd(8) securing wireless adapter in HostAP mode is o kern/172338 wireless [ath] [net80211] CCMP IV transmit counters are not cor o kern/171598 wireless [ath] TP-Link TL-WN951N W-LAN PCI Adapter 300 MBit stu o kern/171235 wireless [ath] ath loses connection, system freezes on netif re o kern/170889 wireless [ath] ath driver uses some uninitilized memory o kern/170620 wireless [ath] LOR and deadlock when multiple vaps are used o kern/170573 wireless [iwi] Intel 2200BG iwi NIC hangs with need multicast c o kern/170513 wireless [ath] ath logs: ath_tx_aggr_comp_aggr: AR5416 bug: o kern/170433 wireless [ath] TX hang after a stuck beacon message with active o kern/170397 wireless [ath] [patch] Uninitialized variables in ah_eeprom_928 o kern/170302 wireless [ath] 802.11n frames are not being transmitted with mu o kern/170281 wireless [ath] 802.11n locks up on aggregation setup (ampdutx) o kern/170098 wireless [ath] [net80211] VAPs (Virtual access points) with Ath o kern/170066 wireless [ral] ral(4) rt61pci Linksys freezes the machine as so o kern/169432 wireless [ath] BAR TX hang when aggregation session is reset du p kern/169362 wireless [ath] AR5416: radar pulse PHY errors sometimes include o kern/169336 wireless [ath] ANI isn't triggering in a busy/noisy environment o kern/169199 wireless [ath] Cannot set up static ip addresses for wireless w o kern/169084 wireless [ath] suspend/resume doesn't cause a rescan; the assoc o kern/168530 wireless [ath] Broken WEP probably o kern/168393 wireless AR9285: suspend/resume sometimes fails o kern/168170 wireless [net80211] ieee80211_send_bar() doesn't complete corre o kern/167870 wireless [ath] adhoc wifi client does not join an existing IBSS o kern/167834 wireless [ath] kickpcu; 'handled 0 packets' o kern/167828 wireless [iwn] iwn(4) doesn't recover automatically after firmw o kern/167798 wireless ifconfig(8): problem with "ifconfig list scan" command o kern/167491 wireless [ath] TID != hardware queue TID in ath_tx_aggr_comp_ag o kern/167113 wireless [ath] AR5210: "stuck" TX seems to be occuring, without o kern/167080 wireless [ath] channel switch on another VAP break channel setu o kern/166684 wireless [ath] [net80211] mgmtrate/mcastrate isn't updated base p kern/166642 wireless [ieee80211] [patch] in 802.11n mode for FreeBSD AP, ha o kern/166641 wireless [ieee80211] [patch] mbuf/cluster leak in AP mode in 80 p kern/166357 wireless [ath] 802.11n TX stall when the first frame in the BAW o kern/166286 wireless [net80211] [ath] initial switch to HT40 isn't causing p kern/166190 wireless [ath] TX hangs and frames stuck in TX queue o kern/166086 wireless [Patch][ath] Reflect state of rfkill switch in a sysct o kern/165969 wireless [ath] Slower performance in adhoc mode vs Client/AP mo o kern/165966 wireless [ath] ath0: device timeout on SMP machines due to race o kern/165895 wireless [ath] overly busy cabq can tie up all tx buffers o kern/165870 wireless [bwn] bwn driver does not attach on HP Pavilion dv9420 o kern/165866 wireless [ath] TX hangs, requiring a "scan" to properly reset t o kern/165849 wireless [ath] [hang] network ath driver freeze o kern/165595 wireless [ipw] ipw(4): Can't load firmare for ipw2200bg o kern/165543 wireless [ath] ath0 endless scanning of channels without connec o kern/165517 wireless [net80211] bgscan isn't triggered when invalid beacons o kern/165475 wireless [ath] operational mode change doesn't poke the underly o kern/165382 wireless [kernel] taskqueue_unblock doesn't unblock currently q o kern/165306 wireless [ath] race conditions between scanning and beacon time o kern/165220 wireless [ath] "ath_rx_tasklet: sc_inreset_cnt > 0; skipping" m o kern/165214 wireless [ieee80211] Kernel panic in ieee80211_output.c:2505 o kern/165212 wireless [ath] No WiFi on Acer Aspire One 751h (Atheros AR5BHB6 o kern/165149 wireless [ath] [net80211] Ping with data length more than iv_fr o kern/165146 wireless [net80211] Net802.11 Fragment number is assigned 1 (sh o kern/165060 wireless [ath] vap->iv_bss race conditions causing crashes insi o kern/165021 wireless [ath] ath device timeout during scan/attach, if wlan_c o kern/164721 wireless [ath] ath device timeouts o kern/164499 wireless [wi] [patch] if_wi needs fix for big endian architectu o kern/164382 wireless [ath] crash when down/deleting a vap - inside ieee8021 o kern/164365 wireless [iwi] iwi0: UP/DOWN in o bin/164102 wireless hostapd not configured for 802.11n o kern/163759 wireless [ath] ath(4) "stops working" in hostap mode o kern/163724 wireless [mwl] [patch] NULL check before dereference o kern/163719 wireless [ath] ath interface do not receive multicast o kern/163689 wireless [ath] TX timeouts when sending probe/mgmt frames durin o kern/163574 wireless [net80211] overly-frequent HT occupancy changes o kern/163573 wireless [ath] hostap mode TX buffer hang o kern/163559 wireless [ath] kernel panic AH_DEBUG o kern/163318 wireless [ath] ath(4) stops working p kern/163312 wireless [panic] [ath driver] kernel panic: page fault with ath o kern/163237 wireless [ath] AR5416 as HostAP. Delays among clients when a cl o kern/163082 wireless [ath] ar9285 diversity fixes o kern/162648 wireless [ath] AR9227 ADC DC calibration failure o kern/162647 wireless [ath] 11n TX aggregation session / TX hang o kern/161293 wireless [iwn] hang at startup when starting network o kern/161035 wireless [ieee80211] Incorrect number describing 11ng MCS rate o kern/160391 wireless [ieee80211] [patch] Panic in mesh mode o kern/160296 wireless [zyd] [panic] 802.11 usb device reboots system on 'ifc o misc/160176 wireless [mips] [panic] Kernel panic on AR7161 platform with AR o kern/157449 wireless [ath] MAC address conflict causes system to freeze o kern/157243 wireless [ath] investigate beacon TX (AP) / RX (STA) when under o kern/156904 wireless [ath] AR9285 antenna diversity algorithm is buggy and o kern/156884 wireless [ath] ath instablity o kern/156327 wireless [bwn] bwn driver causes 20%-50% packet loss o kern/156322 wireless [wpi] no ahdemo support for if_wpi o kern/156321 wireless [ath] ahdemo doesn't work with if_ath o kern/155498 wireless [ral] ral(4) needs to be resynced with OpenBSD's to ga o kern/155100 wireless [ath] ath driver on busy channel: "stuck beacon" p kern/154598 wireless [ath] Atheros 5424/2424 can't connect to WPA network o kern/154567 wireless [ath] ath(4) lot of bad series(0) o kern/154327 wireless [ath] AR5416 in station mode hangs when transmitting f o kern/154284 wireless [ath] Modern ath wifi cards (such as AR9285) have miss o kern/154153 wireless [ath] AR5213 + MIPS + WPA group key packet corruption o kern/153594 wireless [wlan] netif/devd race o kern/153448 wireless [ath] ath networking device loses association after a o kern/152750 wireless [ath] ath0 lot of bad series hwrate o kern/151198 wireless [ath] ath/5416 fails bgscan with "ath0: ath_chan_set: o kern/149786 wireless [bwn] bwn on Dell Inspiron 1150: connections stall o kern/149516 wireless [ath] ath(4) hostap with fake MAC/BSSID results in sta o kern/149373 wireless [realtek/atheros]: None of my network card working o kern/148322 wireless [ath] Triggering atheros wifi beacon misses in hostap o kern/148317 wireless [ath] FreeBSD 7.x hostap memory leak in net80211 or At o kern/148078 wireless [ath] wireless networking stops functioning o kern/146426 wireless [mwl] 802.11n rates not possible on mwl o kern/146425 wireless [mwl] mwl dropping all packets during and after high u o kern/145826 wireless [panic] [ath] Unable to configure adhoc mode on ath0/w o kern/144987 wireless [wpi] [panic] injecting packets with wlaninject using o kern/144755 wireless [wlan] netif/devd race o bin/144109 wireless hostapd(8) uses the MAC of the wireless interface, but o conf/143079 wireless hostapd(8) startup missing multi wlan functionality p kern/140567 wireless [ath] [patch] ath is not worked on my notebook PC o kern/140245 wireless [ath] [panic] Kernel panic during network activity on o kern/137592 wireless [ath] panic - 7-STABLE (Aug 7, 2009 UTC) crashes on ne o kern/136943 wireless [wpi] [lor] wpi0_com_lock / wpi0 o kern/136836 wireless [ath] atheros card stops functioning after about 12 ho o kern/132722 wireless [ath] Wifi ath0 associates fine with AP, but DHCP or I o bin/131549 wireless ifconfig(8) can't clear 'monitor' mode on the wireless o kern/126475 wireless [ath] [panic] ath pcmcia card inevitably panics under o kern/125721 wireless [ath] Terrible throughput/high ping latency with Ubiqu o kern/125617 wireless [ath] [panic] ath(4) related panic o kern/125501 wireless [ath] atheros cardbus driver hangs o kern/125332 wireless [ath] [panic] crash under any non-tiny networking unde o kern/124767 wireless [iwi] Wireless connection using iwi0 driver (Intel 220 o kern/124753 wireless [ieee80211] net80211 discards power-save queue packets o kern/121061 wireless [ath] [panic] panic while ejecting ath(4)-adapter duri o docs/120456 wireless ath(4) needs to specify requirement on wlan_scan_sta o kern/119513 wireless [ath] [irq] inserting dlink dwl-g630 wireless card res o kern/116747 wireless [ndis] FreeBSD 7.0-CURRENT crash with Dell TrueMobile f kern/105348 wireless [ath] ath device stopps TX 173 problems total. From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 08:19:07 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9C47E559; Wed, 3 Jul 2013 08:19:07 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 604D0132F; Wed, 3 Jul 2013 08:19:07 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:4576:f46b:6d13:91c5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 060A14AC1C; Wed, 3 Jul 2013 12:18:59 +0400 (MSK) Date: Wed, 3 Jul 2013 12:18:44 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <192717829.20130703121844@serebryakov.spb.ru> To: Rui Paulo Subject: Re: CFT: wpa_supplicant/hostapd import patch In-Reply-To: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 08:19:07 -0000 Hello, Rui. You wrote 30 =D0=B8=D1=8E=D0=BD=D1=8F 2013 =D0=B3., 20:27:51: RP> Actually, I just need to use svn diff --show-copies-as-adds. I've updat= ed the patch: RP> http://people.freebsd.org/~rpaulo/wpa-2.0.diff.gz And I have some strange problems with 802.11n clients... Traffic stalls for 1-2 minutes every 10-15 minutes (client could not ping gateway, etc) without any disassociation, and it fixes "automagically" to repeat after next 10-15 minutes. I'm investigating it further. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 14:09:30 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E9F6AB55 for ; Wed, 3 Jul 2013 14:09:30 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from nm50-vm4.bullet.mail.bf1.yahoo.com (nm50-vm4.bullet.mail.bf1.yahoo.com [216.109.115.223]) by mx1.freebsd.org (Postfix) with ESMTP id 9FA561EC7 for ; Wed, 3 Jul 2013 14:09:30 +0000 (UTC) Received: from [98.139.212.147] by nm50.bullet.mail.bf1.yahoo.com with NNFMP; 03 Jul 2013 14:03:21 -0000 Received: from [68.142.230.65] by tm4.bullet.mail.bf1.yahoo.com with NNFMP; 03 Jul 2013 14:03:21 -0000 Received: from [127.0.0.1] by smtp222.mail.bf1.yahoo.com with NNFMP; 03 Jul 2013 14:03:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1372860200; bh=0FG4+Adtfsgcl+46WeI7rp9rGNi+i/wRaUga11hvI10=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=le6+GOfTlX+xCYyw1AD/+QcUhrrK212HHi4SAlg6XnVjMTlGHPxMLh5YZbkqm/mFeCdxv/Ed2yPc1LYxXSWb/6C+drSIN+BJ9kpfiXixdoavMg+QNN/ZCqYZ3G3DQV0Mc6faoPsc3vd1caGo3j1VHZWdnhwpMHeGw6IxM80ibBs= X-Yahoo-Newman-Id: 991546.71010.bm@smtp222.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: xpmCYz0VM1mkkS6adoE.g1SHlMjz_jcMZfjaWTxBR_GYCmS O8sef59wMtwF46szDsLqbBsuJWqpE60jqRimeLkVK8iV7RkOXl6jIaNU4yub Pxh1_4hE.Te8pL3h30.kk8E46kV.NFyqIqX5S50fNNhAnN3KtZ1G6bAZ7oGM _k4qChmdIg30UHJeWFkVkCQV9emmp0lGonPUIc9kK5YBL09Z1_aAuEXmnhMf wWvNIqfFkCKlvfft3gOGskrVpQC9XIbv7vgMa8A7nD8rPJFXgoq8A8V9AMs6 yFazYv9H5809dA1Q293HTUnveRimB6LzEcbwNEG_OhsguB3GaAlNOc3mxDhh .cFHdQ0.gjzXcplBEx3gAwyYXRi9TpVvrc.QZSpFw8b71ig0ZNRdcgX1pEhy X.4pNWCu9xnPzdFfbQ3RA_pW7fXB3.tvi0CqxrWr_PY9bqdpcIxFVJROsmB1 2lCyjWvH.Q7t_wMlm_AJxNw0RT8sYrz0L_OhIak9Y9y45ZayPc2U4Vjq7tbr MwHxfUXAA9UDJW8.Jz6nAbQU8Y7XNDM21mGoh2T24ouWZvU61qsvszm7FnYx ck1Q38aLfhQGrdd0pUoHA28893ehTYiwfOidCQ.3uiEzzPOJD1S3Im0nLpuK MdTIW6bqu2seCpn.0.cMyrIry37IsWQ.3EtYho3vgPoIbXYbrFRZLw1O056V Pm0Dknlb5x720 X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- X-Rocket-Received: from laptop.qtchat.org (Scoobi_doo@70.90.74.161 with ) by smtp222.mail.bf1.yahoo.com with SMTP; 03 Jul 2013 14:03:20 +0000 UTC Message-ID: <51D42F29.6010609@yahoo.com> Date: Wed, 03 Jul 2013 10:03:21 -0400 From: Anthony Jenkins User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130612 Thunderbird/17.0.6 MIME-Version: 1.0 To: Rui Paulo Subject: Re: CFT: wpa_supplicant/hostapd import patch References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <192717829.20130703121844@serebryakov.spb.ru> In-Reply-To: <192717829.20130703121844@serebryakov.spb.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Lev Serebryakov , "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 14:09:31 -0000 On 07/03/13 04:18, Lev Serebryakov wrote: > Hello, Rui. > You wrote 30 июня 2013 г., 20:27:51: > > RP> Actually, I just need to use svn diff --show-copies-as-adds. I've updated the patch: > RP> http://people.freebsd.org/~rpaulo/wpa-2.0.diff.gz > And I have some strange problems with 802.11n clients... > Traffic stalls for 1-2 minutes every 10-15 minutes (client could not ping > gateway, etc) without any disassociation, and it fixes "automagically" to > repeat after next 10-15 minutes. I'm investigating it further. I'm having different issues with (presumably) the patch, mostly on ACPI resume. I have to manually '/etc/rc.d/netif restart ath0' when I resume my laptop. Also I have the following wpa_supplicant error on the console: > Jul 2 21:42:22 laptop wpa_supplicant[57774]: ioctl[SIOCS80211, > op=103, val=0, arg_len=128]: Device not configured Snippet of /var/log/messages including suspend/resume: > Jul 2 21:42:15 laptop org.kde.powerdevil.backlighthelper: > QDBusConnection: system D-Bus connection created before > QCoreApplication. Application may misbehave. > Jul 2 21:42:15 laptop kernel: can't evaluate > \_SB_.PCI0.AGP_.VGA_.LCD_._DCS - AE_NOT_FOUND > Jul 2 21:42:15 laptop dbus[1955]: [system] Successfully activated > service 'org.kde.powerdevil.backlighthelper' > Jul 2 21:42:17 laptop acpi: suspend at 20130702 21:42:17 > Jul 2 21:42:20 laptop kernel: info: [drm] Resetting GPU > Jul 2 21:42:21 laptop kernel: wlan0: link state changed to DOWN > Jul 2 21:42:21 laptop wpa_supplicant[57774]: wlan0: > CTRL-EVENT-DISCONNECTED bssid=00:24:a8:bd:a7:20 reason=0 > Jul 3 08:46:25 laptop kernel: uhub3: at usbus0, port 1, addr 1 > (disconnected) > Jul 3 08:46:25 laptop kernel: uhub0: at usbus1, port 1, addr 1 > (disconnected) > Jul 3 08:46:25 laptop kernel: uhub2: at usbus2, port 1, addr 1 > (disconnected) > Jul 3 08:46:25 laptop kernel: ath0: unable to reset hardware; hal > status 3 > Jul 3 08:46:25 laptop kernel: uhub1: at usbus3, port 1, addr 1 > (disconnected) > Jul 3 08:46:25 laptop kernel: ugen3.2: at usbus3 > (disconnected) > Jul 3 08:46:25 laptop kernel: ugen3.3: at usbus3 (disconnected) > Jul 3 08:46:25 laptop kernel: umass0: at uhub1, port 2, addr 3 > (disconnected) > Jul 3 08:46:25 laptop kernel: (da0:umass-sim0:0:0:0): lost device - 0 > outstanding, 2 refs > Jul 3 08:46:25 laptop kernel: (da0:umass-sim0:0:0:0): removing device > entry > Jul 3 08:46:25 laptop kernel: can't evaluate > \_SB_.PCI0.AGP_.VGA_.LCD_._DCS - AE_NOT_FOUND > Jul 3 08:46:25 laptop kernel: uhub0: rev 2.00/1.00, addr 1> on usbus1 > Jul 3 08:46:25 laptop kernel: uhub1: rev 2.00/1.00, addr 1> on usbus3 > Jul 3 08:46:25 laptop kernel: uhub2: rev 1.00/1.00, addr 1> on usbus0 > Jul 3 08:46:25 laptop kernel: uhub3: rev 1.00/1.00, addr 1> on usbus2 > Jul 2 21:42:22 laptop wpa_supplicant[57774]: ioctl[SIOCS80211, > op=103, val=0, arg_len=128]: Device not configured > Jul 2 21:42:22 laptop wpa_supplicant[57774]: wlan0: Failed to > initiate AP scan > Jul 2 21:42:24 laptop wpa_supplicant[57774]: ioctl[SIOCS80211, > op=103, val=0, arg_len=128]: Device not configured > Jul 2 21:42:24 laptop wpa_supplicant[57774]: wlan0: Failed to > initiate AP scan > Jul 2 21:42:26 laptop wpa_supplicant[57774]: ioctl[SIOCS80211, > op=103, val=0, arg_len=128]: Device not configured > Jul 2 21:42:26 laptop wpa_supplicant[57774]: wlan0: Failed to > initiate AP scan > Jul 3 08:46:25 laptop wpa_supplicant[57774]: ioctl[SIOCS80211, > op=103, val=0, arg_len=128]: Device not configured > Jul 3 08:46:25 laptop wpa_supplicant[57774]: wlan0: Failed to > initiate AP scan > Jul 3 08:46:26 laptop kernel: uhub2: 5 ports with 5 removable, self > powered > Jul 3 08:46:26 laptop kernel: uhub3: 5 ports with 5 removable, self > powered > Jul 3 08:46:25 laptop acpi: resumed at 20130703 08:46:25 > Jul 3 08:46:26 laptop wpa_supplicant[57774]: ioctl[SIOCS80211, > op=103, val=0, arg_len=128]: Device not configured > Jul 3 08:46:26 laptop wpa_supplicant[57774]: wlan0: Failed to > initiate AP scan > Jul 3 08:46:26 laptop kernel: info: [drm] Loading RS780/RS880 Microcode > Jul 3 08:46:26 laptop kernel: info: [drm] Resetting GPU I've just uncommented the command '/usr/sbin/wpa_cli reassociate' in /etc/rc.resume, no change. After resume, 'ifconfig -a' shows: > [ajenkins@laptop ~]$ ifconfig -a > ... > ath0: flags=8802 metric 0 mtu 2290 > ether 20:7c:8f:4e:8a:90 > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > ... > wlan0: flags=8802 metric 0 mtu 1500 > ether 20:7c:8f:4e:8a:90 > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > ssid "" channel 1 (2412 MHz 11g ht/20) > regdomain 101 indoor ecm authmode OPEN privacy OFF txpower 20 bmiss 7 > scanvalid 60 protmode CTS -ampdutx ampdurx ampdulimit 8k > ampdudensity 8 shortgi wme burst pciconf -lv: > ath0@pci0:8:0:0: class=0x028000 card=0x23091a32 chip=0x002e168c > rev=0x01 hdr=0x00 > vendor = 'Atheros Communications Inc.' > device = 'AR9287 Wireless Network Adapter (PCI-Express)' > class = network uname -a: > FreeBSD laptop.qtchat.org 10.0-CURRENT FreeBSD 10.0-CURRENT #1 > r252464: Mon Jul 1 13:09:21 EDT 2013 > root@laptop.qtchat.org:/usr/obj/usr/src/sys/MYKERNEL amd64 Happy to help debug, just tell me what info you need or steps to perform. -- Anthony Jenkins From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 20:44:55 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D72973EC for ; Wed, 3 Jul 2013 20:44:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x22c.google.com (mail-qc0-x22c.google.com [IPv6:2607:f8b0:400d:c01::22c]) by mx1.freebsd.org (Postfix) with ESMTP id A03EA16F0 for ; Wed, 3 Jul 2013 20:44:55 +0000 (UTC) Received: by mail-qc0-f172.google.com with SMTP id j10so390157qcx.31 for ; Wed, 03 Jul 2013 13:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=JKtskSO9ifVHNf/eXuz/Bzm/L2ufDZdZcj7yy/eq0rk=; b=YtYFM9C4/Cifb4HWhL0p6N1rP36cIrqmtFu9D5ltqcjhrwqpC1XQh9UlOZ4KuxgIIQ 1tFd+/UzrCn5dUEMITOD8V+qeqIkJP/dCX20dDSHm75yAzHihuERdSic/39PrQEINkP0 2rCIn3r8My240UHw1TZ3D153ZStqiOnmf7d8uB+AdvugvTVzQfqSG+ST0fVHG+1yQEyW djpf8xlOMEt0Th2rToXoq7Ezu5qoBT0GK2/l4X5+10iCLa5Esg5qsb0368oukBg5zSSQ gDZlDd6jO/xdbgEc4vtF4CHX3UZUawLJT5A+W3oBa1hf8a1TtqhNWD9zAoE1KnyoSgOg ZG9w== MIME-Version: 1.0 X-Received: by 10.224.26.7 with SMTP id b7mr5927319qac.102.1372884295260; Wed, 03 Jul 2013 13:44:55 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Wed, 3 Jul 2013 13:44:55 -0700 (PDT) In-Reply-To: <20130703201735.GU58171@zxy.spb.ru> References: <20130703201735.GU58171@zxy.spb.ru> Date: Wed, 3 Jul 2013 13:44:55 -0700 X-Google-Sender-Auth: 6IEY-96-c6JHHPIuO2Pi9VJEhZY Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 20:44:55 -0000 Hi! I don't quite know what's going on there. I know the latest ipad works fine. But I don't have an ipad 1 to test with. Does the ipad 1 get an IP address? -adrian On 3 July 2013 13:17, Slawa Olhovchenkov wrote: > I am try to connect iPad (iPad 1) to FreeBSD AP (ath0: > mem 0xb0200000-0xb020ffff irq 18 at device 5.0 on pci6). > > Association is OK (WPA2-EAP (PEAP)), but I don't see any packets from > iPad (by tcpdump). > > FreeBSD is 10.0-CURRENT from Jun 8. > With this system this iPad workin year ago (I don't remember exactly > verion OS on that moment) > > iPhone 5 working with this system OK. > > This is iPad working nice with other FreeBSD 10.0-CURRENT from Aug 31 > 2012 (ath0: mem 0xe3000000-0xe300ffff irq 11 at device > 20.0 on pci0). > > I am don't know how to deep debuging this issuse. From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 22:03:18 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F0B4E2FB; Wed, 3 Jul 2013 22:03:18 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id B251F1B2F; Wed, 3 Jul 2013 22:03:18 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1UuV9r-000JVt-Ix; Thu, 04 Jul 2013 02:04:15 +0400 Date: Thu, 4 Jul 2013 02:04:15 +0400 From: Slawa Olhovchenkov To: Adrian Chadd Subject: Re: ath and ipad Message-ID: <20130703220415.GV58171@zxy.spb.ru> References: <20130703201735.GU58171@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 22:03:19 -0000 On Wed, Jul 03, 2013 at 01:44:55PM -0700, Adrian Chadd wrote: > Hi! > > I don't quite know what's going on there. I know the latest ipad works > fine. But I don't have an ipad 1 to test with. > > Does the ipad 1 get an IP address? No, I don't see DHCP DISCOVER and ipad don't get DHCP OFFER. How I can test ipad don't send any packets or packets from ipad droped in the ath hardware or in the ath driver? > -adrian > > > On 3 July 2013 13:17, Slawa Olhovchenkov wrote: > > I am try to connect iPad (iPad 1) to FreeBSD AP (ath0: > > mem 0xb0200000-0xb020ffff irq 18 at device 5.0 on pci6). > > > > Association is OK (WPA2-EAP (PEAP)), but I don't see any packets from > > iPad (by tcpdump). > > > > FreeBSD is 10.0-CURRENT from Jun 8. > > With this system this iPad workin year ago (I don't remember exactly > > verion OS on that moment) > > > > iPhone 5 working with this system OK. > > > > This is iPad working nice with other FreeBSD 10.0-CURRENT from Aug 31 > > 2012 (ath0: mem 0xe3000000-0xe300ffff irq 11 at device > > 20.0 on pci0). > > > > I am don't know how to deep debuging this issuse. From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 22:04:21 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 506F9447 for ; Wed, 3 Jul 2013 22:04:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x236.google.com (mail-qa0-x236.google.com [IPv6:2607:f8b0:400d:c00::236]) by mx1.freebsd.org (Postfix) with ESMTP id 185C91B38 for ; Wed, 3 Jul 2013 22:04:21 +0000 (UTC) Received: by mail-qa0-f54.google.com with SMTP id n20so456256qaj.6 for ; Wed, 03 Jul 2013 15:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=D2eS9dZjRw/pnhGu4m/OeIsri/fzaGD+pTNAmkM0ims=; b=Uh/nmIMXUdwIhrRmgTaef85qCwgvR4XpwH/0o0QkuS8py0/uRcqpEK3TLYjRpSBSn8 sY38t1s7dam/pkqRwdJTIpjw8+wK0iYE1suLzWH3Hy1oFnkYUAJmRnzSAHrjZa+XYmtj gpBiEn+Cgoz/azDMh4txRdGKAyYrWbZM4ZVP68dGVzh3l9ylkxJhrS92G0DrXP2lc7sI uxnT0rd9HIzgSkNPy5TA34pJgAgQNDvPSx3LaSukvXZg3dkwHBSEiFO4Frr/Aiy7/UOh /C1CsyJ7711b7+sh7DY9vOBztXOHMwytbCvtJeIHdmGCxmDpkpXMTNbu0dsDHCf/Buhi L78Q== MIME-Version: 1.0 X-Received: by 10.224.26.7 with SMTP id b7mr6182439qac.102.1372889060665; Wed, 03 Jul 2013 15:04:20 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Wed, 3 Jul 2013 15:04:20 -0700 (PDT) In-Reply-To: <20130703220415.GV58171@zxy.spb.ru> References: <20130703201735.GU58171@zxy.spb.ru> <20130703220415.GV58171@zxy.spb.ru> Date: Wed, 3 Jul 2013 15:04:20 -0700 X-Google-Sender-Auth: r06R6zQObqhDErGtjQOwCPtDhYw Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 22:04:21 -0000 On 3 July 2013 15:04, Slawa Olhovchenkov wrote: > How I can test ipad don't send any packets or packets from ipad droped > in the ath hardware or in the ath driver? You could try turning on wlan debugging: wlandebug +input +output +crypto See if it logs anything crypto drop related. -adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 22:23:26 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E53124AA; Wed, 3 Jul 2013 22:23:26 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id A27271BFE; Wed, 3 Jul 2013 22:23:26 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1UuVTL-000Jdi-Ir; Thu, 04 Jul 2013 02:24:23 +0400 Date: Thu, 4 Jul 2013 02:24:23 +0400 From: Slawa Olhovchenkov To: Adrian Chadd Subject: Re: ath and ipad Message-ID: <20130703222423.GW58171@zxy.spb.ru> References: <20130703201735.GU58171@zxy.spb.ru> <20130703220415.GV58171@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 22:23:27 -0000 On Wed, Jul 03, 2013 at 03:04:20PM -0700, Adrian Chadd wrote: > On 3 July 2013 15:04, Slawa Olhovchenkov wrote: > > > How I can test ipad don't send any packets or packets from ipad droped > > in the ath hardware or in the ath driver? > > You could try turning on wlan debugging: > > wlandebug +input +output +crypto > > See if it logs anything crypto drop related. I see only this: Jul 4 02:09:03 notebook kernel: [339639] ap0: ieee80211_crypto_newkey: cipher 3 flags 0x3 keyix 65535 Jul 4 02:09:03 notebook kernel: [339639] ap0: ieee80211_crypto_setkey: AES-CCM keyix 6 flags 0x103 mac d8:a2:5e:01:58:55 rsc 0 tsc 0 len 16 Jul 4 02:09:03 notebook kernel: [339639] ap0: [d8:a2:5e:01:58:55] recv probe req Jul 4 02:09:03 notebook last message repeated 3 times Jul 4 02:09:08 notebook kernel: [339643] ap0: [d8:a2:5e:01:58:55] recv probe req From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 22:26:00 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5CA02740 for ; Wed, 3 Jul 2013 22:26:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x22e.google.com (mail-qc0-x22e.google.com [IPv6:2607:f8b0:400d:c01::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 23D0D1C10 for ; Wed, 3 Jul 2013 22:26:00 +0000 (UTC) Received: by mail-qc0-f174.google.com with SMTP id m15so441519qcq.19 for ; Wed, 03 Jul 2013 15:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ml/UtXjVXn8QED/r3VmEEvA4zV1xthbkyu6QCCjHBaw=; b=fBdw4CEqFb8w4Fn6ZjRinF1PwPBBwlxtm0rQSxcKG6KBwlfSr1iw47uEq/XUvvkrv9 2bXyGNXw+Jb9ZNAQuHToxOeoLvNW+w2GUrwQnWTuipVyKrQBByO4AUK48EGdqY1r3/Zj Dfr5AE25POAbPGBdkokMRgnwhtjeQqW9S7Zp5txmRmohQE4julkwbzCL4u6T+RtvuD3H werukMimPXP8J6s56FlBePAFWUECRglnYimWVLMrcpF1wRPe1cAj8/DKmml2xToutAbU nHH5cBxdWDoN2ZZbY3gV10gIq6pj0bmXpEl2MBl+4KLh+LKat9QUpyryWNQvGfc8cqxw lpgg== MIME-Version: 1.0 X-Received: by 10.49.117.195 with SMTP id kg3mr3736876qeb.68.1372890358557; Wed, 03 Jul 2013 15:25:58 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Wed, 3 Jul 2013 15:25:58 -0700 (PDT) In-Reply-To: <20130703222423.GW58171@zxy.spb.ru> References: <20130703201735.GU58171@zxy.spb.ru> <20130703220415.GV58171@zxy.spb.ru> <20130703222423.GW58171@zxy.spb.ru> Date: Wed, 3 Jul 2013 15:25:58 -0700 X-Google-Sender-Auth: nEMUMcVgzGix1lUvTh19Av0ODnk Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 22:26:00 -0000 Ok, well. Try disconnecting everything, then run 'athstats 1' and see if any crypto errors occur. -adrian On 3 July 2013 15:24, Slawa Olhovchenkov wrote: > On Wed, Jul 03, 2013 at 03:04:20PM -0700, Adrian Chadd wrote: > >> On 3 July 2013 15:04, Slawa Olhovchenkov wrote: >> >> > How I can test ipad don't send any packets or packets from ipad droped >> > in the ath hardware or in the ath driver? >> >> You could try turning on wlan debugging: >> >> wlandebug +input +output +crypto >> >> See if it logs anything crypto drop related. > > I see only this: > > Jul 4 02:09:03 notebook kernel: [339639] ap0: ieee80211_crypto_newkey: cipher 3 flags 0x3 keyix 65535 > Jul 4 02:09:03 notebook kernel: [339639] ap0: ieee80211_crypto_setkey: AES-CCM keyix 6 flags 0x103 mac d8:a2:5e:01:58:55 rsc 0 tsc 0 len 16 > Jul 4 02:09:03 notebook kernel: [339639] ap0: [d8:a2:5e:01:58:55] recv probe req > Jul 4 02:09:03 notebook last message repeated 3 times > Jul 4 02:09:08 notebook kernel: [339643] ap0: [d8:a2:5e:01:58:55] recv probe req From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 22:37:47 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 41974B08; Wed, 3 Jul 2013 22:37:47 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id F1E451C69; Wed, 3 Jul 2013 22:37:46 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1UuVhD-000Jjn-TO; Thu, 04 Jul 2013 02:38:43 +0400 Date: Thu, 4 Jul 2013 02:38:43 +0400 From: Slawa Olhovchenkov To: Adrian Chadd Subject: Re: ath and ipad Message-ID: <20130703223843.GX58171@zxy.spb.ru> References: <20130703201735.GU58171@zxy.spb.ru> <20130703220415.GV58171@zxy.spb.ru> <20130703222423.GW58171@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 22:37:47 -0000 On Wed, Jul 03, 2013 at 03:25:58PM -0700, Adrian Chadd wrote: > Ok, well. Try disconnecting everything, then run 'athstats 1' and see > if any crypto errors occur. I don't see any crypto errors occur in 'athstats 1' (but I don't disconnecting everything). If I do 'athdebug +recv +recv_proc' I see in log Jul 4 02:33:04 notebook kernel: [341079] TODS d8:a2:5e:01:58:55->f4:ec:38:a3:10:dc(f4:ec:38:a3:10:dc) data 67M +65 Jul 4 02:33:04 notebook kernel: [341079] 4801 2c00 f4ec 38a3 10dc d8a2 5e01 5855 f4ec 38a3 10dc 201b 5cbd 1653 Jul 4 02:33:04 notebook kernel: [341080] ath0: ath_legacy_rx_tasklet: pending 1 Jul 4 02:33:04 notebook kernel: [341080] ath0: ath_rx_proc: called and don't see this in tcpdump. > On 3 July 2013 15:24, Slawa Olhovchenkov wrote: > > On Wed, Jul 03, 2013 at 03:04:20PM -0700, Adrian Chadd wrote: > > > >> On 3 July 2013 15:04, Slawa Olhovchenkov wrote: > >> > >> > How I can test ipad don't send any packets or packets from ipad droped > >> > in the ath hardware or in the ath driver? > >> > >> You could try turning on wlan debugging: > >> > >> wlandebug +input +output +crypto > >> > >> See if it logs anything crypto drop related. > > > > I see only this: > > > > Jul 4 02:09:03 notebook kernel: [339639] ap0: ieee80211_crypto_newkey: cipher 3 flags 0x3 keyix 65535 > > Jul 4 02:09:03 notebook kernel: [339639] ap0: ieee80211_crypto_setkey: AES-CCM keyix 6 flags 0x103 mac d8:a2:5e:01:58:55 rsc 0 tsc 0 len 16 > > Jul 4 02:09:03 notebook kernel: [339639] ap0: [d8:a2:5e:01:58:55] recv probe req > > Jul 4 02:09:03 notebook last message repeated 3 times > > Jul 4 02:09:08 notebook kernel: [339643] ap0: [d8:a2:5e:01:58:55] recv probe req From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 22:39:08 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6FBBEB37 for ; Wed, 3 Jul 2013 22:39:08 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x22f.google.com (mail-qe0-x22f.google.com [IPv6:2607:f8b0:400d:c02::22f]) by mx1.freebsd.org (Postfix) with ESMTP id 361DE1C7A for ; Wed, 3 Jul 2013 22:39:08 +0000 (UTC) Received: by mail-qe0-f47.google.com with SMTP id 1so432140qec.20 for ; Wed, 03 Jul 2013 15:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=tjOzUnxMzPFffSto43pB0LlzY6oyhwdYUsTDzzPz6js=; b=Mva74fmdFQU9gvFoET9xv0BrWiiQMKdjb1+0LioVQMrGGq0wxqvE3LKQt93AeUcqfy wjSa9CUeYTOwCN/whiHdlMIhIWHFkUO2rXtmDmMfBOnAKeDMMDPcmetP595xkO82Lwsl lfbKaxj/qStOGRZhFUwHMjnZPG5f+tqesiRSdj/BJ5d9sJG4Qq0iUp3qrAgIVxdn8PjQ LzMKorRn0nh/UbTVrd19hV4amB8LM0+LbQsPJqUkR/BEz5H7ClIoop+U0+7G9SGDti6R 8Zv8WnhS5G2ma7FUIniW1R+ultbNwXbD/g/8d6IZzNpe2jvX45xfl7Sm4p4jgq26BocG fdDA== MIME-Version: 1.0 X-Received: by 10.49.117.195 with SMTP id kg3mr3771374qeb.68.1372891147745; Wed, 03 Jul 2013 15:39:07 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Wed, 3 Jul 2013 15:39:07 -0700 (PDT) In-Reply-To: <20130703223843.GX58171@zxy.spb.ru> References: <20130703201735.GU58171@zxy.spb.ru> <20130703220415.GV58171@zxy.spb.ru> <20130703222423.GW58171@zxy.spb.ru> <20130703223843.GX58171@zxy.spb.ru> Date: Wed, 3 Jul 2013 15:39:07 -0700 X-Google-Sender-Auth: mFQvNjVkj3tZl_Gkk3YXzN4beP4 Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 22:39:08 -0000 On 3 July 2013 15:38, Slawa Olhovchenkov wrote: > I don't see any crypto errors occur in 'athstats 1' (but I don't > disconnecting everything). ok, good starting point. > If I do 'athdebug +recv +recv_proc' I see in log > > Jul 4 02:33:04 notebook kernel: [341079] TODS d8:a2:5e:01:58:55->f4:ec:38:a3:10:dc(f4:ec:38:a3:10:dc) data 67M +65 > Jul 4 02:33:04 notebook kernel: [341079] 4801 2c00 f4ec 38a3 10dc d8a2 5e01 5855 f4ec 38a3 10dc 201b 5cbd 1653 > Jul 4 02:33:04 notebook kernel: [341080] ath0: ath_legacy_rx_tasklet: pending 1 > Jul 4 02:33:04 notebook kernel: [341080] ath0: ath_rx_proc: called Interesting. And that's the MAC address of your ipad? -adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 22:44:59 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 85C73CCA; Wed, 3 Jul 2013 22:44:59 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id 415C71CA2; Wed, 3 Jul 2013 22:44:59 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1UuVoB-000JqM-78; Thu, 04 Jul 2013 02:45:55 +0400 Date: Thu, 4 Jul 2013 02:45:55 +0400 From: Slawa Olhovchenkov To: Adrian Chadd Subject: Re: ath and ipad Message-ID: <20130703224555.GY58171@zxy.spb.ru> References: <20130703201735.GU58171@zxy.spb.ru> <20130703220415.GV58171@zxy.spb.ru> <20130703222423.GW58171@zxy.spb.ru> <20130703223843.GX58171@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 22:44:59 -0000 On Wed, Jul 03, 2013 at 03:39:07PM -0700, Adrian Chadd wrote: > On 3 July 2013 15:38, Slawa Olhovchenkov wrote: > > > I don't see any crypto errors occur in 'athstats 1' (but I don't > > disconnecting everything). > > ok, good starting point. > > > If I do 'athdebug +recv +recv_proc' I see in log > > > > Jul 4 02:33:04 notebook kernel: [341079] TODS d8:a2:5e:01:58:55->f4:ec:38:a3:10:dc(f4:ec:38:a3:10:dc) data 67M +65 > > Jul 4 02:33:04 notebook kernel: [341079] 4801 2c00 f4ec 38a3 10dc d8a2 5e01 5855 f4ec 38a3 10dc 201b 5cbd 1653 > > Jul 4 02:33:04 notebook kernel: [341080] ath0: ath_legacy_rx_tasklet: pending 1 > > Jul 4 02:33:04 notebook kernel: [341080] ath0: ath_rx_proc: called > > Interesting. And that's the MAC address of your ipad? d8:a2:5e:01:58:55 (f4:ec:38:a3:10:dc is my ath) From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 22:46:56 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 86716E23 for ; Wed, 3 Jul 2013 22:46:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x22a.google.com (mail-qa0-x22a.google.com [IPv6:2607:f8b0:400d:c00::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 4BC791CB2 for ; Wed, 3 Jul 2013 22:46:56 +0000 (UTC) Received: by mail-qa0-f42.google.com with SMTP id hu16so3950279qab.1 for ; Wed, 03 Jul 2013 15:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=h2YiaKdqxEXOTIrczJchkSCxcbU0nC05zrmn7gxT9GQ=; b=dRAPQmcAjpofqu3q93nyiOwAB5dcPFHvU9Ig+SQDm5rmS5e8rDpW4RGu0EY006GagJ CThH+SutrtCNPgbVOeOWPDI78hF3wTzKIz5jQi63+GQPZE9s5nmQdf1n2FJs/h++PeNB CUZ+tORNUhH9ro/mD3E9SD4zOCnvav9FuHYy/fT1HHfiJbl0VAa8x8HYIjBOzRCzTqPs aNsdmT6Q6xtnQD2/ArpZwRprYbOfkSXTF24+q7Fri87uQLmE53jCxvpiOaW1I9HHWjIk NVuIm1ZA+ozUTFs2rgZdI9h/zI3zsxiG7egtZ422hCE2cOJwDzn2UL5Ie6mUEkhaiKtP jCKw== MIME-Version: 1.0 X-Received: by 10.229.164.203 with SMTP id f11mr857948qcy.107.1372891615854; Wed, 03 Jul 2013 15:46:55 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Wed, 3 Jul 2013 15:46:55 -0700 (PDT) In-Reply-To: <20130703224555.GY58171@zxy.spb.ru> References: <20130703201735.GU58171@zxy.spb.ru> <20130703220415.GV58171@zxy.spb.ru> <20130703222423.GW58171@zxy.spb.ru> <20130703223843.GX58171@zxy.spb.ru> <20130703224555.GY58171@zxy.spb.ru> Date: Wed, 3 Jul 2013 15:46:55 -0700 X-Google-Sender-Auth: MtkjsrvTCoxiipvflb8T83_PQ8s Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 22:46:56 -0000 On 3 July 2013 15:45, Slawa Olhovchenkov wrote: >> ok, good starting point. >> >> > If I do 'athdebug +recv +recv_proc' I see in log >> > >> > Jul 4 02:33:04 notebook kernel: [341079] TODS d8:a2:5e:01:58:55->f4:ec:38:a3:10:dc(f4:ec:38:a3:10:dc) data 67M +65 >> > Jul 4 02:33:04 notebook kernel: [341079] 4801 2c00 f4ec 38a3 10dc d8a2 5e01 5855 f4ec 38a3 10dc 201b 5cbd 1653 >> > Jul 4 02:33:04 notebook kernel: [341080] ath0: ath_legacy_rx_tasklet: pending 1 >> > Jul 4 02:33:04 notebook kernel: [341080] ath0: ath_rx_proc: called >> >> Interesting. And that's the MAC address of your ipad? > > d8:a2:5e:01:58:55 (f4:ec:38:a3:10:dc is my ath) Ok. So next is figuring out why it's dying. How about running 'athstats 1' whilst this is going on, see whether you're seeing crypto/crc/etc errors show up? Can you copy/paste the output of athstats whilst you're trying to have your ipad associate? -adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 22:58:28 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5BA35207; Wed, 3 Jul 2013 22:58:28 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id E480F1D0D; Wed, 3 Jul 2013 22:58:27 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1UuW1E-000JwL-Ld; Thu, 04 Jul 2013 02:59:24 +0400 Date: Thu, 4 Jul 2013 02:59:24 +0400 From: Slawa Olhovchenkov To: Adrian Chadd Subject: Re: ath and ipad Message-ID: <20130703225924.GZ58171@zxy.spb.ru> References: <20130703201735.GU58171@zxy.spb.ru> <20130703220415.GV58171@zxy.spb.ru> <20130703222423.GW58171@zxy.spb.ru> <20130703223843.GX58171@zxy.spb.ru> <20130703224555.GY58171@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 22:58:28 -0000 On Wed, Jul 03, 2013 at 03:46:55PM -0700, Adrian Chadd wrote: > On 3 July 2013 15:45, Slawa Olhovchenkov wrote: > > >> ok, good starting point. > >> > >> > If I do 'athdebug +recv +recv_proc' I see in log > >> > > >> > Jul 4 02:33:04 notebook kernel: [341079] TODS d8:a2:5e:01:58:55->f4:ec:38:a3:10:dc(f4:ec:38:a3:10:dc) data 67M +65 > >> > Jul 4 02:33:04 notebook kernel: [341079] 4801 2c00 f4ec 38a3 10dc d8a2 5e01 5855 f4ec 38a3 10dc 201b 5cbd 1653 > >> > Jul 4 02:33:04 notebook kernel: [341080] ath0: ath_legacy_rx_tasklet: pending 1 > >> > Jul 4 02:33:04 notebook kernel: [341080] ath0: ath_rx_proc: called > >> > >> Interesting. And that's the MAC address of your ipad? > > > > d8:a2:5e:01:58:55 (f4:ec:38:a3:10:dc is my ath) > > Ok. So next is figuring out why it's dying. How about running > 'athstats 1' whilst this is going on, see whether you're seeing > crypto/crc/etc errors show up? > > Can you copy/paste the output of athstats whilst you're trying to have > your ipad associate? ipad succesufull associate (i see this association by ifconfig list sta). i don't see any packets from ipad after associate. I run athstats, turn off wifi on ipad, turn it on and wait 169.254.x.x instead of DHCP leased address. (except ipad associated and working iphone and n9) input output altrate short long xretry crcerr crypt phyerr rssi rate 911909 396162 733 37635 32000 4302 11683 13 0 7 MCS2 20 0 0 0 0 0 0 0 0 8 MCS2 22 1 0 0 0 0 0 0 0 10 MCS2 22 1 0 0 0 0 0 0 0 9 MCS2 25 2 0 0 0 0 0 0 0 15 MCS2 23 8 0 0 0 0 0 0 0 17 1M 20 0 0 0 0 0 0 0 0 10 1M 20 0 0 0 0 0 0 0 0 9 1M 28 9 0 0 0 0 0 0 0 26 1M 29 0 0 0 0 0 0 0 0 22 1M 27 0 0 0 0 0 0 0 0 24 1M 29 0 0 0 0 0 0 0 0 25 1M 25 0 0 0 0 0 0 0 0 23 1M 21 0 0 0 0 0 0 0 0 11 1M 20 0 0 0 0 0 0 0 0 9 1M 20 0 0 0 0 0 0 0 0 8 1M 20 0 0 0 0 0 0 0 0 8 1M 18 0 0 0 0 0 0 0 0 8 1M 20 0 0 0 0 0 0 0 0 8 1M 20 0 0 0 0 0 0 0 0 8 1M 26 7 0 0 4 1 1 0 0 20 1M input output altrate short long xretry crcerr crypt phyerr rssi rate 912391 396198 733 37635 32004 4303 11684 13 0 14 1M 19 0 0 0 0 0 0 0 0 9 1M 19 0 0 0 0 0 0 0 0 8 1M 28 9 0 0 0 0 1 0 0 34 1M 30 1 0 0 0 0 0 0 0 27 MCS2 27 0 0 0 0 0 0 0 0 20 MCS2 30 0 0 0 0 0 0 0 0 25 MCS2 28 0 0 0 0 0 0 0 0 23 MCS2 17 0 0 0 0 0 2 0 0 11 MCS2 19 0 0 0 0 0 0 0 0 8 MCS2 21 0 0 0 0 0 0 0 0 10 MCS2 23 1 0 0 0 0 0 0 0 11 MCS2 23 1 0 0 0 0 0 0 0 15 MCS2 22 0 0 0 0 0 0 0 0 14 MCS2 20 0 0 0 0 0 0 0 0 9 MCS2 18 0 0 0 0 0 0 0 0 8 MCS2 20 0 0 0 0 0 0 0 0 8 MCS2 22 1 0 0 0 0 0 0 0 13 MCS0 20 0 0 0 0 0 0 0 0 9 MCS0 20 0 0 0 0 0 0 0 0 9 MCS0 24 1 0 0 0 0 1 0 0 22 MCS7 input output altrate short long xretry crcerr crypt phyerr rssi rate 912865 396212 733 37635 32004 4303 11688 13 0 20 MCS7 24 0 0 0 0 0 0 0 0 16 MCS7 24 0 0 0 0 0 1 0 0 19 MCS7 24 0 0 0 0 0 0 0 0 14 MCS7 From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 23:02:14 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 83CD6366 for ; Wed, 3 Jul 2013 23:02:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x22e.google.com (mail-qa0-x22e.google.com [IPv6:2607:f8b0:400d:c00::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 47C391D1C for ; Wed, 3 Jul 2013 23:02:14 +0000 (UTC) Received: by mail-qa0-f46.google.com with SMTP id ih17so3953878qab.12 for ; Wed, 03 Jul 2013 16:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=pGIBrnMQ/wp0Ii+ASjcY2fXqTQb/XsvlOTkJ9rTk0Fc=; b=E/uy1syZJJDfOArauJsKDf207CP6ptmD96wqDhfYAw1w1lfZUOMNDyhTY0s1c/BwhA PeOIqaw++uKC4V6iBPl7r7PjD50hKFqaOq0EmKI3XUvZrS/lVYJhD2nUgZMmwGBlVHnr 7zR6rjDuW6zkazbiBuGQx8vauSgVtVgZ8ydU+GJDh+fZq1kIrI3nNO7NknPw3LpZxvNk 7i78lbzNsw/0eqbB3aJBjGvHrxzl9f/cyiUirDCHoA+cEFtDbVvk0WxAD1IYey4p0ZD5 EbikC/KZvkhbdFlNSJK74xEkaulExZewLZNG3D6PR3RaU27k4uS5HSGqA4lrN1kSjVZw QlXg== MIME-Version: 1.0 X-Received: by 10.49.98.196 with SMTP id ek4mr4019065qeb.8.1372892533739; Wed, 03 Jul 2013 16:02:13 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Wed, 3 Jul 2013 16:02:13 -0700 (PDT) In-Reply-To: <20130703225924.GZ58171@zxy.spb.ru> References: <20130703201735.GU58171@zxy.spb.ru> <20130703220415.GV58171@zxy.spb.ru> <20130703222423.GW58171@zxy.spb.ru> <20130703223843.GX58171@zxy.spb.ru> <20130703224555.GY58171@zxy.spb.ru> <20130703225924.GZ58171@zxy.spb.ru> Date: Wed, 3 Jul 2013 16:02:13 -0700 X-Google-Sender-Auth: 0xIbYEhaOZNtN7-VeKTqqkH2Wa0 Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 23:02:14 -0000 Ok, can you set the network up (briefly!) as a totally open (no encryption) network, and verify that the ipad works? Also, what's your hostapd.conf file look like? Also, what's the output of 'athkey' look like? -adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 23:08:02 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 012D580F; Wed, 3 Jul 2013 23:08:02 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id B8B9A1D5F; Wed, 3 Jul 2013 23:08:00 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1UuWAT-000K63-G3; Thu, 04 Jul 2013 03:08:57 +0400 Date: Thu, 4 Jul 2013 03:08:57 +0400 From: Slawa Olhovchenkov To: Adrian Chadd Subject: Re: ath and ipad Message-ID: <20130703230857.GA58171@zxy.spb.ru> References: <20130703220415.GV58171@zxy.spb.ru> <20130703222423.GW58171@zxy.spb.ru> <20130703223843.GX58171@zxy.spb.ru> <20130703224555.GY58171@zxy.spb.ru> <20130703225924.GZ58171@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 23:08:02 -0000 On Wed, Jul 03, 2013 at 04:02:13PM -0700, Adrian Chadd wrote: > Ok, can you set the network up (briefly!) as a totally open (no > encryption) network, and verify that the ipad works? Not now, i can try this after some hours. > Also, what's your hostapd.conf file look like? interface=ap0 driver=bsd logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2 debug=4 dump_file=/tmp/hostapd.dump ctrl_interface=/var/run/hostapd ctrl_interface_group=wheel ssid=notebook country_code=RU ieee80211d=1 channel=6 beacon_int=100 dtim_period=2 max_num_sta=255 rts_threshold=2347 fragm_threshold=2346 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wme_enabled=0 wme_ac_bk_cwmin=4 wme_ac_bk_cwmax=10 wme_ac_bk_aifs=7 wme_ac_bk_txop_limit=0 wme_ac_bk_acm=0 wme_ac_be_aifs=3 wme_ac_be_cwmin=4 wme_ac_be_cwmax=10 wme_ac_be_txop_limit=0 wme_ac_be_acm=0 wme_ac_vi_aifs=2 wme_ac_vi_cwmin=3 wme_ac_vi_cwmax=4 wme_ac_vi_txop_limit=94 wme_ac_vi_acm=0 wme_ac_vo_aifs=2 wme_ac_vo_cwmin=2 wme_ac_vo_cwmax=3 wme_ac_vo_txop_limit=47 wme_ac_vo_acm=0 wmm_enabled=1 ieee80211n=1 ieee8021x=1 eapol_version=2 eapol_key_index_workaround=1 eap_server=1 eap_user_file=/etc/hostapd.eap_user ca_cert=/usr/local/etc/raddb/certs/ca.pem server_cert=/usr/local/etc/raddb/certs/server.pem private_key=/usr/local/etc/raddb/certs/server.pem private_key_passwd=whatever wpa=3 wpa_key_mgmt=WPA-EAP wpa_pairwise=TKIP CCMP > Also, what's the output of 'athkey' look like? usage: athkey [-i device] keyix cipher keyval [mac] From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 23:11:58 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 60732969 for ; Wed, 3 Jul 2013 23:11:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x230.google.com (mail-qc0-x230.google.com [IPv6:2607:f8b0:400d:c01::230]) by mx1.freebsd.org (Postfix) with ESMTP id 243061D95 for ; Wed, 3 Jul 2013 23:11:58 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id z10so453745qcx.21 for ; Wed, 03 Jul 2013 16:11:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=BTrqguBHpLZo5wOwak0w2ChggV+8YMAtifMWmKPSOWo=; b=B8OMdBbqv1tctMT+i/7a3jM0pDMR5F+PTs0i8DiF4XTyECEsScI7hoIc0etzbx6e17 j5ED5LUaE632MsMddcrSypTarpiAgIItDwR299jV8wX7UIrlFvlNW+Oq7rZ5sOBrGL/x 8/YgCGnUTj/TFzQpgGDKjzasPAL5FhIhLSO+7JJhwKxJO37a2aL2P1Q+T7AnP8nP2cqW xWrFdrOmfVhdOgwKp491cw/c0zyL937upmxxUWm9xay4f8tCCt9fKehi+0TkiNaxVRDt +lIkHb86bWib2Dp1DgejrLWPKV2GYR7yGTThJ3D7TlyOjgOTWsJtKfkqHBpDLq6B8kh4 umxg== MIME-Version: 1.0 X-Received: by 10.224.174.6 with SMTP id r6mr6347725qaz.87.1372893117639; Wed, 03 Jul 2013 16:11:57 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Wed, 3 Jul 2013 16:11:57 -0700 (PDT) In-Reply-To: <20130703230857.GA58171@zxy.spb.ru> References: <20130703220415.GV58171@zxy.spb.ru> <20130703222423.GW58171@zxy.spb.ru> <20130703223843.GX58171@zxy.spb.ru> <20130703224555.GY58171@zxy.spb.ru> <20130703225924.GZ58171@zxy.spb.ru> <20130703230857.GA58171@zxy.spb.ru> Date: Wed, 3 Jul 2013 16:11:57 -0700 X-Google-Sender-Auth: -U30g92EODiA37LJ5MqDmZMe3F8 Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 23:11:58 -0000 Oh, try 'athregs -k' or just athregs --help, and use the 'dump keycache' option. It may be something odd with your hostap file. I've never used one that complicated, nor have I implemented anything using key signing. Let's dump the keycache entries first to ensure that you're speaking CCMP to the ipad, then let's try cutting that back to a straight non-encrypted setup first and progressively adding more and more. Oh - kill all the wme / wmm lines first. You kinda need WME for 11n. net80211 defaults to a useful set of WME/WMM parameters. Thus you don't need any of those in hostapd. -adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 23:20:40 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A8F2AE9B; Wed, 3 Jul 2013 23:20:40 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id 633F41DFE; Wed, 3 Jul 2013 23:20:40 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1UuWMj-000KBP-3T; Thu, 04 Jul 2013 03:21:37 +0400 Date: Thu, 4 Jul 2013 03:21:37 +0400 From: Slawa Olhovchenkov To: Adrian Chadd Subject: Re: ath and ipad Message-ID: <20130703232137.GB58171@zxy.spb.ru> References: <20130703222423.GW58171@zxy.spb.ru> <20130703223843.GX58171@zxy.spb.ru> <20130703224555.GY58171@zxy.spb.ru> <20130703225924.GZ58171@zxy.spb.ru> <20130703230857.GA58171@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 23:20:40 -0000 On Wed, Jul 03, 2013 at 04:11:57PM -0700, Adrian Chadd wrote: > Oh, try 'athregs -k' root@notebook:/usr/src/tools/tools/ath/athregs # athregs -k KEY[004] MAC 40:b3:95:12:dc:bf AES-CCM 8c58-0e6e-5c16-da55-d928-4611-5c74-4f65 KEY[005] MAC 04:a8:2a:1f:a9:f1 AES-CCM b2f4-d8b2-e178-db40-5877-2c8f-3039-bae5 KEY[006] MAC d8:a2:5e:01:58:55 AES-CCM 44af-c87b-b58d-b379-9734-f01d-c212-9cba > or just athregs --help, and use the 'dump keycache' option. > > It may be something odd with your hostap file. I've never used one > that complicated, nor have I implemented anything using key signing. Very closed hostap file working on the other system with this ipad. > Let's dump the keycache entries first to ensure that you're speaking > CCMP to the ipad, then let's try cutting that back to a straight > non-encrypted setup first and progressively adding more and more. > > Oh - kill all the wme / wmm lines first. You kinda need WME for 11n. > net80211 defaults to a useful set of WME/WMM parameters. Thus you > don't need any of those in hostapd. don't changed anyfing From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 3 23:59:53 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 547B9E26 for ; Wed, 3 Jul 2013 23:59:53 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x234.google.com (mail-qa0-x234.google.com [IPv6:2607:f8b0:400d:c00::234]) by mx1.freebsd.org (Postfix) with ESMTP id 18B311F8B for ; Wed, 3 Jul 2013 23:59:53 +0000 (UTC) Received: by mail-qa0-f52.google.com with SMTP id bv4so504293qab.11 for ; Wed, 03 Jul 2013 16:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=4jVGJ1YmRGlEz7shGXZsAUu50/Wtp6pLnSOGZ6Jyfq0=; b=dXp/EsBu0tckx+gkPgQtpRvlS7u+BEVnIDabHuZoheHc0XlvlupHxIkxK00jl+4/C0 R75FX8aqPUsK3SIl+jXGf+trOGotBPfQaWIs/eovc4VQb7cTgHUol/f8FPNGu+daqrBg VcYy37VOa8Ho0DjkIYq7GK6wqt3ylKlFG4Nbhi28zvYLSp+jwAggtlubI3Ghpk6/SbM2 X/vcNH0Muqk3lRPFDUFFK2CLAoeANt0yRVJ/pg1rz9UCk7oYvorwzCoDW/hQOUlOlASX v+XTxOFjQiyKA2Kzm+42bcm7UQCp1lPbpKX6phzNWZpp6cO2yggsqcI7yYpfd5MVK6Ic +I+Q== MIME-Version: 1.0 X-Received: by 10.224.26.7 with SMTP id b7mr6447779qac.102.1372895992672; Wed, 03 Jul 2013 16:59:52 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Wed, 3 Jul 2013 16:59:52 -0700 (PDT) In-Reply-To: <20130703232137.GB58171@zxy.spb.ru> References: <20130703222423.GW58171@zxy.spb.ru> <20130703223843.GX58171@zxy.spb.ru> <20130703224555.GY58171@zxy.spb.ru> <20130703225924.GZ58171@zxy.spb.ru> <20130703230857.GA58171@zxy.spb.ru> <20130703232137.GB58171@zxy.spb.ru> Date: Wed, 3 Jul 2013 16:59:52 -0700 X-Google-Sender-Auth: yfbu_v1TY7AkmDt4cpNg4U6yTVc Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 03 Jul 2013 23:59:53 -0000 Right, but the other system is not running 11n, neither is it running on the newer chip. I think it's worty trying to simplify things down as much as you can. -adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 4 01:07:54 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D07EEEB2 for ; Thu, 4 Jul 2013 01:07:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x231.google.com (mail-qc0-x231.google.com [IPv6:2607:f8b0:400d:c01::231]) by mx1.freebsd.org (Postfix) with ESMTP id 93D2E11A9 for ; Thu, 4 Jul 2013 01:07:54 +0000 (UTC) Received: by mail-qc0-f177.google.com with SMTP id n1so494173qcx.36 for ; Wed, 03 Jul 2013 18:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=a+82jkeVa/9RtdTAScKqZ8dmZ0E12ALpId2MCzAseF8=; b=ZEz6VPEyf8j2DXvZAj2bCB5lK1gEPx5gOks7DX1Rt5yJ0GcFzZ026X+gQjNtI7b1cI SWS5vNrqKOj8MaDcJB8r8sYibhupuCRI0wd3Z0fm9pQqRZD5iAGzkg0kAOB8oi6R87KF F2dz/PXu5EOU8Sab1SXFsQ9JXpwxrVPIl6zH77IAm/fHBKlIeYEz5rZod2KtVKyxAaX9 maHcBcPBxYGb4TB+C+xeKGNi8zPmYx2zW4xVkW6w8O3rH8jvnmPxC1wLWesEZl07ghIV 2Va9qPzYc03WXxdIYTvh2u4URDQ4d2DAFxsI2xuaLYa4ZcE5GRg820g4KdDjkARkiaHu gTRA== MIME-Version: 1.0 X-Received: by 10.224.127.73 with SMTP id f9mr6736408qas.4.1372900073366; Wed, 03 Jul 2013 18:07:53 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Wed, 3 Jul 2013 18:07:53 -0700 (PDT) In-Reply-To: References: <20130703222423.GW58171@zxy.spb.ru> <20130703223843.GX58171@zxy.spb.ru> <20130703224555.GY58171@zxy.spb.ru> <20130703225924.GZ58171@zxy.spb.ru> <20130703230857.GA58171@zxy.spb.ru> <20130703232137.GB58171@zxy.spb.ru> Date: Wed, 3 Jul 2013 18:07:53 -0700 X-Google-Sender-Auth: 4LT4-xc8MBtV1T5k7bLNBkh2VN8 Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Jul 2013 01:07:54 -0000 .. grr. So I've been meaning to add in some framework to the net80211/ath code to provide per-node statistics, rather than just per-vap and per-ath statistics. But I've not yet done it. Boy would that make this problem easy to solve. :( -adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 4 01:39:07 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E6C495B7 for ; Thu, 4 Jul 2013 01:39:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x22e.google.com (mail-qc0-x22e.google.com [IPv6:2607:f8b0:400d:c01::22e]) by mx1.freebsd.org (Postfix) with ESMTP id B09D71293 for ; Thu, 4 Jul 2013 01:39:07 +0000 (UTC) Received: by mail-qc0-f174.google.com with SMTP id m15so506290qcq.33 for ; Wed, 03 Jul 2013 18:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=gaxH/hB5mYmxeSU5O6CX124EyCgKMjLG7BgI4eBRnwQ=; b=rLpOgb9dwFkD+EzKUxZE0RKczNvnO4vNx2WheMpkwva/gFk/IrjBQpP6g0WyhnKiwV 6QRUdbjeQKYJOIqgjC+zcrNP7C5sTB2KIOi6o85wf8swxHCK0hyJ0rSfTDzPUyHOl5hY fggBTACpTXSy7eug2wQoe9T8f70n3Jy/N7LUUHLpv0o1Ig306cEOzmbcUmd97GlE5UlU LRJNUPV7dMZYAwFoAEF3jO4Xm3lkRYA9piA/8wcsxTMhTYyppc21YYReJDEQ007u9KUB gmjl2ZKaW63VP4JwQGA/HaXNVKETyn4bDfOsv2+XX7W9WHObFzK7mtnniA1Kb2Tbao/E v9ig== MIME-Version: 1.0 X-Received: by 10.224.13.19 with SMTP id z19mr6848213qaz.12.1372901947285; Wed, 03 Jul 2013 18:39:07 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Wed, 3 Jul 2013 18:39:07 -0700 (PDT) Date: Wed, 3 Jul 2013 18:39:07 -0700 X-Google-Sender-Auth: RVOWG1RHqSj8l5ZWB7Cyni7NxYQ Message-ID: Subject: [rfc] net80211 PHY updates, amrr rate control changes, iwn changes for native 11n From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Jul 2013 01:39:08 -0000 Hi! I have been hacking at adding 11n awareness to the PHY and rate control code in net80211 in preparation for "real" 11n awareness in the rate control code. The patch is here: http://people.freebsd.org/~adrian/ath/20130630-net80211-phy-11n-1.diff The problems: * The rate representation is a single uint8_t which represents the throughput (pre-11n) or the MCS code (11n) * The BASIC rate flag is 0x80, and the MCS rate flag is 0x80 - making a unified representation of "stuff" rather difficult; * There's no current way for it to return the rest of the 11n configuration (short-gi, 20/40mhz, stbc, ldpc, etc), which means the current "result" isn't enough to fully represent an 11n transmit; * .. same with pre-11n - there's no current way for the rate control code to say "transmit short preamble" for legacy (11b) versus 11g setups. What it does: PHY: * adds the 11n PHY tables to ieee80211_phy.c; * adds 11n packet duration calculation as a new function call; * adds some new methods in ieee80211_phy.h to access the rate code information based on the rate index; * adds checks to ensure that these legacy methods don't get called with the MCS/BASIC bit set (0x80); ratectl: * Modify amrr to use the HT table if the device is HT aware Drivers (non-iwn): * Modify the drivers that directly use the node rate table to use the new phy functions that do it for you, which do sanity checks; * The drivers now only look up the legacy rates -without- the basic rate flag, so when they're taught about 11n it is clear what that 0x80 bit means; Drivers (iwn): * remove that "pretend I'm 11n, really" crap from iwn_newassoc(), as now amrr will return 11n rates; * move the rate/ridx -> iwn plcp table into an inline function that takes the node and rate, and calculates the plcp to use * teach it to now use the HT rate from amrr correctly I've verified this on iwn(4) in STA mode and it's behaving correctly. AMRR makes some pretty bad 11n decisions but I'm not making it worse. I'd appreciate any testing that people can give. I'm going to commit this soon. Thanks! -adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 4 05:16:14 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0BF9D3F1; Thu, 4 Jul 2013 05:16:14 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from felyko.com (felyko.com [IPv6:2607:f2f8:a528::3:1337:ca7]) by mx1.freebsd.org (Postfix) with ESMTP id D96CA1E6F; Thu, 4 Jul 2013 05:16:13 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:dc83:f1ea:d21f:9c51] (unknown [IPv6:2601:9:4d00:119:dc83:f1ea:d21f:9c51]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id 3AF593982B; Wed, 3 Jul 2013 22:16:13 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: CFT: wpa_supplicant/hostapd import patch From: Rui Paulo In-Reply-To: <51D42F29.6010609@yahoo.com> Date: Wed, 3 Jul 2013 22:16:12 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <192717829.20130703121844@serebryakov.spb.ru> <51D42F29.6010609@yahoo.com> To: Anthony Jenkins X-Mailer: Apple Mail (2.1508) Cc: Lev Serebryakov , "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Jul 2013 05:16:14 -0000 On 3 Jul 2013, at 07:03, Anthony Jenkins wrote: > On 07/03/13 04:18, Lev Serebryakov wrote: >> Hello, Rui. >> You wrote 30 =D0=B8=D1=8E=D0=BD=D1=8F 2013 =D0=B3., 20:27:51: >>=20 >> RP> Actually, I just need to use svn diff --show-copies-as-adds. I've = updated the patch: >> RP> http://people.freebsd.org/~rpaulo/wpa-2.0.diff.gz >> And I have some strange problems with 802.11n clients... >> Traffic stalls for 1-2 minutes every 10-15 minutes (client could not = ping >> gateway, etc) without any disassociation, and it fixes = "automagically" to >> repeat after next 10-15 minutes. I'm investigating it further. > I'm having different issues with (presumably) the patch, mostly on = ACPI resume. I have to manually '/etc/rc.d/netif restart ath0' when I = resume my laptop. Also I have the following wpa_supplicant error on the = console: >> Jul 2 21:42:22 laptop wpa_supplicant[57774]: ioctl[SIOCS80211, = op=3D103, val=3D0, arg_len=3D128]: Device not configured > Snippet of /var/log/messages including suspend/resume: >> Jul 2 21:42:15 laptop org.kde.powerdevil.backlighthelper: = QDBusConnection: system D-Bus connection created before = QCoreApplication. Application may misbehave. >> Jul 2 21:42:15 laptop kernel: can't evaluate = \_SB_.PCI0.AGP_.VGA_.LCD_._DCS - AE_NOT_FOUND >> Jul 2 21:42:15 laptop dbus[1955]: [system] Successfully activated = service 'org.kde.powerdevil.backlighthelper' >> Jul 2 21:42:17 laptop acpi: suspend at 20130702 21:42:17 >> Jul 2 21:42:20 laptop kernel: info: [drm] Resetting GPU >> Jul 2 21:42:21 laptop kernel: wlan0: link state changed to DOWN >> Jul 2 21:42:21 laptop wpa_supplicant[57774]: wlan0: = CTRL-EVENT-DISCONNECTED bssid=3D00:24:a8:bd:a7:20 reason=3D0 >> Jul 3 08:46:25 laptop kernel: uhub3: at usbus0, port 1, addr 1 = (disconnected) >> Jul 3 08:46:25 laptop kernel: uhub0: at usbus1, port 1, addr 1 = (disconnected) >> Jul 3 08:46:25 laptop kernel: uhub2: at usbus2, port 1, addr 1 = (disconnected) >> Jul 3 08:46:25 laptop kernel: ath0: unable to reset hardware; hal = status 3 >> Jul 3 08:46:25 laptop kernel: uhub1: at usbus3, port 1, addr 1 = (disconnected) >> Jul 3 08:46:25 laptop kernel: ugen3.2: at usbus3 = (disconnected) >> Jul 3 08:46:25 laptop kernel: ugen3.3: at usbus3 = (disconnected) >> Jul 3 08:46:25 laptop kernel: umass0: at uhub1, port 2, addr 3 = (disconnected) >> Jul 3 08:46:25 laptop kernel: (da0:umass-sim0:0:0:0): lost device - = 0 outstanding, 2 refs >> Jul 3 08:46:25 laptop kernel: (da0:umass-sim0:0:0:0): removing = device entry >> Jul 3 08:46:25 laptop kernel: can't evaluate = \_SB_.PCI0.AGP_.VGA_.LCD_._DCS - AE_NOT_FOUND >> Jul 3 08:46:25 laptop kernel: uhub0: on usbus1 >> Jul 3 08:46:25 laptop kernel: uhub1: on usbus3 >> Jul 3 08:46:25 laptop kernel: uhub2: on usbus0 >> Jul 3 08:46:25 laptop kernel: uhub3: on usbus2 >> Jul 2 21:42:22 laptop wpa_supplicant[57774]: ioctl[SIOCS80211, = op=3D103, val=3D0, arg_len=3D128]: Device not configured >> Jul 2 21:42:22 laptop wpa_supplicant[57774]: wlan0: Failed to = initiate AP scan >> Jul 2 21:42:24 laptop wpa_supplicant[57774]: ioctl[SIOCS80211, = op=3D103, val=3D0, arg_len=3D128]: Device not configured >> Jul 2 21:42:24 laptop wpa_supplicant[57774]: wlan0: Failed to = initiate AP scan >> Jul 2 21:42:26 laptop wpa_supplicant[57774]: ioctl[SIOCS80211, = op=3D103, val=3D0, arg_len=3D128]: Device not configured >> Jul 2 21:42:26 laptop wpa_supplicant[57774]: wlan0: Failed to = initiate AP scan >> Jul 3 08:46:25 laptop wpa_supplicant[57774]: ioctl[SIOCS80211, = op=3D103, val=3D0, arg_len=3D128]: Device not configured >> Jul 3 08:46:25 laptop wpa_supplicant[57774]: wlan0: Failed to = initiate AP scan >> Jul 3 08:46:26 laptop kernel: uhub2: 5 ports with 5 removable, self = powered >> Jul 3 08:46:26 laptop kernel: uhub3: 5 ports with 5 removable, self = powered >> Jul 3 08:46:25 laptop acpi: resumed at 20130703 08:46:25 >> Jul 3 08:46:26 laptop wpa_supplicant[57774]: ioctl[SIOCS80211, = op=3D103, val=3D0, arg_len=3D128]: Device not configured >> Jul 3 08:46:26 laptop wpa_supplicant[57774]: wlan0: Failed to = initiate AP scan >> Jul 3 08:46:26 laptop kernel: info: [drm] Loading RS780/RS880 = Microcode >> Jul 3 08:46:26 laptop kernel: info: [drm] Resetting GPU > I've just uncommented the command '/usr/sbin/wpa_cli reassociate' in = /etc/rc.resume, no change. After resume, 'ifconfig -a' shows: >> [ajenkins@laptop ~]$ ifconfig -a >> ... >> ath0: flags=3D8802 metric 0 mtu 2290 >> ether 20:7c:8f:4e:8a:90 >> nd6 options=3D29 >> media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) >> status: no carrier >> ... >> wlan0: flags=3D8802 metric 0 mtu 1500 >> ether 20:7c:8f:4e:8a:90 >> nd6 options=3D29 >> media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) >> status: no carrier >> ssid "" channel 1 (2412 MHz 11g ht/20) >> regdomain 101 indoor ecm authmode OPEN privacy OFF txpower 20 = bmiss 7 >> scanvalid 60 protmode CTS -ampdutx ampdurx ampdulimit 8k >> ampdudensity 8 shortgi wme burst > pciconf -lv: >> ath0@pci0:8:0:0: class=3D0x028000 card=3D0x23091a32 = chip=3D0x002e168c rev=3D0x01 hdr=3D0x00 >> vendor =3D 'Atheros Communications Inc.' >> device =3D 'AR9287 Wireless Network Adapter (PCI-Express)' >> class =3D network > uname -a: >> FreeBSD laptop.qtchat.org 10.0-CURRENT FreeBSD 10.0-CURRENT #1 = r252464: Mon Jul 1 13:09:21 EDT 2013 = root@laptop.qtchat.org:/usr/obj/usr/src/sys/MYKERNEL amd64 > Happy to help debug, just tell me what info you need or steps to = perform. Please run "wpa_supplicant -c /etc/wpa_supplicant -ddd -i wlan0 2>&1 | = tee log" and make sure devd isn't starting it for you (i.e., = /etc/rc.conf should not have any ifconfig_wlan0 line). Then please send me the "log".=20 FWIW, I tested suspend and resume and I didn't have any problems. In = version 0.7.3, it always required a "reassociate" but now it shouldn't = be the case. -- Rui Paulo From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 4 07:28:16 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A4C8DFD9; Thu, 4 Jul 2013 07:28:16 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from felyko.com (felyko.com [IPv6:2607:f2f8:a528::3:1337:ca7]) by mx1.freebsd.org (Postfix) with ESMTP id 90D8812C8; Thu, 4 Jul 2013 07:28:16 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:dc83:f1ea:d21f:9c51] (unknown [IPv6:2601:9:4d00:119:dc83:f1ea:d21f:9c51]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id B83EF3982B; Thu, 4 Jul 2013 00:28:15 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: CFT: wpa_supplicant/hostapd import patch From: Rui Paulo In-Reply-To: Date: Thu, 4 Jul 2013 00:28:15 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <8281BF7E-551C-48EA-98F0-584B65BA882F@FreeBSD.org> References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <192717829.20130703121844@serebryakov.spb.ru> <51D42F29.6010609@yahoo.com> To: Anthony Jenkins X-Mailer: Apple Mail (2.1508) Cc: Lev Serebryakov , "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Jul 2013 07:28:16 -0000 Please try again the latest patch. I found the bug you reported and it's = fixed now. Thanks, -- Rui Paulo From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 4 08:15:12 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 01CADF26; Thu, 4 Jul 2013 08:15:12 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id B51871663; Thu, 4 Jul 2013 08:15:11 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Uuehz-0000QD-Qw; Thu, 04 Jul 2013 12:16:07 +0400 Date: Thu, 4 Jul 2013 12:16:07 +0400 From: Slawa Olhovchenkov To: Adrian Chadd Subject: Re: ath and ipad Message-ID: <20130704081607.GC58171@zxy.spb.ru> References: <20130703223843.GX58171@zxy.spb.ru> <20130703224555.GY58171@zxy.spb.ru> <20130703225924.GZ58171@zxy.spb.ru> <20130703230857.GA58171@zxy.spb.ru> <20130703232137.GB58171@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Jul 2013 08:15:12 -0000 On Wed, Jul 03, 2013 at 04:59:52PM -0700, Adrian Chadd wrote: > Right, but the other system is not running 11n, neither is it running > on the newer chip. > > I think it's worty trying to simplify things down as much as you can. In open mode ipad don't work while wme enabled (witch disabled wme ipad working). (Witch enabled wme I see DHCP request from ipad and replay from dhcp server, but no more). After disabled wme ipad don't work in protected (PAEP) mode From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 4 08:16:44 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4ECEBFE5 for ; Thu, 4 Jul 2013 08:16:44 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x22f.google.com (mail-qa0-x22f.google.com [IPv6:2607:f8b0:400d:c00::22f]) by mx1.freebsd.org (Postfix) with ESMTP id 1255D167D for ; Thu, 4 Jul 2013 08:16:43 +0000 (UTC) Received: by mail-qa0-f47.google.com with SMTP id i13so4067151qae.20 for ; Thu, 04 Jul 2013 01:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=RaYCnVu94hame4Kh2JdvKdkbR4joahXP9kxm2/Ai3p8=; b=AfE/38LhBuxl7FKT6QLTdIeD/vHOyXGuAVRQ2hrmYruFThX7HpwvL9mMur6waus0SV 30m0Y3fLCwmqFtu1QGRQu4j+5sKSgdSWyRDepqh/marud8sQWflSBdNKPx1H36dOng6P Khe3PMPE5l8W+rAMkCbvq1IgDkjwW1slAXVvtohnln/OtHOLA5v9PELuKapK7qnXF4vR eKIK7ed68uTFKzWJBkCq8zEWnuKSnk/U9otIVmjMf56fk617bShirfs8Hko9nVYTLfU3 HfdzBugKDa+xPTgnnB/N4ZM3s/8bsdel6vSXyBDUnJ6UCXlVKpTFVrJRdzMT5lKUNXAH FVOQ== MIME-Version: 1.0 X-Received: by 10.224.174.6 with SMTP id r6mr6940498qaz.87.1372925803529; Thu, 04 Jul 2013 01:16:43 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Thu, 4 Jul 2013 01:16:43 -0700 (PDT) In-Reply-To: <20130704081607.GC58171@zxy.spb.ru> References: <20130703223843.GX58171@zxy.spb.ru> <20130703224555.GY58171@zxy.spb.ru> <20130703225924.GZ58171@zxy.spb.ru> <20130703230857.GA58171@zxy.spb.ru> <20130703232137.GB58171@zxy.spb.ru> <20130704081607.GC58171@zxy.spb.ru> Date: Thu, 4 Jul 2013 01:16:43 -0700 X-Google-Sender-Auth: YFy-mZwAtYeZzSWpWAMjLwzR-Ec Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Jul 2013 08:16:44 -0000 What about with a very basic hostapd config? eg: interface=wlan1 driver=bsd ssid=CACHEBOY_11N_2 wpa=3 wpa_key_mgmt=WPA-PSK wpa_passphrase=PASSPHRASEGOESHERE wpa_pairwise=CCMP TKIP ctrl_interface=/var/run/hostapd From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 4 08:17:14 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E23E0119 for ; Thu, 4 Jul 2013 08:17:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x229.google.com (mail-qa0-x229.google.com [IPv6:2607:f8b0:400d:c00::229]) by mx1.freebsd.org (Postfix) with ESMTP id A632C1686 for ; Thu, 4 Jul 2013 08:17:14 +0000 (UTC) Received: by mail-qa0-f41.google.com with SMTP id f14so4119263qak.0 for ; Thu, 04 Jul 2013 01:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Pcsdn+nX9/PfMSPMKydmcT2WJ23J4Um7bd0NSWfW1VQ=; b=yTVxtIBBHUAh02GBHK7p5g/vrQYJWjeHZy8IrIDoAOgpy14luG3ZFCTBlE6ZEQhgLv PQ9m2ukgEk1iAy1B2gZbpgdvsC17S72b3MuyEl3/39iomOB0h86vAzqrGxdKXbe2dW1t 2r9HP4PGUcWG3xYeCB4cl5WDgCmoJC4uxazmCIFPSRznZlXSjVOcRgFIFFCAZWyVaN1n qZfsCtvnzoXhaDAvUXIkSknGMM1YqDUlDUoCoATImhuYPEwotFiB28FLnFzJWwbLmqZy OEjH0DMIsz9kYJp7vcB+iQS4hNP5VUoG5BGmvnoEjRIl2jLJZ8EzIyrO8x/nbVDqiTrP NUZQ== MIME-Version: 1.0 X-Received: by 10.49.110.68 with SMTP id hy4mr4572403qeb.6.1372925834304; Thu, 04 Jul 2013 01:17:14 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Thu, 4 Jul 2013 01:17:14 -0700 (PDT) In-Reply-To: References: <20130703223843.GX58171@zxy.spb.ru> <20130703224555.GY58171@zxy.spb.ru> <20130703225924.GZ58171@zxy.spb.ru> <20130703230857.GA58171@zxy.spb.ru> <20130703232137.GB58171@zxy.spb.ru> <20130704081607.GC58171@zxy.spb.ru> Date: Thu, 4 Jul 2013 01:17:14 -0700 X-Google-Sender-Auth: -UD-H8z-8uWaWY-tJu8IZI_c3nA Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Jul 2013 08:17:14 -0000 Sorry, try: interface=wlan0 driver=bsd ssid=CACHEBOY_11N_1 wpa=3 wpa_key_mgmt=WPA-PSK wpa_passphrase=PASSPHRASE wpa_pairwise=CCMP ctrl_interface=/var/run/hostapd From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 4 08:24:33 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2FEEB324; Thu, 4 Jul 2013 08:24:33 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id E243116DD; Thu, 4 Jul 2013 08:24:32 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Uuer2-0000VW-Ou; Thu, 04 Jul 2013 12:25:28 +0400 Date: Thu, 4 Jul 2013 12:25:28 +0400 From: Slawa Olhovchenkov To: Adrian Chadd Subject: Re: ath and ipad Message-ID: <20130704082528.GD58171@zxy.spb.ru> References: <20130703225924.GZ58171@zxy.spb.ru> <20130703230857.GA58171@zxy.spb.ru> <20130703232137.GB58171@zxy.spb.ru> <20130704081607.GC58171@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Jul 2013 08:24:33 -0000 On Thu, Jul 04, 2013 at 01:17:14AM -0700, Adrian Chadd wrote: > Sorry, try: > > interface=wlan0 > driver=bsd > ssid=CACHEBOY_11N_1 > wpa=3 > wpa_key_mgmt=WPA-PSK > wpa_passphrase=PASSPHRASE > wpa_pairwise=CCMP > ctrl_interface=/var/run/hostapd working From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 4 08:25:21 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 987FD33C for ; Thu, 4 Jul 2013 08:25:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x233.google.com (mail-qa0-x233.google.com [IPv6:2607:f8b0:400d:c00::233]) by mx1.freebsd.org (Postfix) with ESMTP id 5BB3216E2 for ; Thu, 4 Jul 2013 08:25:21 +0000 (UTC) Received: by mail-qa0-f51.google.com with SMTP id f11so643179qae.17 for ; Thu, 04 Jul 2013 01:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=0SOedYzPbM7vC/ldyy2uiGg4B9XWH36N+Dd5TfCw12c=; b=PltxTlQe8d7EdzwCQgmCjhYnG/vl6E7bW+X717OYnyf9ghDKHUTb3rCHo0ugjIZ9TM mtqZaRcZE4TJj8UgjJvSFbv9Ow2PVXg07K8Y5AQNJuBCbjhB5bWfhmTjZI2OhI1CGXGm E6FjCE/61JRCJtuiH56uf0v+4wjJnMKbC2WqPcf7ngLE7m3kFCC+XVsb9p0JJNJmWDdR Gaz51gODUJaI/CPJn3RRE+LZbuCJlD5BsF/zKmvTyGsGtfKQy/q0uFIckQXybKyQ2Jj1 E3TbQhlVrKNPNt30pLEQ5qCr5kYZtsiq8QDbdKJ+DgPnFWsU9IYsFmCLOiwe3Pl/S9qp Kzng== MIME-Version: 1.0 X-Received: by 10.224.189.70 with SMTP id dd6mr7307210qab.24.1372926320977; Thu, 04 Jul 2013 01:25:20 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Thu, 4 Jul 2013 01:25:20 -0700 (PDT) In-Reply-To: <20130704082528.GD58171@zxy.spb.ru> References: <20130703225924.GZ58171@zxy.spb.ru> <20130703230857.GA58171@zxy.spb.ru> <20130703232137.GB58171@zxy.spb.ru> <20130704081607.GC58171@zxy.spb.ru> <20130704082528.GD58171@zxy.spb.ru> Date: Thu, 4 Jul 2013 01:25:20 -0700 X-Google-Sender-Auth: 7_0K8iRMN9IlCwkJV5E346bIXiY Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Jul 2013 08:25:21 -0000 Ok! CAn you go and tinker with this? See what seems to break it? I can then go debug why it's breaking. Thanks! -adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 4 08:30:32 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6F90A465; Thu, 4 Jul 2013 08:30:32 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id 2EAA5171C; Thu, 4 Jul 2013 08:30:32 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Uuewq-0000dS-Uw; Thu, 04 Jul 2013 12:31:28 +0400 Date: Thu, 4 Jul 2013 12:31:28 +0400 From: Slawa Olhovchenkov To: Adrian Chadd Subject: Re: ath and ipad Message-ID: <20130704083128.GE58171@zxy.spb.ru> References: <20130703230857.GA58171@zxy.spb.ru> <20130703232137.GB58171@zxy.spb.ru> <20130704081607.GC58171@zxy.spb.ru> <20130704082528.GD58171@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Jul 2013 08:30:32 -0000 On Thu, Jul 04, 2013 at 01:25:20AM -0700, Adrian Chadd wrote: > Ok! CAn you go and tinker with this? See what seems to break it? > I can then go debug why it's breaking. I can play with this setup some hours. After this I restore previos setup and can play again next day, 06-11 GMT. From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 4 08:32:42 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D9B7D490 for ; Thu, 4 Jul 2013 08:32:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x22d.google.com (mail-qe0-x22d.google.com [IPv6:2607:f8b0:400d:c02::22d]) by mx1.freebsd.org (Postfix) with ESMTP id 9DDDA172B for ; Thu, 4 Jul 2013 08:32:42 +0000 (UTC) Received: by mail-qe0-f45.google.com with SMTP id w7so604596qeb.32 for ; Thu, 04 Jul 2013 01:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=8pGDzWzpZlMd+WTTCUjU+PLtYkiAuhAbZQxc8Dgi9Z4=; b=khuV0gPvtpsssO+Oj66q4Gm3sJrR6cExGUuchSi7/SvKWaJOQsbI3pzkBp1rhO+iOI v3eaL5St/bX/zndcXCSQPuVeFLSFN8ZpD+OeRrBDdK/nBPr3bUdnkZGL2JGaD1UwtKII LG40vA9GZo2hgTm3Js2KE2LaOBOufLeqdis/5P3O3O+Pdccj9PcWoZoiGcMpAexvMH55 +TQDrCsa7g05L5yJcYG+vwjeqUTY79vDETYnARLK3d7rHWAKZkI5ZfUe2PiSfOtqjw2N yHssHivvIaDX2FdGVMudvUPkZrXUsIWRzetnRRuJf4qwEw/nOkHejITjt5tITWMwqVbm S33w== MIME-Version: 1.0 X-Received: by 10.49.98.196 with SMTP id ek4mr4668580qeb.8.1372926762163; Thu, 04 Jul 2013 01:32:42 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Thu, 4 Jul 2013 01:32:42 -0700 (PDT) In-Reply-To: <20130704083128.GE58171@zxy.spb.ru> References: <20130703230857.GA58171@zxy.spb.ru> <20130703232137.GB58171@zxy.spb.ru> <20130704081607.GC58171@zxy.spb.ru> <20130704082528.GD58171@zxy.spb.ru> <20130704083128.GE58171@zxy.spb.ru> Date: Thu, 4 Jul 2013 01:32:42 -0700 X-Google-Sender-Auth: ujWgUSOpapb5RpccL4XOd28hqFc Message-ID: Subject: Re: ath and ipad From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Jul 2013 08:32:42 -0000 Thanks! I'm heading to bed soon anyway. I'm glad we've established _something_ that works! adrian On 4 July 2013 01:31, Slawa Olhovchenkov wrote: > On Thu, Jul 04, 2013 at 01:25:20AM -0700, Adrian Chadd wrote: > >> Ok! CAn you go and tinker with this? See what seems to break it? >> I can then go debug why it's breaking. > > I can play with this setup some hours. > After this I restore previos setup and can play again next day, 06-11 GMT. From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 4 16:44:44 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 92553273 for ; Thu, 4 Jul 2013 16:44:44 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x231.google.com (mail-qe0-x231.google.com [IPv6:2607:f8b0:400d:c02::231]) by mx1.freebsd.org (Postfix) with ESMTP id 5882210AD for ; Thu, 4 Jul 2013 16:44:44 +0000 (UTC) Received: by mail-qe0-f49.google.com with SMTP id cz11so829610qeb.36 for ; Thu, 04 Jul 2013 09:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=lMJN9cZv5P4i8rYUFw97SLA7Dth80btNXQovJOHFqVE=; b=sJhNLUS5UwsEGziopEavvVH27WuNqUw9f2yihi8OzTLVlXNReXnAd+5U3qF4vEXdVc FbWWyCai5bvPwZDgVKpTaEJiTSzZSLBfQ8pZHU2V4sj2e/Yh9XRJx9GoRBULQEDPHNEK quz5s7PNkzSF2jtn+s4KowW7LjXvHkhddoAcWkBA3rdRFZITI1Oq38kKrBAzfMEWzOXP FcY4llswYGhKgwjR3ghYVA7O2pD0nMdh0w2cvG8OPamtKRwwcJwNaGK+DxPWZY4ePQKt edM+7odiEYdkqUYM/S9c4vSdx16sG7kXaSSNEZ3k6pJZjoPt6H8lGRmot614bRY9nO+p l5gg== MIME-Version: 1.0 X-Received: by 10.229.165.207 with SMTP id j15mr1213989qcy.92.1372956283799; Thu, 04 Jul 2013 09:44:43 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Thu, 4 Jul 2013 09:44:43 -0700 (PDT) In-Reply-To: <201307040813.r648DFBR017918@svn.freebsd.org> References: <201307040813.r648DFBR017918@svn.freebsd.org> Date: Thu, 4 Jul 2013 09:44:43 -0700 X-Google-Sender-Auth: STQDLmuVDgGDvq-K6IrtNQs2_eQ Message-ID: Subject: Fwd: svn commit: r252690 - head/sys/mips/conf From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 04 Jul 2013 16:44:44 -0000 Hi, In case you're looking for a new high power 2GHz mesh-ready AP to tinker with.. -adrian ---------- Forwarded message ---------- From: Adrian Chadd Date: 4 July 2013 01:13 Subject: svn commit: r252690 - head/sys/mips/conf To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Author: adrian Date: Thu Jul 4 08:13:14 2013 New Revision: 252690 URL: http://svnweb.freebsd.org/changeset/base/252690 Log: Add in a configuration file and hints for the Engenius ENH-200. This is an AR7240 based device with an AR9285 on-board. I've tested the initial boot and wifi support; however at the moment the ethernet switch driver doesn't seem to be picking up carrier on the active ethernet port. Basic flood pinging works however, so I think we're on the right track. Thank you to Adrian Woodley for purchasing me one of these devices to bootstrap FreeBSD-HEAD on. Added: head/sys/mips/conf/ENH200 (contents, props changed) head/sys/mips/conf/ENH200.hints (contents, props changed) Added: head/sys/mips/conf/ENH200 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/mips/conf/ENH200 Thu Jul 4 08:13:14 2013 (r252690) @@ -0,0 +1,44 @@ +# +# Specific board setup for the Engenius ENH-200 802.11bgn mesh node. +# +# The Engenius ENH-200 has the following hardware: +# +# + AR7240 CPU SoC +# + AR9285 Wifi +# + Integrated switch +# + 8MB flash +# + 32MB RAM +# + uboot environment + +# $FreeBSD$ + +include "AR724X_BASE" +ident "ENH200" +hints "ENH200.hints" + +options AR71XX_REALMEM=32*1024*1024 + +options AR71XX_ENV_UBOOT + +# For DOS - enable if required +options MSDOSFS + +# uncompress - to boot read-only lzma natively from flash +device geom_uncompress +options GEOM_UNCOMPRESS +options ROOTDEVNAME=\"ufs:/dev/map/rootfs.uncompress\" + +# Used for the static uboot partition map +device geom_map + +# Options needed for the EEPROM based calibration/PCI configuration data. +options AR71XX_ATH_EEPROM # Fetch EEPROM/PCI config from flash +options ATH_EEPROM_FIRMWARE # Use EEPROM from flash +device firmware # Used by the above + +# Options required for miiproxy and mdiobus +options ARGE_MDIO # Export an MDIO bus separate from arge +device miiproxy # MDIO bus <-> MII PHY rendezvous + +device etherswitch +device arswitch Added: head/sys/mips/conf/ENH200.hints ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/mips/conf/ENH200.hints Thu Jul 4 08:13:14 2013 (r252690) @@ -0,0 +1,124 @@ +# $FreeBSD$ + +# arge0 MDIO bus +hint.argemdio.0.at="nexus0" +hint.argemdio.0.maddr=0x19000000 +hint.argemdio.0.msize=0x1000 +hint.argemdio.0.order=0 + +# arge1 MDIO bus doesn't exist on the AR7240 + +# arge0: MII; dedicated PHY 4 on switch, connected via internal switch +# MDIO bus. + +# hint.arge.0.eeprommac=0x83fe9ff0 +hint.arge.0.phymask=0x10 # PHY 4 +# hint.arge.0.miimode=2 # MII +hint.arge.0.mdio=mdioproxy1 # Hanging off the arswitch MDIO bus + +# arge1: connected to the LAN switch MAC, at 1000BaseTX / GMII. +hint.arge.1.phymask=0x0 +# hint.arge.1.miimode=1 # GMII +hint.arge.1.media=1000 # Force to 1000BaseTX/full +hint.arge.1.fduplex=1 + +# +# AR7240 switch config +# +hint.arswitch.0.at="mdio0" +hint.arswitch.0.is_7240=1 # We need to be explicitly told this +hint.arswitch.0.numphys=4 # 4 active switch PHYs (PHY 0 -> 3) +hint.arswitch.0.phy4cpu=1 # Yes, PHY 4 == dedicated PHY +hint.arswitch.0.is_rgmii=0 # No, not RGMII +hint.arswitch.0.is_gmii=0 # No, not GMII + +# ath0 hint - pcie slot 0 +hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff1000 +hint.pcib.0.bus.0.0.0.ath_fixup_size=4096 + +# ath0 - eeprom comes from here +hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware" + +# Signal leds +hint.gpioled.0.at="gpiobus0" +hint.gpioled.0.name="sig1" +hint.gpioled.0.pins=0x0001 # pin 0 +hint.gpioled.1.at="gpiobus0" +hint.gpioled.1.name="sig2" +hint.gpioled.1.pins=0x0002 # pin 1 +hint.gpioled.2.at="gpiobus0" +hint.gpioled.2.name="sig3" +hint.gpioled.2.pins=0x0800 # pin 11 +hint.gpioled.3.at="gpiobus0" +hint.gpioled.3.name="sig4" +hint.gpioled.3.pins=0x0080 # pin 7 + +# nvram mapping - XXX ? +#hint.nvram.0.base=0x1f030000 +#hint.nvram.0.maxsize=0x2000 +#hint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic +#hint.nvram.1.base=0x1f032000 +#hint.nvram.1.maxsize=0x4000 +#hint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic + +# GEOM_MAP +# +# The default bootargs: +# +# bootargs=console=ttyS0,115200 root=31:04 rootfstype=squashfs init=/etc/preinit mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),320k(custom),1024k(kernel),4928k(rootfs),1536k(failsafe),64k(ART) board=ENH200 +# +# However there's not a lot of space in this image layout. +# +# Thus, an alternate layout will be used, complete with reconfiguring +# uboot to use the new base address. +# +# 256k - uboot (0x000000 -> 0x040000) +# 64k - uboot-env (0x040000 -> 0x050000) +# 1728k - kernel (0x050000 -> 0x200000) +# 6016k - rootfs (0x200000 -> 0x7e0000) +# 64k - config (0x7e0000 -> 0x7f0000) +# 64k - ART (0x7f0000 -> 0x800000) +# +# For this, the 'bootcmd' environment variable needs to be +# changed to point to the new location: +# +# ar7240> setenv bootcmd 'bootm 0x9f050000' + +# uboot (256k) +hint.map.0.at="flash/spi0" +hint.map.0.start=0x00000000 +hint.map.0.end=0x00040000 +hint.map.0.name="uboot" +hint.map.0.readonly=1 + +# uboot-env (64k) +hint.map.1.at="flash/spi0" +hint.map.1.start=0x00040000 +hint.map.1.end=0x00050000 +hint.map.1.name="uboot-env" +hint.map.1.readonly=1 + +# kernel (1728k) +hint.map.2.at="flash/spi0" +hint.map.2.start=0x00050000 +hint.map.2.end=0x00200000 +hint.map.2.name="kernel" + +# rootfs (6016k) +hint.map.3.at="flash/spi0" +hint.map.3.start=0x00200000 +hint.map.3.end=0x007e0000 +hint.map.3.name="rootfs" + +# config (64k) +hint.map.4.at="flash/spi0" +hint.map.4.start=0x007e0000 +hint.map.4.end=0x007f0000 +hint.map.4.name="cfg" + +# ART (64k) +hint.map.4.at="flash/spi0" +hint.map.4.start=0x007f0000 +hint.map.4.end=0x00800000 +hint.map.4.name="ART" +hint.map.4.readonly=1 From owner-freebsd-wireless@FreeBSD.ORG Fri Jul 5 00:54:58 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0A389875 for ; Fri, 5 Jul 2013 00:54:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x22f.google.com (mail-qe0-x22f.google.com [IPv6:2607:f8b0:400d:c02::22f]) by mx1.freebsd.org (Postfix) with ESMTP id C735017A0 for ; Fri, 5 Jul 2013 00:54:57 +0000 (UTC) Received: by mail-qe0-f47.google.com with SMTP id 1so987356qec.34 for ; Thu, 04 Jul 2013 17:54:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=a133nr5bcomXgLddJPfLPDUegXoDS0EkIBjtOZ5P6vQ=; b=pYaiTGroqdEw4PY6MWX4ee/Llqn8lTpfx8lobnz80OCcXZN+T4R3f0y3+/viXd37xl ycoV2Y4VgE68JHJWmydxxZ/uPxe10cPN0UBM/kzqbhnVDgRWEjWkhNkukQqkdSaUpyow 1bw7r8yffgReh14DpHAGsEV/mFhgeIip6o6jyT8mR7Fgv07KeYW83Gup6lQAcwPPiToI gyC/CnOhl7XBXdzm4lghwRpvNOpkFgw4yBJUln+heyIsrSInOiX0XnGy+0yh1h8VSDPU 9pR8dFXjAqJxn4mwdjxecPzw4h+jtteeZW/nlE68dbIqBkAto0hAtVz1RhW1uMynQszX c4VA== MIME-Version: 1.0 X-Received: by 10.224.13.19 with SMTP id z19mr8391465qaz.12.1372985697258; Thu, 04 Jul 2013 17:54:57 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Thu, 4 Jul 2013 17:54:57 -0700 (PDT) In-Reply-To: References: Date: Thu, 4 Jul 2013 17:54:57 -0700 X-Google-Sender-Auth: cFipK54JeUL7iPShY_1NFXf51_I Message-ID: Subject: Re: [cft] net80211 PHY changes to include 11n tables, take #1 From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 05 Jul 2013 00:54:58 -0000 This is now in -HEAD. -adrian On 30 June 2013 20:13, Adrian Chadd wrote: > Hi all, > > As part of adding 11n awareness to various parts of net80211 (TDMA, > 802.11s code, implementing AMSDU, 11n+fast-frames support, TX rate > control) the PHY table code needs to be taught about said rates. > > Unfortunately the PHY code as it stands only knows about non-11n > stuff. To add to the pain, the basic rate bit (0x80) is the same as > the MCS rate bit (0x80). They're supposed to not be used in > overlapping contexts but in some places (notable ni->tx_rate, for > example!) they are. In this code, the rate code -> table index code > makes the unfortunate mistake of also indexing things with the basic > rate bit set, which messes up MCS rates. > > The "real" solution is to make the basic rate and mcs rate bits either > much higher bits, or to turn the rate representation into a struct > with the rate code / speed and PHY bits (eg, BASIC, MCS, etc). That's > a big change that touches a _lot_ of code so I'm not yet willing to go > and do all that work. It's likely I'm going to have to for 802.11ac > support however. Sniffle. > > The "real real" solution is to not use this rate table index thing > outside of a very specific set of instances. I can unfortunately see a > million little race conditions here where the driver holds onto a rate > table index whilst doing something, whilst some other part of the code > decides to wholesale change said rate table underneath it. it's > terrifying; I may end up having to do a further pass and kill this > whole "use the rate table index" thing outside of contexts that I can > protect things with locks. > > So, here's what I've done: > > * Make the current PHY and rate table lookup routines non-11n only. If > the BASIC bit is set (0x80) then it panics. > * Add the 11n rates into the PHY tables > * Add some accessor methods to do the ratecode->rateindex lookup > rather than manually going grubbing around in ieee80211com. > * Modify callers of the ratecode->rateindex routines to strip the > basic bit if it's set. They all assume it's legacy at this point, so > it's fine. > > I've tested this on ath (where it should be a no-op) and iwn (where it > does use the PHY table and rate control code.) So far, so good. I > haven't sat down and fully debugged whether populating the 11n rate > table with 11n rates is causing confusion in the iwn code - the iwn > code does some magic crap somewhere to "pretend" the rates are non-11n > when they indeed are, so the rate control code can do it's thing. i'd > obviously like to kill _that_. > > The patch is here: > > http://people.freebsd.org/~adrian/ath/20130630-net80211-phy-11n-1.diff > > Please give it a whirl. It's only really going to show up if your > device uses the net80211 rate control code. As it patches ral and iwn, > I'm doubly interested in those devices. > > I'd like to commit this in a couple of days and start working on > undoing the brain damage in iwn so the rate control modules can > actually do 11n rate table lookups. > > Thanks! > > > -adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Jul 5 12:21:26 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0D47F609 for ; Fri, 5 Jul 2013 12:21:26 +0000 (UTC) (envelope-from scoobi_doo@yahoo.com) Received: from nm4.bullet.mail.bf1.yahoo.com (nm4.bullet.mail.bf1.yahoo.com [98.139.212.163]) by mx1.freebsd.org (Postfix) with ESMTP id 8CB1819DA for ; Fri, 5 Jul 2013 12:21:25 +0000 (UTC) Received: from [98.139.215.143] by nm4.bullet.mail.bf1.yahoo.com with NNFMP; 05 Jul 2013 12:18:42 -0000 Received: from [98.139.212.214] by tm14.bullet.mail.bf1.yahoo.com with NNFMP; 05 Jul 2013 12:18:42 -0000 Received: from [127.0.0.1] by omp1023.mail.bf1.yahoo.com with NNFMP; 05 Jul 2013 12:18:42 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 207525.29896.bm@omp1023.mail.bf1.yahoo.com Received: (qmail 13868 invoked by uid 60001); 5 Jul 2013 12:18:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1373026722; bh=gw35GNI5S0pxH8olsi7qsNQhLp1y9Q6AjE6T4JkrorA=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=DV28vMLYzWXGVHQDeaLuDBpglS8Sv7gg3K0OSw9JV2Xp5DSFBW3ik5Vf2tOfxLLQddLrlA2qM4jxZ8nG5rS77OZXpJomiIgum9A66fc3WSycZTDkY8zhTjy8jyt6urcx8zEEfVXhbQ8bgJwRNCYXrbfnAeY9XP8ZHXkyGmgB1U0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=du8COxcpkO1zLZd0J9QRLX82pTyD8sb2Mc6Nxjwv9qfd1M6+L7ugqpN4roxpPYNnZiM51BSqaz/rGxS6d94phkPOZETaWgf1a486mQj5uJ+n7waR/ZBLmJ+iNAxO+hFge8ITdPygoNTPAT9RJZl6Z/68qRsowCnhXFbg0xzbjvc= ; X-YMail-OSG: E9gkbYIVM1kSsEhyqif3J7UNfrWM0dc6rkqiVe77YLvGz2N yGDKUEMSOtxfPKw10Zfi7sbRtuwYauLhLfxc9pusZgXuT7SEtgCmdsFFkfLE VaPVEkLemoVLHrwjwBbFfaZYdIVESnTWMIz4VcoTyivD9.pdk6G9d83fJ1NK wtuLg0QI4Lnmn0CTYny4iBANcYD8WnzgYbmaKHDganOOVf5YInI9aXheLcxJ IJK9ngIcXnCQO8O3WOgJMfzeWzWDzEoCSom6pn9ah1EmBBA_ob2baNbP5TsD 3bZ5MSfRiOR2SLHcR66xUBnSNVdiaq6vNWAyIuEtTcq5PWn2ufj3dTgV5EqP hCh665a3IjQW94oI8s.Ety1c39bRxKvkXzw7hCY2fME4FHlo_SOzrdUDzlP1 PSFTZttHf869qSQVqjD6FDgcKHpteTYDdAXYeq7SOxCp0qcl7AX3lk3m33GA 8REkzNmIRxuxM_sZDpvqj1O5Y2y7VGFFHK8f433oWb1DcglwkRIbB5TO2I7M bizGkB5XurB7PFRbmqFc9U551FqGJHpXhOB_E7RZtiMa8TkT0JfcN7LSLRGr r.tVujOjv3dK91CTan3cQdKS_pEA7YPOmG8feIz685c8- Received: from [99.62.101.19] by web160106.mail.bf1.yahoo.com via HTTP; Fri, 05 Jul 2013 05:18:41 PDT X-Rocket-MIMEInfo: 002.001, SSBidWlsdCB0aGUgbGF0ZXN0IEhFQUQgdXBkYXRlLCBpdCBpcyB3b3JraW5nIG5pY2VseSwgdGhhbmtzIQoKCkFudGhvbnkKCgoKLS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLQpGcm9tOiBSdWkgUGF1bG8gPHJwYXVsb0BGcmVlQlNELm9yZz4KVG86IEFudGhvbnkgSmVua2lucyA8c2Nvb2JpX2Rvb0B5YWhvby5jb20.CkNjOiAKU2VudDogVGh1cnNkYXksIEp1bHkgNCwgMjAxMyA5OjQ5IFBNClN1YmplY3Q6IFJlOiBDRlQ6IHdwYV9zdXBwbGljYW50L2hvc3RhcGQgaW1wb3J0IHBhdGNoCgpUaGlzIHdhcyABMAEBAQE- X-Mailer: YahooMailWebService/0.8.148.557 References: <7671255B-5582-428A-8ADC-3DF7AA32C772@FreeBSD.org> <8819701.20130630194938@serebryakov.spb.ru> <192717829.20130703121844@serebryakov.spb.ru> <51D42F29.6010609@yahoo.com> <1372988069.39151.YahooMailNeo@web160101.mail.bf1.yahoo.com> <78276777-F786-47DF-A7A4-A574809E97CD@FreeBSD.org> <1372988865.53918.YahooMailNeo@web160101.mail.bf1.yahoo.com> Message-ID: <1373026721.13264.YahooMailNeo@web160106.mail.bf1.yahoo.com> Date: Fri, 5 Jul 2013 05:18:41 -0700 (PDT) From: Anthony Jenkins Subject: Re: CFT: wpa_supplicant/hostapd import patch To: Rui Paulo In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Anthony Jenkins 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: Fri, 05 Jul 2013 12:21:26 -0000 I built the latest HEAD update, it is working nicely, thanks!=0A=0A=0AAntho= ny=0A=0A=0A=0A----- Original Message -----=0AFrom: Rui Paulo =0ATo: Anthony Jenkins =0ACc: =0ASent: Thursday= , July 4, 2013 9:49 PM=0ASubject: Re: CFT: wpa_supplicant/hostapd import pa= tch=0A=0AThis was fixed already=0A=0AOn 4 Jul 2013, at 18:47, Anthony Jenki= ns wrote:=0A=0A> =0A> =0A> ----- Original Message --= ---=0A> From: Rui Paulo =0A> To: Anthony Jenkins =0A> Cc: =0A> Sent: Thursday, July 4, 2013 9:35 PM=0A> Subj= ect: Re: CFT: wpa_supplicant/hostapd import patch=0A> =0A> Can you please u= pdate to the latest head?=0A> =0A> --=0A> Rui Paulo=0A> =0A> Will do... wil= l let you know what happens.=A0 Tinderbox is saying the amd64 build's broke= n in wpa_supplicant.conf though, so I'm afraid to 'svn update' :-(=0A> =0A>= Anthony=0A> =0A>>>> stage 4.3: make dependencies=0A> [...]=0A> =3D=3D=3D> = usr.sbin/wpa/wpa_supplicant (depend)=0A> rm -f .depend=0A> CC=3D'cc=0A> ' m= kdep -f .depend -a=A0 =A0 -I/src/usr.sbin/wpa/wpa_supplicant =0A> -I/src/us= r.sbin/wpa/wpa_supplicant/../../../contrib/wpa//hostapd =0A> -I/src/usr.sbi= n/wpa/wpa_supplicant/../../../contrib/wpa//src =0A> -I/src/usr.sbin/wpa/wpa= _supplicant/../../../contrib/wpa//src/common =0A> -I/src/usr.sbin/wpa/wpa_s= upplicant/../../../contrib/wpa//src/crypto =0A> -I/src/usr.sbin/wpa/wpa_sup= plicant/../../../contrib/wpa//src/drivers =0A> -I/src/usr.sbin/wpa/wpa_supp= licant/../../../contrib/wpa//src/l2_packet =0A> -I/src/usr.sbin/wpa/wpa_sup= plicant/../../../contrib/wpa//src/utils =0A> -I/src/usr.sbin/wpa/wpa_suppli= cant/../../../contrib/wpa//src/wps =0A> -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_I= FACE_UNIX -DCONFIG_BACKEND_FILE =0A> -DCONFIG_DEBUG_SYSLOG -DCONFIG_DRIVER_= BSD -DCONFIG_DRIVER_NDIS =0A> -DCONFIG_DRIVER_WIRED -DCONFIG_PEERKEY -DCONF= IG_SMARTCARD =0A> -DCONFIG_TERMINATE_ONLASTIF -DCONFIG_WPS -DCONFIG_WPS2 -D= CONFIG_WPS_UPNP=0A> -DCONFIG_TLS=3Dopenssl -DCONFIG_IEEE80211R -DCONFIG_INT= ERWORKING =0A> -DCONFIG_PRIVSEP -DCONFIG_HS20 -DCONFIG_GAS -DPKCS12_FUNCS -= DEAP!=0A> _GTC -DEAP_LEAP -DEAP_MD5 -DEAP_MSCHAPv2 -DEAP_OTP -DEAP_PEAP -DE= AP_PSK =0A> -DEAP_TLS -DEAP_TTLS -DEAP_GTC -DEAP_OTP -DEAP_LEAP -DIEEE8021X= _EAPOL =0A> -DCONFIG_SHA256 -DEAP_TLS_OPENSSL -I/src/usr.sbin/wpa/wpa_suppl= icant =0A> -I/src/usr.sbin/wpa/wpa_supplicant/../../../contrib/wpa//hostapd= =0A> -I/src/usr.sbin/wpa/wpa_supplicant/../../../contrib/wpa//src =0A> -I/= src/usr.sbin/wpa/wpa_supplicant/../../../contrib/wpa//src/common =0A> -I/sr= c/usr.sbin/wpa/wpa_supplicant/../../../contrib/wpa//src/crypto =0A> -I/src/= usr.sbin/wpa/wpa_supplicant/../../../contrib/wpa//src/drivers =0A> -I/src/u= sr.sbin/wpa/wpa_supplicant/../../../contrib/wpa//src/l2_packet =0A> -I/src/= usr.sbin/wpa/wpa_supplicant/../../../contrib/wpa//src/utils =0A> -I/src/usr= .sbin/wpa/wpa_supplicant/../../../contrib/wpa//src/wps =0A> -DCONFIG_CTRL_I= FACE -DCONFIG_CTRL_IFACE_UNIX -std=3Dgnu99=A0 =0A> /src/usr.sbin/wpa/wpa_su= pplicant/../../../contrib/wpa//src/crypto/aes-unwrap.c=0A[...]=0A> /src/usr= .sbin/wpa/wpa_supplicant/../../../contrib/wpa//wpa_supplicant/notify.c:16:1= 0:=0A> fatal error: 'dbus/dbus_common.h' file not found=0A> #include "dbus/= dbus_common.h"=0A>=A0 =A0 =A0 =A0 =A0 ^=0A> 1 error generated.=0A> mkdep: c= ompile failed=0A> *** Error code 1=0A> =0A> Stop.=0A> make: stopped in /src= /usr.sbin/wpa/wpa_supplicant=0A> *** Error code 1=0A> =0A> Stop.=0A> make: = stopped in /src/usr.sbin/wpa=0A> *** Error code 1=0A> =0A> Stop.=0A> make: = stopped in /src/usr.sbin=0A> *** Error code 1=0A> =0A> Stop.=0A> make: stop= ped in /src=0A> *** Error code 1=0A> =0A> Stop.=0A> make: stopped in /src= =0A> *** Error code 1=0A> =0A> Stop in /src.=0A> TB --- 2013-07-05 00:52:52= - WARNING: /usr/bin/make returned exit code=A0 1 =0A> TB --- 2013-07-05 00= :52:52 - ERROR: failed to build world=0A> TB --- 2013-07-05 00:52:52 - 7779= .55 user 1066.44 system 9139.20 real=0A> =0A> =0A> http://tinderbox.freebsd= .org/tinderbox-head-build-HEAD-amd64-amd64.full=0A> _=0A> =0A=0A--=0ARui Pa= ulo=0A From owner-freebsd-wireless@FreeBSD.ORG Fri Jul 5 16:52:12 2013 Return-Path: Delivered-To: freebsd-wireless@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6F439A4D; Fri, 5 Jul 2013 16:52:12 +0000 (UTC) (envelope-from hiren@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 4A76E175E; Fri, 5 Jul 2013 16:52:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r65GqCo3015211; Fri, 5 Jul 2013 16:52:12 GMT (envelope-from hiren@freefall.freebsd.org) Received: (from hiren@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r65GqBR8015210; Fri, 5 Jul 2013 16:52:11 GMT (envelope-from hiren) Date: Fri, 5 Jul 2013 16:52:11 GMT Message-Id: <201307051652.r65GqBR8015210@freefall.freebsd.org> To: giepher@gmail.com, hiren@FreeBSD.org, freebsd-wireless@FreeBSD.org From: hiren@FreeBSD.org Subject: Re: kern/175870: [iwn] /etc/rc.d/netif restart cause system crash X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 05 Jul 2013 16:52:12 -0000 Synopsis: [iwn] /etc/rc.d/netif restart cause system crash State-Changed-From-To: open->closed State-Changed-By: hiren State-Changed-When: Fri Jul 5 16:51:27 UTC 2013 State-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=175870