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