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