From owner-freebsd-wireless@FreeBSD.ORG Sun Dec 9 00:50:33 2012 Return-Path: Delivered-To: freebsd-wireless@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 72E9382A; Sun, 9 Dec 2012 00:50:33 +0000 (UTC) (envelope-from adrian@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 40B9A8FC15; Sun, 9 Dec 2012 00:50:33 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qB90oX7Y049186; Sun, 9 Dec 2012 00:50:33 GMT (envelope-from adrian@freefall.freebsd.org) Received: (from adrian@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qB90oXvK049182; Sun, 9 Dec 2012 00:50:33 GMT (envelope-from adrian) Date: Sun, 9 Dec 2012 00:50:33 GMT Message-Id: <201212090050.qB90oXvK049182@freefall.freebsd.org> To: adrian@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: adrian@FreeBSD.org Subject: Re: misc/174283: [net80211] panics in ieee80211_ff_age() and ieee80211_ff_flush() 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, 09 Dec 2012 00:50:33 -0000 Synopsis: [net80211] panics in ieee80211_ff_age() and ieee80211_ff_flush() Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: adrian Responsible-Changed-When: Sun Dec 9 00:50:24 UTC 2012 Responsible-Changed-Why: punt to maintainer list http://www.freebsd.org/cgi/query-pr.cgi?pr=174283 From owner-freebsd-wireless@FreeBSD.ORG Sun Dec 9 07:38:03 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56D0B82E for ; Sun, 9 Dec 2012 07:38:03 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id D6BBE8FC08 for ; Sun, 9 Dec 2012 07:38:02 +0000 (UTC) Received: by mail-ee0-f54.google.com with SMTP id c13so1203265eek.13 for ; Sat, 08 Dec 2012 23:38:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=vVUU6g4NFa98Eh1OtIaxAfPQpOlq4O+5yRlHbTP22JE=; b=wtVgEr+0VMapUowiHLNNyPK1YWxz2BcUAyDPdwbxgNqOyk7AA7yA1jEbaTEUOTDLZw cUJL1stlTOjP26lSDvkarTwjv/olGHDMcBUB9al//X6K+gTxShU77q1ALGWLJldRyltd +ZP6db1K9Odc3E3AB+yHBWDvrerWtFHbFsyB1+0va2oCUfZ7/JvLy0fTRA53gUpps2wA 42mIO8zWfJL3Nz39dv6IMcJF2n+/hyNg042uc9ehVZlmLcVe9WRkCZSd+6ucjwmMC5la kDS2yleH24VsFfnx4dYFveaBW+U3Vr29ui3LyXlt/6CAmNUbaEO7i16mOMagVGIeZIZy tNHQ== Received: by 10.14.176.66 with SMTP id a42mr35847662eem.34.1355038681676; Sat, 08 Dec 2012 23:38:01 -0800 (PST) Received: from limbo.xim.bz ([46.150.100.6]) by mx.google.com with ESMTPS id 6sm22740875eea.3.2012.12.08.23.37.59 (version=SSLv3 cipher=OTHER); Sat, 08 Dec 2012 23:38:00 -0800 (PST) Message-ID: <50C43FCA.3040900@gmail.com> Date: Sun, 09 Dec 2012 09:37:46 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20100101 Firefox/17.0 SeaMonkey/2.14.1 MIME-Version: 1.0 To: freebsd-wireless@FreeBSD.org Subject: rum0 based USB wireless adapter dumps core Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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, 09 Dec 2012 07:38:03 -0000 Hi all. I recently acquired another device. Upon creating simple access point my machine starts to dump core: KDB: stack backtrace: #0 0x83586132 at kdb_backtrace+0x52 #1 0x835551fc at panic+0x1bc #2 0x89ba96a2 at ieee80211_pwrsave+0x252 #3 0x89ba44fe at ieee80211_start+0x40e #4 0x8360a019 at if_transmit+0x129 #5 0x8360bb47 at ether_output+0x5e7 #6 0x836314e0 at ip_output+0xd70 #7 0x8362e807 at ip_forward+0x3b7 #8 0x8362e107 at ip_input+0x5d7 #9 0x83610fd7 at netisr_dispatch_src+0xa7 #10 0x83611370 at netisr_dispatch+0x20 #11 0x8360c373 at ether_demux+0x133 #12 0x8360c1e9 at ether_nh_input+0x329 #13 0x83610fd7 at netisr_dispatch_src+0xa7 #14 0x83611370 at netisr_dispatch+0x20 #15 0x8360c5d1 at ether_input+0x21 #16 0x896e6335 at ste_rxeof+0xe5 #17 0x896e706e at ste_intr+0xae Uptime: 54m35s Physical memory: 1011 MB #0 doadump (textdump=-202975232) at pcpu.h:249 249 pcpu.h: No such file or directory. in pcpu.h (kgdb) #0 doadump (textdump=-202975232) at pcpu.h:249 #1 0x83554dd1 in kern_reboot (howto=Variable "howto" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:448 #2 0x83555248 in panic (fmt=Unhandled dwarf expression opcode 0xfb ) at /usr/src/sys/kern/kern_shutdown.c:636 #3 0x89ba96a2 in ieee80211_pwrsave (ni=Cannot access memory at address 0x1 ) at /usr/src/sys/modules/wlan/../../net80211/ieee80211_power.c:387 #4 0x89ba44fe in ieee80211_start (ifp=Variable "ifp" is not available. ) at /usr/src/sys/modules/wlan/../../net80211/ieee80211_output.c:284 #5 0x8360a019 in if_transmit (ifp=Variable "ifp" is not available. ) at /usr/src/sys/net/if.c:3354 #6 0x8360bb47 in ether_output (ifp= Abort trap (core dumped) Relevant output from messages: ugen0.2: at usbus0 rum0: on usbus0 rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528 ieee80211_load_module: load the wlan_amrr module by hand for now. wlan0: Ethernet address: 00:e0:4c:54:2b:5c rum0: need to implement rum_update_mcast Starting Network: rum0. rum0: flags=8943 metric 0 mtu 2290 ether 00:e0:4c:54:2b:5c nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running lock order reversal: 1st 0x89c4e6c0 rum0_node_lock (rum0_node_lock) @ /usr/src/sys/modules/wlan/../../net80211/ieee80211_node.c:1940 2nd 0x89c4d014 rum0_com_lock (rum0_com_lock) @ /usr/src/sys/modules/wlan/../../net80211/ieee80211_power.c:295 KDB: stack backtrace: #0 0x83586132 at kdb_backtrace+0x52 #1 0x8359a34e at witness_checkorder+0xc1e #2 0x835411da at _mtx_lock_flags+0x7a #3 0x89ba8f06 at ieee80211_set_tim+0x76 #4 0x89ba0061 at node_age+0x61 #5 0x89b9faf0 at ieee80211_node_timeout+0x1b0 #6 0x8356955e at softclock+0x25e #7 0x83528655 at intr_event_execute_handlers+0xc5 #8 0x83528a32 at ithread_loop+0xe2 #9 0x83525f4c at fork_exit+0x7c #10 0x83783634 at fork_trampoline+0x8 rum0: device timeout rum0: device timeout rum0: at uhub0, port 1, addr 2 (disconnected) rum0: could not multi read MAC register: USB_ERR_TIMEOUT Dec 8 23:03:53 limbo dhcpd: receive_packet failed on wlan0: Device not configured rum0: could not multi read MAC register: USB_ERR_TIMEOUT lock order reversal: 1st 0x87da6e28 if_addr_mtx (if_addr_mtx) @ /usr/src/sys/netinet/igmp.c:1710 2nd 0x83a25318 ifnet_rw (ifnet_rw) @ /usr/src/sys/net/if.c:238 KDB: stack backtrace: #0 0x83586132 at kdb_backtrace+0x52 #1 0x8359a34e at witness_checkorder+0xc1e #2 0x83553415 at _rw_rlock+0x75 #3 0x83603e53 at ifnet_byindex+0x23 #4 0x8361b5fe at igmp_intr+0x1e #5 0x83610fd7 at netisr_dispatch_src+0xa7 #6 0x83611370 at netisr_dispatch+0x20 #7 0x8361e4f0 at igmp_v1v2_queue_report+0x190 #8 0x8361d6a9 at igmp_fasttimo+0x549 #9 0x835b4840 at pffasttimo+0x30 #10 0x8356955e at softclock+0x25e #11 0x83528655 at intr_event_execute_handlers+0xc5 #12 0x83528a32 at ithread_loop+0xe2 #13 0x83525f4c at fork_exit+0x7c #14 0x83783634 at fork_trampoline+0x8 lock order reversal: 1st 0x87da6e28 if_addr_mtx (if_addr_mtx) @ /usr/src/sys/netinet/igmp.c:1710 2nd 0x83a257dc PFil hook read/write mutex (PFil hook read/write mutex) @ /usr/src/sys/net/pfil.c:77 KDB: stack backtrace: #0 0x83586132 at kdb_backtrace+0x52 #1 0x8359a34e at witness_checkorder+0xc1e #2 0x83552885 at _rm_rlock_debug+0x85 #3 0x836120ba at pfil_run_hooks+0x4a #4 0x83630fc1 at ip_output+0x851 #5 0x8361b8b8 at igmp_intr+0x2d8 #6 0x83610fd7 at netisr_dispatch_src+0xa7 #7 0x83611370 at netisr_dispatch+0x20 #8 0x8361e4f0 at igmp_v1v2_queue_report+0x190 #9 0x8361d6a9 at igmp_fasttimo+0x549 #10 0x835b4840 at pffasttimo+0x30 #11 0x8356955e at softclock+0x25e #12 0x83528655 at intr_event_execute_handlers+0xc5 #13 0x83528a32 at ithread_loop+0xe2 #14 0x83525f4c at fork_exit+0x7c #15 0x83783634 at fork_trampoline+0x8 lock order reversal: 1st 0x87da6e28 if_addr_mtx (if_addr_mtx) @ /usr/src/sys/netinet/igmp.c:1710 2nd 0x8965f2e8 ste0 (network driver) @ /usr/src/sys/modules/ste/../../dev/ste/if_ste.c:1881 KDB: stack backtrace: #0 0x83586132 at kdb_backtrace+0x52 #1 0x8359a34e at witness_checkorder+0xc1e #2 0x835411da at _mtx_lock_flags+0x7a #3 0x896e6f23 at ste_start+0x33 #4 0x8360a019 at if_transmit+0x129 #5 0x8360bb47 at ether_output+0x5e7 #6 0x836314e0 at ip_output+0xd70 #7 0x8361b8b8 at igmp_intr+0x2d8 #8 0x83610fd7 at netisr_dispatch_src+0xa7 #9 0x83611370 at netisr_dispatch+0x20 #10 0x8361e4f0 at igmp_v1v2_queue_report+0x190 #11 0x8361d6a9 at igmp_fasttimo+0x549 #12 0x835b4840 at pffasttimo+0x30 #13 0x8356955e at softclock+0x25e #14 0x83528655 at intr_event_execute_handlers+0xc5 #15 0x83528a32 at ithread_loop+0xe2 #16 0x83525f4c at fork_exit+0x7c #17 0x83783634 at fork_trampoline+0x8 rum0: could not multi write MAC register: USB_ERR_TIMEOUT rum0: on usbus0 rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528 ieee80211_load_module: load the wlan_amrr module by hand for now. wlan0: Ethernet address: 00:e0:4c:54:2b:5c lock order reversal: 1st 0x887d1778 rum0_scan_lock (rum0_scan_lock) @ /usr/src/sys/modules/wlan/../../net80211/ieee80211_node.c:1937 2nd 0x887d0014 rum0_com_lock (rum0_com_lock) @ /usr/src/sys/modules/wlan/../../net80211/ieee80211_node.c:2510 KDB: stack backtrace: #0 0x83586132 at kdb_backtrace+0x52 #1 0x8359a34e at witness_checkorder+0xc1e #2 0x835411da at _mtx_lock_flags+0x7a #3 0x89ba1cd8 at ieee80211_node_leave+0x98 #4 0x89b9f9b8 at ieee80211_node_timeout+0x78 #5 0x8356955e at softclock+0x25e #6 0x83528655 at intr_event_execute_handlers+0xc5 #7 0x83528a32 at ithread_loop+0xe2 #8 0x83525f4c at fork_exit+0x7c #9 0x83783634 at fork_trampoline+0x8 panic: age -1 cpuid = 0 KDB: stack backtrace: #0 0x83586132 at kdb_backtrace+0x52 #1 0x835551fc at panic+0x1bc #2 0x89ba96a2 at ieee80211_pwrsave+0x252 #3 0x89ba44fe at ieee80211_start+0x40e #4 0x8360a019 at if_transmit+0x129 #5 0x8360bb47 at ether_output+0x5e7 #6 0x836314e0 at ip_output+0xd70 #7 0x8362e807 at ip_forward+0x3b7 #8 0x8362e107 at ip_input+0x5d7 #9 0x83610fd7 at netisr_dispatch_src+0xa7 #10 0x83611370 at netisr_dispatch+0x20 #11 0x8360c373 at ether_demux+0x133 #12 0x8360c1e9 at ether_nh_input+0x329 #13 0x83610fd7 at netisr_dispatch_src+0xa7 #14 0x83611370 at netisr_dispatch+0x20 #15 0x8360c5d1 at ether_input+0x21 #16 0x896e6335 at ste_rxeof+0xe5 #17 0x896e706e at ste_intr+0xae > uname -a FreeBSD limbo.xim.bz 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1 r243673M: Fri Dec 7 21:57:21 EET 2012 arcade@limbo.xim.bz:/usr/obj/usr/src/sys/MINIMALx32 i386 Kernel source has tmpfs-nrbtree.1.patch, world is built with clang. -- Sphinx of black quartz judge my vow. From owner-freebsd-wireless@FreeBSD.ORG Sun Dec 9 07:50:00 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 347A88FB for ; Sun, 9 Dec 2012 07:50:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx1.freebsd.org (Postfix) with ESMTP id B76488FC0C for ; Sun, 9 Dec 2012 07:49:59 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id hm9so475190wib.13 for ; Sat, 08 Dec 2012 23:49:58 -0800 (PST) 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=f/AM5+i+dvyMAAU5JXFwln2uYaA2qxab+YGydMWpG9U=; b=pyl4X/s1vm6HNf5fHjcDushkx7vnY4jD9tEtOpxpdsRCEM006sHR8tlgxdn3EJILW5 7niQQ/yyWxMHBYGl2vCpoIwlK1yrJJC63cmHB0hFRLZhzIiskns11tMYQk3Hj46shlti xXD7T0uUVQRuVbkM80XFHophD7k0SnNAU8VJe1Pl9EwqHGU2rD9cHnl5M+HOJwwHkoJ0 Uw+cqUeUKN2x47OV3Xr/CHtGTZQHzZKBIZ+CaocAJPd6fjLVeP5zvDQ0vhQeq4bJrQbq SGUjlZEdLNv+FeqRUaD77lvDTHNeNtMLsHt8dZEFge6ENamcfJdXBWezKc6S6gbrJzft GIAw== MIME-Version: 1.0 Received: by 10.216.200.160 with SMTP id z32mr3758514wen.53.1355039398584; Sat, 08 Dec 2012 23:49:58 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Sat, 8 Dec 2012 23:49:58 -0800 (PST) In-Reply-To: <50C43FCA.3040900@gmail.com> References: <50C43FCA.3040900@gmail.com> Date: Sat, 8 Dec 2012 23:49:58 -0800 X-Google-Sender-Auth: EQSthI8gRUENFwfKSFbVdGLGLYk Message-ID: Subject: Re: rum0 based USB wireless adapter dumps core From: Adrian Chadd To: Volodymyr Kostyrko 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, 09 Dec 2012 07:50:00 -0000 Oo, someone else has seen this bug! I'm honestly not sure what's going on here. I think we can just disable that panic and ensure that we don't somehow end up with a stalled powersave queue. Adrian On 8 December 2012 23:37, Volodymyr Kostyrko wrote: > Hi all. > > I recently acquired another device. Upon creating simple access point my > machine starts to dump core: > > KDB: stack backtrace: > #0 0x83586132 at kdb_backtrace+0x52 > #1 0x835551fc at panic+0x1bc > #2 0x89ba96a2 at ieee80211_pwrsave+0x252 > #3 0x89ba44fe at ieee80211_start+0x40e > #4 0x8360a019 at if_transmit+0x129 > #5 0x8360bb47 at ether_output+0x5e7 > #6 0x836314e0 at ip_output+0xd70 > #7 0x8362e807 at ip_forward+0x3b7 > #8 0x8362e107 at ip_input+0x5d7 > #9 0x83610fd7 at netisr_dispatch_src+0xa7 > #10 0x83611370 at netisr_dispatch+0x20 > #11 0x8360c373 at ether_demux+0x133 > #12 0x8360c1e9 at ether_nh_input+0x329 > #13 0x83610fd7 at netisr_dispatch_src+0xa7 > #14 0x83611370 at netisr_dispatch+0x20 > #15 0x8360c5d1 at ether_input+0x21 > #16 0x896e6335 at ste_rxeof+0xe5 > #17 0x896e706e at ste_intr+0xae > Uptime: 54m35s > Physical memory: 1011 MB > > #0 doadump (textdump=-202975232) at pcpu.h:249 > 249 pcpu.h: No such file or directory. > in pcpu.h > (kgdb) #0 doadump (textdump=-202975232) at pcpu.h:249 > #1 0x83554dd1 in kern_reboot (howto=Variable "howto" is not available. > ) > at /usr/src/sys/kern/kern_shutdown.c:448 > #2 0x83555248 in panic (fmt=Unhandled dwarf expression opcode 0xfb > ) at /usr/src/sys/kern/kern_shutdown.c:636 > #3 0x89ba96a2 in ieee80211_pwrsave (ni=Cannot access memory at address 0x1 > ) > at /usr/src/sys/modules/wlan/../../net80211/ieee80211_power.c:387 > #4 0x89ba44fe in ieee80211_start (ifp=Variable "ifp" is not available. > ) > at /usr/src/sys/modules/wlan/../../net80211/ieee80211_output.c:284 > #5 0x8360a019 in if_transmit (ifp=Variable "ifp" is not available. > ) at /usr/src/sys/net/if.c:3354 > #6 0x8360bb47 in ether_output (ifp= > Abort trap (core dumped) > > Relevant output from messages: > > ugen0.2: at usbus0 > > rum0: on usbus0 > rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528 > > ieee80211_load_module: load the wlan_amrr module by hand for now. > wlan0: Ethernet address: 00:e0:4c:54:2b:5c > rum0: need to implement rum_update_mcast > Starting Network: rum0. > rum0: flags=8943 metric 0 > mtu 2290 > ether 00:e0:4c:54:2b:5c > nd6 options=21 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: running > > lock order reversal: > 1st 0x89c4e6c0 rum0_node_lock (rum0_node_lock) @ > /usr/src/sys/modules/wlan/../../net80211/ieee80211_node.c:1940 > 2nd 0x89c4d014 rum0_com_lock (rum0_com_lock) @ > /usr/src/sys/modules/wlan/../../net80211/ieee80211_power.c:295 > KDB: stack backtrace: > #0 0x83586132 at kdb_backtrace+0x52 > #1 0x8359a34e at witness_checkorder+0xc1e > #2 0x835411da at _mtx_lock_flags+0x7a > #3 0x89ba8f06 at ieee80211_set_tim+0x76 > #4 0x89ba0061 at node_age+0x61 > #5 0x89b9faf0 at ieee80211_node_timeout+0x1b0 > #6 0x8356955e at softclock+0x25e > #7 0x83528655 at intr_event_execute_handlers+0xc5 > #8 0x83528a32 at ithread_loop+0xe2 > #9 0x83525f4c at fork_exit+0x7c > #10 0x83783634 at fork_trampoline+0x8 > > rum0: device timeout > rum0: device timeout > rum0: at uhub0, port 1, addr 2 (disconnected) > > rum0: could not multi read MAC register: USB_ERR_TIMEOUT > Dec 8 23:03:53 limbo dhcpd: receive_packet failed on wlan0: Device not > configured > > rum0: could not multi read MAC register: USB_ERR_TIMEOUT > > lock order reversal: > 1st 0x87da6e28 if_addr_mtx (if_addr_mtx) @ /usr/src/sys/netinet/igmp.c:1710 > 2nd 0x83a25318 ifnet_rw (ifnet_rw) @ /usr/src/sys/net/if.c:238 > KDB: stack backtrace: > #0 0x83586132 at kdb_backtrace+0x52 > #1 0x8359a34e at witness_checkorder+0xc1e > #2 0x83553415 at _rw_rlock+0x75 > #3 0x83603e53 at ifnet_byindex+0x23 > #4 0x8361b5fe at igmp_intr+0x1e > #5 0x83610fd7 at netisr_dispatch_src+0xa7 > #6 0x83611370 at netisr_dispatch+0x20 > #7 0x8361e4f0 at igmp_v1v2_queue_report+0x190 > #8 0x8361d6a9 at igmp_fasttimo+0x549 > #9 0x835b4840 at pffasttimo+0x30 > #10 0x8356955e at softclock+0x25e > #11 0x83528655 at intr_event_execute_handlers+0xc5 > #12 0x83528a32 at ithread_loop+0xe2 > #13 0x83525f4c at fork_exit+0x7c > #14 0x83783634 at fork_trampoline+0x8 > lock order reversal: > 1st 0x87da6e28 if_addr_mtx (if_addr_mtx) @ /usr/src/sys/netinet/igmp.c:1710 > 2nd 0x83a257dc PFil hook read/write mutex (PFil hook read/write mutex) @ > /usr/src/sys/net/pfil.c:77 > KDB: stack backtrace: > #0 0x83586132 at kdb_backtrace+0x52 > #1 0x8359a34e at witness_checkorder+0xc1e > #2 0x83552885 at _rm_rlock_debug+0x85 > #3 0x836120ba at pfil_run_hooks+0x4a > #4 0x83630fc1 at ip_output+0x851 > #5 0x8361b8b8 at igmp_intr+0x2d8 > #6 0x83610fd7 at netisr_dispatch_src+0xa7 > #7 0x83611370 at netisr_dispatch+0x20 > #8 0x8361e4f0 at igmp_v1v2_queue_report+0x190 > #9 0x8361d6a9 at igmp_fasttimo+0x549 > #10 0x835b4840 at pffasttimo+0x30 > #11 0x8356955e at softclock+0x25e > #12 0x83528655 at intr_event_execute_handlers+0xc5 > #13 0x83528a32 at ithread_loop+0xe2 > #14 0x83525f4c at fork_exit+0x7c > #15 0x83783634 at fork_trampoline+0x8 > lock order reversal: > 1st 0x87da6e28 if_addr_mtx (if_addr_mtx) @ /usr/src/sys/netinet/igmp.c:1710 > 2nd 0x8965f2e8 ste0 (network driver) @ > /usr/src/sys/modules/ste/../../dev/ste/if_ste.c:1881 > KDB: stack backtrace: > #0 0x83586132 at kdb_backtrace+0x52 > #1 0x8359a34e at witness_checkorder+0xc1e > #2 0x835411da at _mtx_lock_flags+0x7a > #3 0x896e6f23 at ste_start+0x33 > #4 0x8360a019 at if_transmit+0x129 > #5 0x8360bb47 at ether_output+0x5e7 > #6 0x836314e0 at ip_output+0xd70 > #7 0x8361b8b8 at igmp_intr+0x2d8 > #8 0x83610fd7 at netisr_dispatch_src+0xa7 > #9 0x83611370 at netisr_dispatch+0x20 > #10 0x8361e4f0 at igmp_v1v2_queue_report+0x190 > #11 0x8361d6a9 at igmp_fasttimo+0x549 > #12 0x835b4840 at pffasttimo+0x30 > #13 0x8356955e at softclock+0x25e > #14 0x83528655 at intr_event_execute_handlers+0xc5 > #15 0x83528a32 at ithread_loop+0xe2 > #16 0x83525f4c at fork_exit+0x7c > #17 0x83783634 at fork_trampoline+0x8 > > rum0: could not multi write MAC register: USB_ERR_TIMEOUT > > rum0: on usbus0 > rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528 > ieee80211_load_module: load the wlan_amrr module by hand for now. > wlan0: Ethernet address: 00:e0:4c:54:2b:5c > > lock order reversal: > 1st 0x887d1778 rum0_scan_lock (rum0_scan_lock) @ > /usr/src/sys/modules/wlan/../../net80211/ieee80211_node.c:1937 > 2nd 0x887d0014 rum0_com_lock (rum0_com_lock) @ > /usr/src/sys/modules/wlan/../../net80211/ieee80211_node.c:2510 > KDB: stack backtrace: > #0 0x83586132 at kdb_backtrace+0x52 > #1 0x8359a34e at witness_checkorder+0xc1e > #2 0x835411da at _mtx_lock_flags+0x7a > #3 0x89ba1cd8 at ieee80211_node_leave+0x98 > #4 0x89b9f9b8 at ieee80211_node_timeout+0x78 > #5 0x8356955e at softclock+0x25e > #6 0x83528655 at intr_event_execute_handlers+0xc5 > #7 0x83528a32 at ithread_loop+0xe2 > #8 0x83525f4c at fork_exit+0x7c > #9 0x83783634 at fork_trampoline+0x8 > > panic: age -1 > cpuid = 0 > KDB: stack backtrace: > #0 0x83586132 at kdb_backtrace+0x52 > #1 0x835551fc at panic+0x1bc > #2 0x89ba96a2 at ieee80211_pwrsave+0x252 > #3 0x89ba44fe at ieee80211_start+0x40e > #4 0x8360a019 at if_transmit+0x129 > #5 0x8360bb47 at ether_output+0x5e7 > #6 0x836314e0 at ip_output+0xd70 > #7 0x8362e807 at ip_forward+0x3b7 > #8 0x8362e107 at ip_input+0x5d7 > #9 0x83610fd7 at netisr_dispatch_src+0xa7 > #10 0x83611370 at netisr_dispatch+0x20 > #11 0x8360c373 at ether_demux+0x133 > #12 0x8360c1e9 at ether_nh_input+0x329 > #13 0x83610fd7 at netisr_dispatch_src+0xa7 > #14 0x83611370 at netisr_dispatch+0x20 > #15 0x8360c5d1 at ether_input+0x21 > #16 0x896e6335 at ste_rxeof+0xe5 > #17 0x896e706e at ste_intr+0xae > >> uname -a > FreeBSD limbo.xim.bz 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1 r243673M: Fri > Dec 7 21:57:21 EET 2012 arcade@limbo.xim.bz:/usr/obj/usr/src/sys/MINIMALx32 > i386 > > Kernel source has tmpfs-nrbtree.1.patch, world is built with clang. > > -- > Sphinx of black quartz judge my vow. > _______________________________________________ > 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 Dec 9 08:43:07 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 03051E2B for ; Sun, 9 Dec 2012 08:43:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 60AFE8FC12 for ; Sun, 9 Dec 2012 08:43:05 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id dr1so406801wgb.1 for ; Sun, 09 Dec 2012 00:42:59 -0800 (PST) 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=luOMbILVXP5qb1DytG5rmLS/O9bKJMQuGO6C+IekRWI=; b=DIsIMuJCziuJaCEHivGPxS6wLY5D65FKANJIfIyQ8K+wb65gHG0Bs4ZulNUGm2/aZu VsYkoQlS4G80H0FLsrKdYhrjQlTMiEi2bOP0fgZcDj04ffYZgnXzN5jEBYiJkvdGmMPc 8SgOh+Xcuhn87uIH8iIPd02azXaZ0XsG7Y95aSF6jHSMXRWQnrJnXbi5szRLS0CiRJ76 BlR/QiQeYCkCBYZ9vuWUWYZajfzAd9ZNmsyNoYSk4xJmEtmgqmVibKtoZkwKpxjSi4Z3 WL68CQWbMCXg0OXwcF76bhQa8nXy6AzQdh4iVTq1wyiCi0gk2Ocu2FvLTXlCROxiUwBf lwbA== MIME-Version: 1.0 Received: by 10.180.78.1 with SMTP id x1mr5609272wiw.17.1355042579504; Sun, 09 Dec 2012 00:42:59 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Sun, 9 Dec 2012 00:42:59 -0800 (PST) Date: Sun, 9 Dec 2012 00:42:59 -0800 X-Google-Sender-Auth: CkMmmwxt5ThIyqZRFv0qvz6R5iQ Message-ID: Subject: TX path serialisation notes 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: Sun, 09 Dec 2012 08:43:07 -0000 Hi all, Here's a brief(ish) braindump of my 802.11 TX path notes: http://wiki.freebsd.org/AdrianChadd/WifiTxNotes I'm open to the beginnings of suggesting how we can address this all before 10.0 ships and we end up having to introduce ABI breaking fixes. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Dec 9 17:19:33 2012 Return-Path: Delivered-To: freebsd-wireless@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17EAD6DE; Sun, 9 Dec 2012 17:19:33 +0000 (UTC) (envelope-from linimon@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 D87758FC12; Sun, 9 Dec 2012 17:19:32 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qB9HJWDg097367; Sun, 9 Dec 2012 17:19:32 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qB9HJWOW097363; Sun, 9 Dec 2012 17:19:32 GMT (envelope-from linimon) Date: Sun, 9 Dec 2012 17:19:32 GMT Message-Id: <201212091719.qB9HJWOW097363@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: kern/174276: [ath] if_ath memory modified after free 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, 09 Dec 2012 17:19:33 -0000 Old Synopsis: if_ath memory modified after free New Synopsis: [ath] if_ath memory modified after free Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: linimon Responsible-Changed-When: Sun Dec 9 17:19:18 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=174276 From owner-freebsd-wireless@FreeBSD.ORG Sun Dec 9 23:06:04 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 510FFF25 for ; Sun, 9 Dec 2012 23:06:04 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx1.freebsd.org (Postfix) with ESMTP id D5B278FC08 for ; Sun, 9 Dec 2012 23:06:03 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id hm9so759319wib.13 for ; Sun, 09 Dec 2012 15:05:57 -0800 (PST) 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=A9xBKh6eaT0Vmazhc1ZvQ2loyCA6OLVnaflT0DGdJnw=; b=yt8qqeEqJTwDBKYSkMI8ZIZGby90WTCfnpIiyhyw4leKttWKPWWXugb7W6iKGEi+6W 8dnE21aeIzmbOS8vqAg3oZFs1khW7sG+3vKwXJUTAXrUUbovVa+CVYZBK8eJ/qDzxnYI eUE4nGdbhV/G8sqcpXp9uRdP0k85/kNjnHm+g3df0DQ0pFWjkM3Rf2cy0NEcUvC4S6/f VvNweANkmO25XtPcUgb2DYonAOqWmvdQuS99PV7KdevMB4zBgMbE5myvXvvT2/5bhtzI QTyf1n/obkfb6nTQPlVVwvS17qM2jk+n8wRxHK7ZwaJ1fCzyNbLuPUN+QgYEARDUIvxL TRCA== MIME-Version: 1.0 Received: by 10.216.139.140 with SMTP id c12mr4785705wej.46.1355094357607; Sun, 09 Dec 2012 15:05:57 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Sun, 9 Dec 2012 15:05:57 -0800 (PST) In-Reply-To: <201205181133.57403.jhugo@meraka.csir.co.za> References: <201205181133.57403.jhugo@meraka.csir.co.za> Date: Sun, 9 Dec 2012 15:05:57 -0800 X-Google-Sender-Auth: 2MncjpugENqFvEPyu0I4Qx9pq0A Message-ID: Subject: Re: [ath] Degraded throughput - adhoc mode From: Adrian Chadd To: Johann Hugo 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, 09 Dec 2012 23:06:04 -0000 On 18 May 2012 02:33, Johann Hugo wrote: > Hi > > We have an outdoor wifi mesh network with various atheros adapters configured > in adhoc mode. (FreeBSD-9) Hi, Please try -HEAD. I _think_ I've handled the WME configuration side of things right in IBSS mode. The problem with IBSS is that nodes are automatically created whenever frames are received; then a beacon frame will update the current configuration. So if you create an IBSS STA node based on receiving a data frame (and not a beacon) then it may create things with no WME config, and it'll just default to the default (non-aggressive mode) WME parameters. Now, my -HEAD patch may actually be incorrect, because it changes the global WME config for that particular device; there's no real per-node WME configuration unfortunately. I don't have a very large IBSS setup to test how this works in practice and I will admit I haven't sat down and really tried to understand / implement IBSS stuff in any useful fashion. But it did come up and it did parse the WME IE correctly. So just make sure you configure the WMM parameters on both sides to have aggressive BE parameters (aifs 2, cwmin4, cwmax 10, txop 64) and then reassociate. I may end up reverting the WME IE parsing for now and just requiring people statically configure the WME parameters on each node. I'll experiment some more and then commit it to -HEAD. But the ath IE parsing works and I now see fast-frames used in adhoc mode, which will bump the throughput up a bit on the non-11n NICs. Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Dec 9 23:10:36 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9DCCDF97 for ; Sun, 9 Dec 2012 23:10:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by mx1.freebsd.org (Postfix) with ESMTP id 2E7168FC13 for ; Sun, 9 Dec 2012 23:10:35 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id 12so1404163wgh.31 for ; Sun, 09 Dec 2012 15:10:35 -0800 (PST) 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=4zaT07xxBIcXoIfAOdVadBXgyot1jjLLRtJCHA0JhO0=; b=dBnrxJjyJJfcFYcuowS9amx31CRk+Ayjuo+jJ5dXK8bj+Ih89wcJ1y0ysi0GBCqmj2 fza3fCeL5gR8YPa4JCdNx+UMXiwRMNwh8BHQjOiaZxgH657oJVs0SVmEx8zUi9Uc8iSt h1AzieV6ghI8P3rLYsuX8HkKkDfoTdIYFt8pSrHN7XRGfrBd91WcJx16IHjvYeDJal+M c5zRBtKy96Dw++W+UeEWlPmmSuIn0TVUdJbjtkIa5YEVQRxfFZysopJxy6Y/jd9jJ4b+ A6ohLr44tafe2AimhK7qTuEWjKkfS0VEDOWgx+IpaiFnFxf+zo9wuhVhj4i8O+p/CS6l pdIg== MIME-Version: 1.0 Received: by 10.180.104.69 with SMTP id gc5mr7875703wib.13.1355094634954; Sun, 09 Dec 2012 15:10:34 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Sun, 9 Dec 2012 15:10:34 -0800 (PST) In-Reply-To: References: <201205181133.57403.jhugo@meraka.csir.co.za> Date: Sun, 9 Dec 2012 15:10:34 -0800 X-Google-Sender-Auth: a1GquTv5AFMBLcTNAMlP4kVpBXg Message-ID: Subject: Re: [ath] Degraded throughput - adhoc mode From: Adrian Chadd To: Johann Hugo 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, 09 Dec 2012 23:10:36 -0000 Hm, there's some odd behaviour. If I configure the WME parameters before I bring the interface up, bringing it up overrides the parameters. I'll do some further digging in a few minutes. Something tells me the aggressive mode logic is overriding the configured WME parameters. Grrrr! Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Dec 10 00:18:52 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1D860E73 for ; Mon, 10 Dec 2012 00:18:52 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by mx1.freebsd.org (Postfix) with ESMTP id 9DE038FC08 for ; Mon, 10 Dec 2012 00:18:51 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id hj13so761529wib.13 for ; Sun, 09 Dec 2012 16:18:45 -0800 (PST) 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=6V+mse0q0kAfBYefQCKGDCvPnOMEm8rY2JBFVwHUGJA=; b=bqL0wkF5N+V4QijvweR3/yYsNnJgDeblU/m6GswHP052SVioGK8MO0tI7GzWs1EzWG Qu5iqVNHMY9X5wrKSJjsMseEodF2CsKJ2RaeIkU2nSumIrLxwH7UWkHpkL5hQlMIlxRp 1ttXiHKQfZYRdfuu8kjUoyg0TFq057ZA9pJSz4+51vrNSc+gFgRWc7OssiOxYbMEHciN CtJMZR6AUG7AVwAlXrqREJh+c3igf+H41PwieiCyzFWgb8pZiiK7DvPkcYqz1Xqh2TOY k7knI+5VTodeIfK9B00uYhzntLtbYOPrv3mq6raqThK1MxXWhuzxIB26mYDDy6rsIP2x VJfw== MIME-Version: 1.0 Received: by 10.180.97.137 with SMTP id ea9mr8020336wib.13.1355098725205; Sun, 09 Dec 2012 16:18:45 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Sun, 9 Dec 2012 16:18:45 -0800 (PST) In-Reply-To: References: <201205181133.57403.jhugo@meraka.csir.co.za> Date: Sun, 9 Dec 2012 16:18:45 -0800 X-Google-Sender-Auth: z0VTEhNLrubqsRGJhCpV2_yA29s Message-ID: Subject: Re: [ath] Degraded throughput - adhoc mode From: Adrian Chadd To: Johann Hugo 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: Mon, 10 Dec 2012 00:18:52 -0000 Ok, I've just taught the aggressive mode logic about IBSS. It's pretty dirty - I may cop some hate for enabling aggressive mode for IBSS as each IBSS node doesn't know about the overall voice/video data rates. That's how it works in AP mode - the AP tracks the traffic _it_ is sending/receiving and changes its configuration based on that. It can't take into account overlapping BSSes. In any case, can you just try that out in your lab and let me know how it goes? It's easy enough for me to disable the aggressive mode programming for IBSS mode once we better understand what's going on with the IBSS + WME programming. Thanks for being so patient with this! Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Dec 10 08:22:30 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1AC25925 for ; Mon, 10 Dec 2012 08:22:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mx1.freebsd.org (Postfix) with ESMTP id 9DAF58FC15 for ; Mon, 10 Dec 2012 08:22:29 +0000 (UTC) Received: by mail-wi0-f170.google.com with SMTP id hq7so946679wib.1 for ; Mon, 10 Dec 2012 00:22:22 -0800 (PST) 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=esFy/K3pwhGdJlNjvYIynnvIVywH5j2O1w4CKvt49X4=; b=uir31a9vcAZ++PIlf10U/yuP7wyEzDdYwtNDrXU6BDhi9xf/tnWG2XNJz6YzR8RWE8 UWvqG8OGjMgJ41pfjj3zkup6sJTG52v+DtnmFGM37EeDsgaFHlP0TDTVhFvvG/ZdBNiY BFBfvWa/ZLJ4uL2zzbqwFrvZNMDLq0UKIpZTA5gcC33Xi1lriT3opl2ptVz/90NEBOud 9+fKAcCQvf6Rv6tPz+kRzO1E1zob2/0Yv6EUQQ5YjDVrvqQRj/Wt3m1CPnx/7gioO0xF nzDCPPJuCK5n476lxMLTMPQVwJhDDprLaFVtzUjvxZsKZX+dS4JVrwUzqrfidkLZAftq cacQ== MIME-Version: 1.0 Received: by 10.180.102.234 with SMTP id fr10mr9180972wib.17.1355127742779; Mon, 10 Dec 2012 00:22:22 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Mon, 10 Dec 2012 00:22:22 -0800 (PST) In-Reply-To: <201210180934.48741.jhugo@meraka.csir.co.za> References: <201210180934.48741.jhugo@meraka.csir.co.za> Date: Mon, 10 Dec 2012 00:22:22 -0800 X-Google-Sender-Auth: WKkpQjgnMTjABbt6vY8q8MSmSpU Message-ID: Subject: Re: 11n in adhoc mode From: Adrian Chadd To: Johann Hugo 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: Mon, 10 Dec 2012 08:22:30 -0000 Ok, I've started digging into this a bit more. I need to get 11n adhoc working so I can get 11n ahdemo working, so we can actually do 11n TDMA at some point in the near future. There's a whole lot of missing stuff: * ieee80211_add_neighbor() and ieee80211_init_neighbor() don't know about HT at all; they don't populate the HT IEs or 11n rates; * when scanning and choosing a channel to create a BSS on, there are two things: + if it doesn't find an IBSS, it creates one + if it doesn't find an IBSS, it joins that IBSS initially, via whatever is in the scan cache, using the scan cache channel results. Now, I fixed the primary so it does correctly populate the HTINFO/HTCAP IEs; so now the IBSS 11n beaconing does indeed include the TX/RX MCS configuration necessary to do HT/MCS. But the second is the problem - namely, it looks in the scan cache, selects the matched entry (that used a legacy channel, as scanning is done using legacy channels!) then it just calls ieee80211_sta_join() using that. So it always creates a non-HT channel configuration and associates as a non-HT node. Now, if I change adhoc_pick_bss() to adjust the channel to be a HT channel before it goes off and calls ieee80211_sta_join(), it will successfully setup the channel to be an 11n channel and it'll do MCS rates with an 11n peer fine. (traffic throughput sucks and panics though; so it's not all smooth sailing here.) But that raises a big problem: If the first node that a new IBSS device sees is non-11n, will it just assume the BSS is legacy, or will it magically promote itself to 11n/ht20 or 11n/ht40 and continue along merrily? It'd be nice to figure out what the behaviour there should be. Anyway. I'm making a little progress. I'll see if I can figure out why I'm getting panics and crappy throughput when doing traffic tests - I bet the adhoc RX and TX data path doesn't have some 11n related fixes in there and it's messing things up. Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Dec 10 09:59:56 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A46D144; Mon, 10 Dec 2012 09:59:56 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5D4138FC12; Mon, 10 Dec 2012 09:59:56 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi5so1937814pad.13 for ; Mon, 10 Dec 2012 01:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=f6LRYGjiGbflvWZl29Pwe2KQQ67Hpy6bUujkIh9vd34=; b=tkqcPb6EaIefIamWpWAtqFa8mrWRAQ/zub36qzq8w+3SGSyAPC7jRHczg0Dvy+1Yfa X3AM059ywPs3WNR9iSBVX0Q3OdVzDtTB+FuzwY28cia0kmSD3hl0/mM0d1Sqib5FnrbU pm/r1tsCCxRADg8GTYkpLiceOXd/hnpXMDQSUM8ZqkoQtv2kN2+Cu10D/mrm8bny7kYn pGpWLdBJ7oKPXflA+n30kFRXF+4h5F4Bie7o/Xf/B+W3v4DBrJ3emC9W17jjlzJPbSG3 obEMCC85S1tfR11Y9Cq42pFHQZ174FitMgFE092OyiZ/Er+DCnNnM6fxaE51ya9boGW+ Jtag== Received: by 10.68.237.6 with SMTP id uy6mr37192334pbc.147.1355133595787; Mon, 10 Dec 2012 01:59:55 -0800 (PST) Received: from [192.168.1.129] ([91.196.229.122]) by mx.google.com with ESMTPS id sk1sm11609990pbc.0.2012.12.10.01.59.53 (version=SSLv3 cipher=OTHER); Mon, 10 Dec 2012 01:59:54 -0800 (PST) Message-ID: <50C5B297.4000201@gmail.com> Date: Mon, 10 Dec 2012 11:59:51 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20100101 Firefox/17.0 SeaMonkey/2.14.1 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: rum0 based USB wireless adapter dumps core References: <50C43FCA.3040900@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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, 10 Dec 2012 09:59:56 -0000 09.12.2012 09:49, Adrian Chadd: > Oo, someone else has seen this bug! > > I'm honestly not sure what's going on here. I think we can just > disable that panic and ensure that we don't somehow end up with a > stalled powersave queue. The one thing which is just weird is: ieee80211_load_module: load the wlan_amrr module by hand for now. When I added this module to kld_list machine turns stable. At least I can't crash it anymore yet. -- Sphinx of black quartz, judge my vow. From owner-freebsd-wireless@FreeBSD.ORG Mon Dec 10 10:50:26 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E0B38F9 for ; Mon, 10 Dec 2012 10:50:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 16B288FC15 for ; Mon, 10 Dec 2012 10:50:25 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id u54so1421170wey.13 for ; Mon, 10 Dec 2012 02:50:25 -0800 (PST) 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=K3/95B6mmBpFeldM8eQ5rg9rGU2ZLCvgwnAHaxF+0jY=; b=kbdACxRgm/FndqOOcBto4wyB7X8QQ+UFdqvcJb8BpuNEWCYZwwYKHeKAuSmW4jDe8e jRn1e4aa3O3pYFuHdcQTRInBHtH0BisRHizSYuNxQZbK+ExY8AiwsS4DDg1/90XWSsNs hpPq4kjZKlIRmcr50xyUoo+DWdSaEu+C0LKziUMykY/1NpjtHjdj0z8cXo1sQ8hbSIUl ZeL7XEGBe8iszPCRgn1ufijqtgZEBAz9MGw/6DubH0+GgIqXwG8xEVSd8SmQOvj+kRrk FIl4VM6OrXmVE+Un1ydx4AHhUATHjJuY5uP2nDuaeTBhY0/zyt5wYv0sGXQu2ZXN+8Lz uA8Q== MIME-Version: 1.0 Received: by 10.180.103.106 with SMTP id fv10mr9885011wib.19.1355136625043; Mon, 10 Dec 2012 02:50:25 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Mon, 10 Dec 2012 02:50:24 -0800 (PST) In-Reply-To: References: <201210180934.48741.jhugo@meraka.csir.co.za> Date: Mon, 10 Dec 2012 02:50:24 -0800 X-Google-Sender-Auth: 92F36AWOgoWUFmvKreqs6Ubh9Bs Message-ID: Subject: Re: 11n in adhoc mode From: Adrian Chadd To: Johann Hugo 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: Mon, 10 Dec 2012 10:50:26 -0000 Ok, wow. I think I finally understand the level of "huh?" going on here. When a new BSS is created, everything now works out great. It creates a BSS, the channel is promoted to 11n correctly, it gets the 11n IE's populated, etc. When you're joining a BSS however, it doesn't do any of this. adhoc_pick_bss() calls ieee80211_sta_join() to the BSS, which populates a vap node to that peer with a very, very bare minimum config. There's no HT info there at all. But since it's done the basic node setup, the normal discovery path (ie, BSS RX, BSS beacon RX) doesn't see this particular node as a 'new' node. Now, I hacked up the HT rate and node setup into adhoc_pick_bss() to setup the BSS node like this and it works; enough to have both sides setup the MCS rate tables and negotiate 11n right. They don't successfully negotiate ADDBA, but that's some funny race crap I'll deal with later (I'm doing it all on a single laptop with two ath NICs, using vimage. Yes, evil.) Anyway. I think I'm getting slightly closer to making 11n adhoc mode work. I may need some help (Bernhard?) on figuring out a cleaner way to "join" an existing BSS, instead of how it's currently done. Also, Bernhard - why don't we do all the IE setup in ieee80211_sta_join() ? Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Dec 10 11:06:54 2012 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 455DAF9E for ; Mon, 10 Dec 2012 11:06:54 +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 296D88FC1D for ; Mon, 10 Dec 2012 11:06:54 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBAB6s53064445 for ; Mon, 10 Dec 2012 11:06:54 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBAB6rWc064443 for freebsd-wireless@FreeBSD.org; Mon, 10 Dec 2012 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 10 Dec 2012 11:06:53 GMT Message-Id: <201212101106.qBAB6rWc064443@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, 10 Dec 2012 11:06:54 -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/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/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/170904 wireless [ath] ath driver: configure related parameters when ra 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 p bin/137484 wireless [patch] Integer overflow in wpa_supplicant(8) base64 e 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 141 problems total. From owner-freebsd-wireless@FreeBSD.ORG Tue Dec 11 09:19:53 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1A5E95C4 for ; Tue, 11 Dec 2012 09:19:53 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8BA6B8FC0C for ; Tue, 11 Dec 2012 09:19:52 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id u54so1994994wey.13 for ; Tue, 11 Dec 2012 01:19:51 -0800 (PST) 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=l6fn71eAu4YznaeUt886VZSj2DKtXgDyWXFHIah5mY8=; b=R5BktFbLROiFjPnsNiIzBfUvICNxfkcFKG7wl99n5zEs6TQhlaP3YC4OsoqFDGec9D tIWRHgC28pyr9/vIhEbwXt9JCXrtahpShM2A7xuYDW3n8nxmETuSm/EwB1WouYBa4QwT U0l2KZFArfeqgay9p3x5rdGmLEaGZ+4g26SVYr6nS3hPV2tOCbkaOtoZdJfgOcom7CQT 65lVX2n0kF+MOvb9VHwsXWe65NFDLmH+eAlspDvykOpbYL3xzkA27gb4yf6VKALrmT76 e1OfRWzI1hfknIVKX7EZ1Duu95HVZuSNZGMJ3dSjG0tM/nKf8kkyl+86dLaw5C/Nc//O 3JhQ== MIME-Version: 1.0 Received: by 10.216.85.211 with SMTP id u61mr6674724wee.212.1355217591216; Tue, 11 Dec 2012 01:19:51 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Tue, 11 Dec 2012 01:19:51 -0800 (PST) In-Reply-To: References: <201210180934.48741.jhugo@meraka.csir.co.za> Date: Tue, 11 Dec 2012 01:19:51 -0800 X-Google-Sender-Auth: MxFxQ0kR7dqM_-xjbOVYsm0hzp8 Message-ID: Subject: Re: 11n in adhoc mode From: Adrian Chadd To: Johann Hugo 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: Tue, 11 Dec 2012 09:19:53 -0000 .. so now I have 11n IBSS working, but the performance is pretty shocking. I bet there's some timers that are just not programmed correctly. I see massive numbers of long retries and CRC errors. In any case, there are a few odd things out: * ieee80211_ies_expand() doesn't parse HTINFO, only HTCAP. I don't know why - Bernhard, any ideas? * Taught ieee80211_sta_join() about the HT setup, so it sets up HT information based on the probe response. * The problem here is that the STA code sets up the HT information based on the association response, rather than the probe response; but there's no association request/response with IBSS. So if you don't capture it during probe response, you're short of luck; * .. and when doing an initial scan, the probe response goes to the scan module; it doesn't make it through to the normal probe response code that follows and thus it can't possibly be used to upgrade things. * Then some ancillary stuff - mostly processing beacon frames from peers and handling HT IE changes correctly. So with this, I have what looks like a working 802.11n IBSS - at least there are MCS rates negotiated on both sides. I don't like it one bit though; I'd like to sit down with Bernhard and anyone else who knows net80211 well enough to see whether things are "right". But.. it seems quite plausible to make work now. I don't think I have the time / brain cycles to debug some of the more stranger behaviour (and I can't ignore that the driver/HAL is missing a whole heap of 11n chipset IBSS fixes, let along the IBSS data path needing some TX and RX AMPDU fixes) but I'll definitely see if I can just get the basics up and running. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Dec 11 20:46:54 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D91A669E for ; Tue, 11 Dec 2012 20:46:54 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm29.bullet.mail.bf1.yahoo.com (nm29.bullet.mail.bf1.yahoo.com [98.139.212.188]) by mx1.freebsd.org (Postfix) with ESMTP id 868868FC1C for ; Tue, 11 Dec 2012 20:46:54 +0000 (UTC) Received: from [98.139.212.148] by nm29.bullet.mail.bf1.yahoo.com with NNFMP; 11 Dec 2012 20:46:46 -0000 Received: from [98.139.211.198] by tm5.bullet.mail.bf1.yahoo.com with NNFMP; 11 Dec 2012 20:46:46 -0000 Received: from [127.0.0.1] by smtp207.mail.bf1.yahoo.com with NNFMP; 11 Dec 2012 20:46:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1355258806; bh=YtNz4BY7bjgEZ3xUxR0XocKzBiF5DzamsII8uoKG75I=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=365i+70DoTSVJ3eulp4GHezy9KAoZSIqb+Vl858Dz7a7l8UyxJNlhQn0VkoCA2xnj92QOUY1ABa3A0C0yevwZa4wUUUfokpfrQPWtVC2DB2iGoTAhY9AbCy6NcO0uINssyh4BgJJVTMaUIwG5zKz3W3nOMGCeUDu9woBBy7nZeE= X-Yahoo-Newman-Id: 870703.87651.bm@smtp207.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: AsZuS6QVM1kaI_mp1KaUiV0CeQSzDqgNmXnxNxlMlaqYepX vK7ANE57ZlQ1IXG8DREmNMIsfepfQoVjf3d9JF9PmP9uyN8nyide_DCgjnjr DWbR6cvIC2kaM0y5xOT7.u9EwPT.MxpCkmPUynbKXmkoBu8gXRTXIdm6Tr86 ZOLOj4EdJeQhKPWouu1dtPKXobcV6w2gjvlz5JAK34LZEgW.MCzWlaEt.ZlD vL5UOUwW97J_o73Zaavhv529LnpbLbEE5vECC_wd109LncrMX1CnoQ4HJB0i bDH_nAcaaf0nrZ20F5Z2fgjIy6o0b3AeNg8J.vrqcaWId8HJBNUSzqTUWXFK Zv6gqYSyXN0ePgTzXXebFwQg7KMY3hs2gwrEX0_ldrol9_u.q.IxIOi8230l oAGUOLG2vJtVSp4O6zL_BpacLXlxpXAwXa..GFpjOWsL0wQEv3SNOz_ZEjVy DV30Nge3r8Kiw.ee.AQ-- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vb0-f54.google.com (moonlightakkiy@209.85.212.54 with plain) by smtp207.mail.bf1.yahoo.com with SMTP; 11 Dec 2012 12:46:46 -0800 PST Received: by mail-vb0-f54.google.com with SMTP id l1so5357172vba.13 for ; Tue, 11 Dec 2012 12:46:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.115.19 with SMTP id g19mr12042289vcq.69.1355258806457; Tue, 11 Dec 2012 12:46:46 -0800 (PST) Received: by 10.58.182.72 with HTTP; Tue, 11 Dec 2012 12:46:46 -0800 (PST) Date: Tue, 11 Dec 2012 13:46:46 -0700 Message-ID: Subject: Re: 11n in adhoc mode From: PseudoCylon To: Adrian Chadd , Johann Hugo 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: Tue, 11 Dec 2012 20:46:55 -0000 > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 11 Dec 2012 01:19:51 -0800 > From: Adrian Chadd > To: Johann Hugo > Cc: freebsd-wireless@freebsd.org > Subject: Re: 11n in adhoc mode > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > .. so now I have 11n IBSS working, but the performance is pretty > shocking. I bet there's some timers that are just not programmed > correctly. > I see massive numbers of long retries and CRC errors. Are protection modes set correctly on both ends? This happens when each end uses different prot mode. > * Then some ancillary stuff - mostly processing beacon frames from > peers and handling HT IE changes correctly. Because this is an adhoc mode issue, this may not apply. But, this is what I have been seeing. Yet another ancillary stuff. Currently, protection mode is updated though ieee80211_htprot_update() (finally iv_update_beacon() is called), and it is called only in hostap mode. When occupancy changes, an ap updates beacon and tells driver to updated the prot mode. Even though, other ends receives updated beacon, ieee80211 stack doesn't tell driver to update the mode (other than in ap mode). As the result, those nics run on different prot modes. When operating with mismatched mode, retry and crc error counts skyrocket. I think we need to add ic_update_prot(). AK From owner-freebsd-wireless@FreeBSD.ORG Tue Dec 11 21:06:58 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 50968E24 for ; Tue, 11 Dec 2012 21:06:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mx1.freebsd.org (Postfix) with ESMTP id CC2A78FC14 for ; Tue, 11 Dec 2012 21:06:57 +0000 (UTC) Received: by mail-wi0-f170.google.com with SMTP id hq7so2428870wib.1 for ; Tue, 11 Dec 2012 13:06:56 -0800 (PST) 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=1htEXF7fUpzzn5yidvDMteW0wjJ0OxMSd17WeRDr+54=; b=H+kAiZP7tEg1SN4eCZEqWl92lH8Cz4++ICjde5luO3lH/ZW46X9Bl32vFeUQn8M7Vl 8YgbYW4WWYE66mkDqT5M+ueVdvhZKlKR/Hwj4k9VsAIkInbPdmgz176Uefkvql3iwjgT 3SKFrOWzwLHmEZxnKLTuCNN33xjfX6dgXfx63yIDZ7BjkPUhZKPWMOmU4gyufX2azv89 uZCMFtVdug1iVsj0eD2au6vHmqVKUCAYiQGzxNGm53K1Am3wiytS+BSKYC84Ufc8LXIt MsjbTe2xJ/KLEPG0OwkjS0esTWX9vHMo7SvlGtcvXeHI1tLmQ5oUBxu7ZKptyI0WSQE1 s+4w== MIME-Version: 1.0 Received: by 10.180.102.101 with SMTP id fn5mr18972264wib.19.1355260016664; Tue, 11 Dec 2012 13:06:56 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Tue, 11 Dec 2012 13:06:56 -0800 (PST) In-Reply-To: References: Date: Tue, 11 Dec 2012 13:06:56 -0800 X-Google-Sender-Auth: Bq9tNHC9TCs7dpYDyJT_I2kFIyw Message-ID: Subject: Re: 11n in adhoc mode From: Adrian Chadd To: PseudoCylon 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: Tue, 11 Dec 2012 21:06:58 -0000 Hm, you may be right; but I disabled HT protection entirely and stuck it on a very quiet channel. It's possible both ends were colliding with each other though. I did add some HT update code to the adhoc beacon processing, though. It's just not entirely clear how to handle that given the nature of IBSS - ie, every peer may have some different idea of what the protection mode is. It's possible that it should be learnt once when you join the BSS, much like how the adhoc scan pick code checks for a few things matching before it joins that BSS. Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Dec 12 09:58:40 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 058DDD23 for ; Wed, 12 Dec 2012 09:58:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 844978FC0C for ; Wed, 12 Dec 2012 09:58:39 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id u54so207143wey.13 for ; Wed, 12 Dec 2012 01:58:38 -0800 (PST) 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=CVPQoNtIejeIc7tmbaQXUwuNsY8TBefcrFx38du2SVY=; b=fVBmobW1Q2lEO40xbW/0Y4gpGAUC/DoW2KK8G0EVl3SrjUhhwQLQBlpEVSFUAacmQS koMgeFtrHiCvZCfEBHRkJ757UYroPSXnwgoZ4EV7bAzTT+Xv6rsFLtllgdFFuign1PBV klBcwbVUFA/iIitlAWJU9E53pIvKigd9+sUHIqFgHQ3KSbxwGAVZCcbB/nps+8QkAJ+0 vP87jppQzxSJ1vPqktqsXqVB4MsKyne1RccEGZrBLcgKZ8RSQxcYt7xw9GHgDaNN48mI raFPsU74euZCamDjSNewr9HPE4QlQaa6mEXljTqr23ubqdweJ8N6b33Uwj/c/OIgIOoW k+FA== MIME-Version: 1.0 Received: by 10.194.120.132 with SMTP id lc4mr799708wjb.59.1355306318540; Wed, 12 Dec 2012 01:58:38 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Wed, 12 Dec 2012 01:58:38 -0800 (PST) In-Reply-To: References: Date: Wed, 12 Dec 2012 01:58:38 -0800 X-Google-Sender-Auth: jQNk9QdtEMUEerRbG6brTYHnI5Q Message-ID: Subject: Re: 11n in adhoc mode From: Adrian Chadd To: PseudoCylon 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, 12 Dec 2012 09:58:40 -0000 Here's what I have trimmed this down to so far: http://people.freebsd.org/~adrian/ath/20121212-11n-ibss-and-other-stuff-3.diff Please disable ampdu for now (ifconfig wlanX -ampdu) as it just plain doesn't work. I'll figure out why once I figure out the cleanest way to get this 11n IBSS stuff working. I've tested this between two 11n nodes and a third 11a only node. So far it works out ok. But it obviously could do with a lot more thorough testing. I'd appreciate feedback! Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Dec 12 10:12:08 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2696E5 for ; Wed, 12 Dec 2012 10:12:08 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by mx1.freebsd.org (Postfix) with ESMTP id 7D62D8FC08 for ; Wed, 12 Dec 2012 10:12:07 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id hj13so346475wib.13 for ; Wed, 12 Dec 2012 02:12:01 -0800 (PST) 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=byjDZNgnqVjiKOL9iYmjAMJwRLuHMs/UXZulzu1cE8U=; b=kcgynM4ytKlwyBSvmjjlov+isGXuHuQONFqJRxnS+eeVVWQ2X5Ag/MuHXDyvndnMhm F1W5RYm9EdDUBk5Ii14iKozecYfUIH2YfqsjZYSmfnBQRU3U+7qDZe9Xh4gyWbbPV0w3 /OwkavSQOTSsf8SUNisECINoXUwCUQZIz+NoDJFUHNE0LR66i9cbW5UyGDNYlfGhy4Yb blXeKpaJAtAaLZ85yIFe0rGXM/Zo9E7xTSJVrDed9rtr5ArtQKZ17jqJt81mt7aRUusU c7MkUOpzPft5QKOviH315NyLj3UiU9/cP3ICAKHvjCSY7Ori1rmRh9uSB1aXawecH/xW YlhQ== MIME-Version: 1.0 Received: by 10.194.93.40 with SMTP id cr8mr885602wjb.16.1355307121222; Wed, 12 Dec 2012 02:12:01 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Wed, 12 Dec 2012 02:12:01 -0800 (PST) In-Reply-To: References: Date: Wed, 12 Dec 2012 02:12:01 -0800 X-Google-Sender-Auth: NbxpwHGZhDsWiyvwBIZnJaFhLzU Message-ID: Subject: Re: 11n in adhoc mode From: Adrian Chadd To: PseudoCylon 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, 12 Dec 2012 10:12:09 -0000 .. hey, scratch that. 11n aggregation works in IBSS mode with my patch, at least on ath(4). I bet there's all kinds of weird subtle crap going on that we need to fix, but the basics are working. Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Dec 12 12:39:30 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B5D5CB9; Wed, 12 Dec 2012 12:39:30 +0000 (UTC) (envelope-from jhugo@meraka.csir.co.za) Received: from marge.meraka.csir.co.za (marge.meraka.csir.co.za [146.64.28.1]) by mx1.freebsd.org (Postfix) with ESMTP id 96DFA8FC08; Wed, 12 Dec 2012 12:39:27 +0000 (UTC) Received: from jeep.localnet (unknown [IPv6:2001:4200:7000:3:223:aeff:fea7:a3c2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by marge.meraka.csir.co.za (Postfix) with ESMTPS id 67981D0CC16; Wed, 12 Dec 2012 14:39:19 +0200 (SAST) From: Johann Hugo To: Adrian Chadd Subject: Re: [ath] Degraded throughput - adhoc mode Date: Wed, 12 Dec 2012 14:39:18 +0300 Message-ID: <3370418.NcHjDjozy9@jeep> User-Agent: KMail/4.9.2 (FreeBSD/9.1-RC3; KDE/4.9.2; amd64; ; ) In-Reply-To: References: <201205181133.57403.jhugo@meraka.csir.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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, 12 Dec 2012 12:39:30 -0000 On Sunday, December 09, 2012 04:18:45 PM Adrian Chadd wrote: > Ok, I've just taught the aggressive mode logic about IBSS. It's pretty > dirty - I may cop some hate for enabling aggressive mode for IBSS as > each IBSS node doesn't know about the overall voice/video data rates. > That's how it works in AP mode - the AP tracks the traffic it is > sending/receiving and changes its configuration based on that. It > can't take into account overlapping BSSes. > > In any case, can you just try that out in your lab and let me know how it > goes? Great, I'm now getting the same throughput for ADHOC and AP/STA mode. mesh-2870:~ # uname -a FreeBSD mesh-2870 10.0-CURRENT FreeBSD 10.0-CURRENT #15: Wed Dec 12 11:38:06 wlan0: flags=8843 metric 0 mtu 1500 ether 00:02:6f:41:19:09 inet6 fe80::202:6fff:fe41:1909%wlan0 prefixlen 64 scopeid 0x7 nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect mode 11a status: running ssid mesh channel 128 (5640 MHz 11a) bssid 02:88:99:fe:ca:00 regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 24 mcastrate 6 mgmtrate 6 scanvalid 60 wme burst mesh-2870:~ # ifconfig wlan0 list wme AC_BE cwmin 4 cwmax 10 aifs 3 txopLimit 0 AC_BK cwmin 4 cwmax 10 aifs 7 txopLimit 0 AC_VI cwmin 3 cwmax 4 aifs 2 txopLimit 94 AC_VO cwmin 2 cwmax 3 aifs 2 txopLimit 47 mesh-2870:~ # ifconfig wlan0 wme aifs be 2 cwmin be 4 cwmax be 10 txoplimit be 64 mesh-2870:~ # iperf -V -c fe80::202:6fff:fe41:1908%wlan0 ------------------------------------------------------------ Client connecting to fe80::202:6fff:fe41:1908%wlan0, TCP port 5001 TCP window size: 40.1 KByte (default) ------------------------------------------------------------ [ 3] local fe80::202:6fff:fe41:1909 port 60833 connected with fe80::202:6fff:fe41:1908 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 34.4 MBytes 28.8 Mbits/sec mesh-2870:~ # iperf -V -c fe80::202:6fff:fe41:1908%wlan0 ------------------------------------------------------------ Client connecting to fe80::202:6fff:fe41:1908%wlan0, TCP port 5001 TCP window size: 40.1 KByte (default) ------------------------------------------------------------ [ 3] local fe80::202:6fff:fe41:1909 port 41099 connected with fe80::202:6fff:fe41:1908 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 34.6 MBytes 29.0 Mbits/sec Did you manage to figure out why the wme setting changes back when the interface if taken down/up ? Johann From owner-freebsd-wireless@FreeBSD.ORG Wed Dec 12 13:29:19 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 142B3BC0; Wed, 12 Dec 2012 13:29:19 +0000 (UTC) (envelope-from jhugo@meraka.csir.co.za) Received: from marge.meraka.csir.co.za (marge.meraka.csir.co.za [146.64.28.1]) by mx1.freebsd.org (Postfix) with ESMTP id 8742B8FC12; Wed, 12 Dec 2012 13:29:17 +0000 (UTC) Received: from jeep.localnet (unknown [IPv6:2001:4200:7000:3:223:aeff:fea7:a3c2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by marge.meraka.csir.co.za (Postfix) with ESMTPS id BB051D0CC03; Wed, 12 Dec 2012 15:29:15 +0200 (SAST) From: Johann Hugo To: Adrian Chadd Subject: Re: 11n in adhoc mode Date: Wed, 12 Dec 2012 15:29:14 +0300 Message-ID: <4399307.t8XoJk9xzo@jeep> User-Agent: KMail/4.9.2 (FreeBSD/9.1-RC3; KDE/4.9.2; amd64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: PseudoCylon , 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, 12 Dec 2012 13:29:19 -0000 On Wednesday, December 12, 2012 01:58:38 AM Adrian Chadd wrote: > Here's what I have trimmed this down to so far: > > http://people.freebsd.org/~adrian/ath/20121212-11n-ibss-and-other-stuff-3.di > ff > > Please disable ampdu for now (ifconfig wlanX -ampdu) as it just plain > doesn't work. > I'll figure out why once I figure out the cleanest way to get this 11n > IBSS stuff working. > > I've tested this between two 11n nodes and a third 11a only node. > So far it works out ok. But it obviously could do with a lot more > thorough testing. > > I'd appreciate feedback! > No luck. Maybe I'm missing some settings ? mesh-2870:~ # uname -a FreeBSD mesh-2870 10.0-CURRENT FreeBSD 10.0-CURRENT #15: Wed Dec 12 11:38:06 rc.conf create_args_wlan1="wlanmode adhoc country ZA" ifconfig_wlan1="10.50.50.2/24 ssid testADHOC channel 28:ht/40 -ampdu bssid 02:8c:ca:fe:ca:10" mesh-2870:~ # ifconfig wlan1 wlan1: flags=8843 metric 0 mtu 1500 ether 00:0c:42:6c:63:20 inet 10.50.50.2 netmask 0xffffff00 broadcast 10.50.50.255 inet6 fe80::20c:42ff:fe6c:6320%wlan1 prefixlen 64 scopeid 0x8 nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect mode 11na status: running ssid testADHOC channel 28 (5140 MHz 11a ht/40-) bssid 02:8c:ca:fe:ca:10 regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 17 mcastrate 6 mgmtrate 6 scanvalid 60 -ampdu ampdulimit 8k ampdudensity 8 shortgi wme burst mesh-2870:~ # ifconfig wlan1 list chan Channel 1 : 2412 MHz 11g ht Channel 52 : 5260* MHz 11a ht Channel 2 : 2417 MHz 11g ht Channel 56 : 5280* MHz 11a ht Channel 3 : 2422 MHz 11g ht Channel 60 : 5300* MHz 11a ht Channel 4 : 2427 MHz 11g ht Channel 64 : 5320* MHz 11a ht Channel 5 : 2432 MHz 11g ht Channel 100 : 5500* MHz 11a ht Channel 6 : 2437 MHz 11g ht Channel 104 : 5520* MHz 11a ht Channel 7 : 2442 MHz 11g ht Channel 108 : 5540* MHz 11a ht Channel 8 : 2447 MHz 11g ht Channel 112 : 5560* MHz 11a ht Channel 9 : 2452 MHz 11g ht Channel 116 : 5580* MHz 11a ht Channel 10 : 2457 MHz 11g ht Channel 120 : 5600* MHz 11a ht Channel 11 : 2462 MHz 11g ht Channel 124 : 5620* MHz 11a ht Channel 12 : 2467* MHz 11g ht Channel 128 : 5640* MHz 11a ht Channel 13 : 2472* MHz 11g ht Channel 132 : 5660* MHz 11a ht Channel 24 : 5120* MHz 11a ht Channel 136 : 5680* MHz 11a ht Channel 28 : 5140* MHz 11a ht Channel 140 : 5700* MHz 11a ht Channel 32 : 5160* MHz 11a ht Channel 149 : 5745* MHz 11a ht Channel 36 : 5180* MHz 11a ht Channel 153 : 5765* MHz 11a ht Channel 40 : 5200* MHz 11a ht Channel 157 : 5785* MHz 11a ht Channel 44 : 5220* MHz 11a ht Channel 161 : 5805* MHz 11a ht Channel 48 : 5240* MHz 11a ht Channel 165 : 5825* MHz 11a ht mesh-2870:~ # ifconfig wlan1 list sta ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG 00:0c:42:6c:63:20 0 28 0M 18.0 300 21 0 I A 00:0c:42:6c:61:91 0 28 54M 17.5 0 122 1552 I AQ HTCAP WME mesh-2870:~ # athratestats -i ath1 -m 00:0c:42:6c:61:91 static_rix (-1) ratemask 0x0 [ 250] cur rate 54 Mb since switch: packets 1 ticks 142385 [ 250] last sample (6 Mb) cur sample (0 ) packets sent 122 [ 250] packets since sample 1 sample tt 0 [1600] cur rate 54 Mb since switch: packets 1 ticks 93578 [1600] last sample (6 Mb) cur sample (0 ) packets sent 3 [1600] packets since sample 3 sample tt 0 TX Rate TXTOTAL:TXOK EWMA T/ F avg last xmit [36 Mb: 250] 1:1 (100.0%) 1/ 0 464uS 6977 [36 Mb:1600] 1:1 (100.0%) 1/ 0 764uS 93021 [54 Mb: 250] 121:121 (100.0%) 121/ 0 444uS 142385 [54 Mb:1600] 2:2 (100.0%) 2/ 0 644uS 93578 Johann From owner-freebsd-wireless@FreeBSD.ORG Wed Dec 12 16:53:42 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC6354AF for ; Wed, 12 Dec 2012 16:53:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 71B268FC19 for ; Wed, 12 Dec 2012 16:53:42 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id u54so411267wey.13 for ; Wed, 12 Dec 2012 08:53:41 -0800 (PST) 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=5YsuoymxRV1U2WTvWVHpyoXxyidMAdUKS2BaKOHjVu8=; b=Kaj8hi6sUZjLu447lHEmUNSTXv8gFaYyupk18lK7HBodIGPB5po6Xgg/rer5k7SGjo 8DpdJZetYJJ2V2z+3MtiW1zmUzksmKgkz6VOs/zYD90uc2l0Pem6A3Kb+SfT9l+WzYTb PN8WRY044u2sph4aQpH56O3nqOyHxwmq8JJeM20YxkEUJo9jOv3xVQZFHkAul4erN2b/ U5ndjN9ZLqzcUzJWBjbUDfKekMGUXhAMNswQ4U1Br+TOzr9mvRsHp/N4rT6fRYrA+5bl jLYVymviFeKR8Jbtaz32sf++324Be2VgZtPjcRsDviCAvPRlEqQ2fkwCzGfPGbFHL1JX 1nMw== MIME-Version: 1.0 Received: by 10.194.179.34 with SMTP id dd2mr3149994wjc.1.1355331221417; Wed, 12 Dec 2012 08:53:41 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Wed, 12 Dec 2012 08:53:41 -0800 (PST) In-Reply-To: <4399307.t8XoJk9xzo@jeep> References: <4399307.t8XoJk9xzo@jeep> Date: Wed, 12 Dec 2012 08:53:41 -0800 X-Google-Sender-Auth: QltlwjpjhlF7flCqzRass2jRP8s Message-ID: Subject: Re: 11n in adhoc mode From: Adrian Chadd To: Johann Hugo Content-Type: text/plain; charset=ISO-8859-1 Cc: PseudoCylon , 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, 12 Dec 2012 16:53:43 -0000 Let me do some more digging. If you set the channel like that you run through a different code path to if you do it via scanning. Also, I did tidy up and remove some code before I posted that diff. Maybe some of it was needed. mesh-2870:~ # athratestats -i ath1 -m 00:0c:42:6c:61:91 static_rix (-1) ratemask 0x0 See that? The ratemask is all wrong, even for an 11a/11bg node. Maybe how it learnt about the second node was via a different code path.. Adrian On 12 December 2012 04:29, Johann Hugo wrote: > On Wednesday, December 12, 2012 01:58:38 AM Adrian Chadd wrote: > >> Here's what I have trimmed this down to so far: > >> > >> >> http://people.freebsd.org/~adrian/ath/20121212-11n-ibss-and-other-stuff-3.di > >> ff > >> > >> Please disable ampdu for now (ifconfig wlanX -ampdu) as it just plain > >> doesn't work. > >> I'll figure out why once I figure out the cleanest way to get this 11n > >> IBSS stuff working. > >> > >> I've tested this between two 11n nodes and a third 11a only node. > >> So far it works out ok. But it obviously could do with a lot more > >> thorough testing. > >> > >> I'd appreciate feedback! > >> > > > > No luck. Maybe I'm missing some settings ? > > > > mesh-2870:~ # uname -a > > FreeBSD mesh-2870 10.0-CURRENT FreeBSD 10.0-CURRENT #15: Wed Dec 12 11:38:06 > > > > rc.conf > > create_args_wlan1="wlanmode adhoc country ZA" > > ifconfig_wlan1="10.50.50.2/24 ssid testADHOC channel 28:ht/40 -ampdu bssid > 02:8c:ca:fe:ca:10" > > > > mesh-2870:~ # ifconfig wlan1 > > wlan1: flags=8843 metric 0 mtu 1500 > > ether 00:0c:42:6c:63:20 > > inet 10.50.50.2 netmask 0xffffff00 broadcast 10.50.50.255 > > inet6 fe80::20c:42ff:fe6c:6320%wlan1 prefixlen 64 scopeid 0x8 > > nd6 options=21 > > media: IEEE 802.11 Wireless Ethernet autoselect mode 11na > > status: running > > ssid testADHOC channel 28 (5140 MHz 11a ht/40-) bssid 02:8c:ca:fe:ca:10 > > regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 17 > > mcastrate 6 mgmtrate 6 scanvalid 60 -ampdu ampdulimit 8k > > ampdudensity 8 shortgi wme burst > > > > mesh-2870:~ # ifconfig wlan1 list chan > > Channel 1 : 2412 MHz 11g ht Channel 52 : 5260* MHz 11a ht > > Channel 2 : 2417 MHz 11g ht Channel 56 : 5280* MHz 11a ht > > Channel 3 : 2422 MHz 11g ht Channel 60 : 5300* MHz 11a ht > > Channel 4 : 2427 MHz 11g ht Channel 64 : 5320* MHz 11a ht > > Channel 5 : 2432 MHz 11g ht Channel 100 : 5500* MHz 11a ht > > Channel 6 : 2437 MHz 11g ht Channel 104 : 5520* MHz 11a ht > > Channel 7 : 2442 MHz 11g ht Channel 108 : 5540* MHz 11a ht > > Channel 8 : 2447 MHz 11g ht Channel 112 : 5560* MHz 11a ht > > Channel 9 : 2452 MHz 11g ht Channel 116 : 5580* MHz 11a ht > > Channel 10 : 2457 MHz 11g ht Channel 120 : 5600* MHz 11a ht > > Channel 11 : 2462 MHz 11g ht Channel 124 : 5620* MHz 11a ht > > Channel 12 : 2467* MHz 11g ht Channel 128 : 5640* MHz 11a ht > > Channel 13 : 2472* MHz 11g ht Channel 132 : 5660* MHz 11a ht > > Channel 24 : 5120* MHz 11a ht Channel 136 : 5680* MHz 11a ht > > Channel 28 : 5140* MHz 11a ht Channel 140 : 5700* MHz 11a ht > > Channel 32 : 5160* MHz 11a ht Channel 149 : 5745* MHz 11a ht > > Channel 36 : 5180* MHz 11a ht Channel 153 : 5765* MHz 11a ht > > Channel 40 : 5200* MHz 11a ht Channel 157 : 5785* MHz 11a ht > > Channel 44 : 5220* MHz 11a ht Channel 161 : 5805* MHz 11a ht > > Channel 48 : 5240* MHz 11a ht Channel 165 : 5825* MHz 11a ht > > > > mesh-2870:~ # ifconfig wlan1 list sta > > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > > 00:0c:42:6c:63:20 0 28 0M 18.0 300 21 0 I A > > 00:0c:42:6c:61:91 0 28 54M 17.5 0 122 1552 I AQ HTCAP WME > > > > mesh-2870:~ # athratestats -i ath1 -m 00:0c:42:6c:61:91 > > static_rix (-1) ratemask 0x0 > > [ 250] cur rate 54 Mb since switch: packets 1 ticks 142385 > > [ 250] last sample (6 Mb) cur sample (0 ) packets sent 122 > > [ 250] packets since sample 1 sample tt 0 > > > > [1600] cur rate 54 Mb since switch: packets 1 ticks 93578 > > [1600] last sample (6 Mb) cur sample (0 ) packets sent 3 > > [1600] packets since sample 3 sample tt 0 > > > > TX Rate TXTOTAL:TXOK EWMA T/ F avg last xmit > > [36 Mb: 250] 1:1 (100.0%) 1/ 0 464uS 6977 > > [36 Mb:1600] 1:1 (100.0%) 1/ 0 764uS 93021 > > [54 Mb: 250] 121:121 (100.0%) 121/ 0 444uS 142385 > > [54 Mb:1600] 2:2 (100.0%) 2/ 0 644uS 93578 > > > > Johann From owner-freebsd-wireless@FreeBSD.ORG Wed Dec 12 21:38:18 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9E0E1BF2; Wed, 12 Dec 2012 21:38:18 +0000 (UTC) (envelope-from bschmidt@freebsd.org) Received: from mx.techwires.net (mx.techwires.net [79.140.39.242]) by mx1.freebsd.org (Postfix) with ESMTP id 515218FC08; Wed, 12 Dec 2012 21:38:18 +0000 (UTC) Received: from amy.lab.techwires.net (dslb-088-067-193-184.pools.arcor-ip.net [88.67.193.184]) by mx.techwires.net (Postfix) with ESMTPSA id AA1512BBAD2; Wed, 12 Dec 2012 22:38:16 +0100 (CET) From: Bernhard Schmidt To: freebsd-wireless@freebsd.org, bug-followup@freebsd.org Subject: Re: kern/173898: [iwn] [patch] iwn(4) DOES support 6235 chip. Date: Wed, 12 Dec 2012 22:38:59 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.7.4; amd64; ; ) References: <201211302325.qAUNPxrE019355@freefall.freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201212122238.59533.bschmidt@freebsd.org> Cc: davide@freebsd.org, Eitan Adler 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, 12 Dec 2012 21:38:18 -0000 On Saturday 01 December 2012 05:59:22 Eitan Adler wrote: > On 30 November 2012 20:28, Adrian Chadd wrote: > > It's not that simple. Speak to bernhard. > > > Davide, You mention some issues and I asked you to follow up to the > PR. Can you please explain them? > > > There are other issues that he knows about. I don't know if he's > > replied to the email or not; poke him on irc. > > IRC doesn't help as the record does not go into the PR For the record.. I thought I mentioned this in another PR already. Using the new firmware and adding the PCI IDs is enough to detect the cards and get some basic stuff working. The major part of the features is not though. At least on 11n HT40 you will definitely get a firmware crash. Also, the throughput sucks, even in legacy mode. I'm not able to pin the cause, working on it. Johannes is also looking into it. -- Bernhard From owner-freebsd-wireless@FreeBSD.ORG Wed Dec 12 23:51:24 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63B5CA93; Wed, 12 Dec 2012 23:51:24 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 12DE58FC15; Wed, 12 Dec 2012 23:51:23 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id 16so1401028obc.13 for ; Wed, 12 Dec 2012 15:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=CBRVRLLgvUZOjEjDgpyO+TGyigAqy54d2HXjeHa2Kfo=; b=PwaPi5PPVZUzJp0Ovm22x+eW3aCVU7YoN2Jn8hzz7K6GwW7qDAZ+dhz7H7qsiYa3sJ PJrLQnqHfMPzDzobgug+ixBNOYJZAkfeb1maYYUXtEuhDOBcmihLsfP45sQlGm0lg/f7 jxwz3fFEBYZAwte0wO5M4yCsn2JUg26GYP8xiPH+ixjYUG+gT9sq0r9zsGZPicysf53z QZNGiF/J7PgaxTgwG+IVMtesXyilMZAduneJbG3AWzhIL2sWzC66ZFuntswx3uaqgmQ8 K1DGb8QfBX9M3tOLJUDzI0Kkj/U1mTwEEqEfbUXEWNiM9NnHLhLaqJol0/JMR5mWAgHN LvQw== MIME-Version: 1.0 Received: by 10.60.171.133 with SMTP id au5mr1550324oec.90.1355356283464; Wed, 12 Dec 2012 15:51:23 -0800 (PST) Received: by 10.60.76.200 with HTTP; Wed, 12 Dec 2012 15:51:23 -0800 (PST) Date: Thu, 13 Dec 2012 03:51:23 +0400 Message-ID: Subject: AR9285 not see n-channels From: Andrey Fesenko To: freebsd-wireless@freebsd.org, freebsd-current Content-Type: text/plain; charset=UTF-8 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, 12 Dec 2012 23:51:24 -0000 I have # uname -a FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r243259: Mon Nov 19 09:28:08 MSK 2012 root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 # grep ATH /usr/src/sys/amd64/conf/W_BOOK options ATH_ENABLE_11N options ATH_DEBUG options ATH_DIAGAPI pciconf ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'AR9285 Wireless Network Adapter (PCI-Express)' class = network # ifconfig -v wlan0 list channel Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b .... wi-fi router have and enable n-mode (linksys e4200) How to turn on or activate n-mode? From owner-freebsd-wireless@FreeBSD.ORG Thu Dec 13 00:32:51 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 03314768; Thu, 13 Dec 2012 00:32:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 56ABB8FC12; Thu, 13 Dec 2012 00:32:50 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id dr1so2209899wgb.1 for ; Wed, 12 Dec 2012 16:32:49 -0800 (PST) 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=FEeg6nFCNgYWmAdnsEhpAMfP5RoqeHb9qAeedBhEaAE=; b=QDrQaaIC3vKlhhRE9Zj2cucZIe3XGmkbg6C4ZitToejgWHwSjSISnDubVD9S/NaaRR lIKoVoYlWyZZXtWOCciAJ+qQNKpr7vQ/CikK7idfyjI57fLeT5ZfyHV2x3PbY1HiJVqf 3Ml0cwTx8+pJu0CafYknElGqWCVFRjybimxT77RjTC9GFlKH/JOU8UtJjyt7SCPFFdVw Icj3RDlw6cGs3hhPNaVdrgMUdrq+rIB5DdcVdJsAwZWwz0zaGzEozymngGHxdi/Tk0EA BWYSiCfRxp+uefMrA+UjJWXU/xQnVIgJTCqy9P21j8RCaxDflO1P+qSWpXF2fIdZ0Y/o /JlA== MIME-Version: 1.0 Received: by 10.194.179.34 with SMTP id dd2mr4895620wjc.1.1355358769110; Wed, 12 Dec 2012 16:32:49 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Wed, 12 Dec 2012 16:32:48 -0800 (PST) In-Reply-To: References: Date: Wed, 12 Dec 2012 16:32:48 -0800 X-Google-Sender-Auth: K5vYe_EuuwbonrMYpY0fJUMRi-U Message-ID: Subject: Re: AR9285 not see n-channels From: Adrian Chadd To: Andrey Fesenko Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, freebsd-current 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, 13 Dec 2012 00:32:51 -0000 What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? adrian On 12 December 2012 15:51, Andrey Fesenko wrote: > I have > # uname -a > FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 > r243259: Mon Nov 19 09:28:08 MSK 2012 > root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 > # grep ATH /usr/src/sys/amd64/conf/W_BOOK > options ATH_ENABLE_11N > options ATH_DEBUG > options ATH_DIAGAPI > > pciconf > ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c > rev=0x01 hdr=0x00 > vendor = 'Atheros Communications Inc.' > device = 'AR9285 Wireless Network Adapter (PCI-Express)' > class = network > > > # ifconfig -v wlan0 list channel > Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 > Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b > Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g > Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 > Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b > .... > > wi-fi router have and enable n-mode (linksys e4200) > How to turn on or activate n-mode? > _______________________________________________ > 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 Thu Dec 13 00:39:09 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0D6B79F3; Thu, 13 Dec 2012 00:39:09 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) by mx1.freebsd.org (Postfix) with ESMTP id A165B8FC08; Thu, 13 Dec 2012 00:39:08 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id n9so1558601oag.13 for ; Wed, 12 Dec 2012 16:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=b/iJSJTFPeFNeeWIbTkkDtf0BIaDD975TBChl9BvH7k=; b=EW41T4N3b4jk+YyIhuHTxKWE/2yzJz47TXUZdFv0dtoYvJpsbeGD9LPctPp9jkBZhq W0lzFPVnBiLdpbDImxWbT4x5YSenAFLMSdid5MnOR/+/JjPP0bSras/K8TzKeZtDiGEP OYTVLA+synXy1ADlMFFLHq2hX/yYJLwpWJMfNxXSczruOLVxYqLdZyEB49evWyLq+qjo 7adPpJvziLKZuv0gltgNblK9S6cP6fEZKnehV5GcjNbzw+TbbWGdTYWTTKRK9s7IqUq6 56ar7BIFx0/qO+0lo4Ata1mF/XKhnrE2c3q2VGbSb8x67aDGNk0ZkGl2k8e73GN8lncw nSRg== MIME-Version: 1.0 Received: by 10.182.240.45 with SMTP id vx13mr30340obc.21.1355359147388; Wed, 12 Dec 2012 16:39:07 -0800 (PST) Received: by 10.60.76.200 with HTTP; Wed, 12 Dec 2012 16:39:07 -0800 (PST) In-Reply-To: References: Date: Thu, 13 Dec 2012 04:39:07 +0400 Message-ID: Subject: Re: AR9285 not see n-channels From: Andrey Fesenko To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: freebsd-wireless@freebsd.org, freebsd-current 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, 13 Dec 2012 00:39:09 -0000 On Thu, Dec 13, 2012 at 4:32 AM, Adrian Chadd wrote: > What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? > > > > adrian > > > On 12 December 2012 15:51, Andrey Fesenko wrote: >> I have >> # uname -a >> FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 >> r243259: Mon Nov 19 09:28:08 MSK 2012 >> root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 >> # grep ATH /usr/src/sys/amd64/conf/W_BOOK >> options ATH_ENABLE_11N >> options ATH_DEBUG >> options ATH_DIAGAPI >> >> pciconf >> ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c >> rev=0x01 hdr=0x00 >> vendor = 'Atheros Communications Inc.' >> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >> class = network >> >> >> # ifconfig -v wlan0 list channel >> Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 >> Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b >> Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g >> Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 >> Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b >> .... >> >> wi-fi router have and enable n-mode (linksys e4200) >> How to turn on or activate n-mode? # ifconfig wlan0 list sta ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG 58:6d:8f:fa:d9:50 5 12 72M 27.5 0 2079 31872 EP AQEHTRS RSN HTCAP WME WPS # ifconfig wlan0 wlan0: flags=8843 metric 0 mtu 1500 ether 4c:0f:6e:4b:4e:f5 inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=29 media: IEEE 802.11 Wireless Ethernet MCS mode 11ng status: associated ssid hometest channel 12 (2467 MHz 11g ht/20) bssid 58:6d:8f:fa:d9:50 regdomain 101 indoor ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss 7 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme burst roaming MANUAL From owner-freebsd-wireless@FreeBSD.ORG Thu Dec 13 00:44:58 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D6C2E50; Thu, 13 Dec 2012 00:44:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1D9348FC16; Thu, 13 Dec 2012 00:44:57 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi5so1009871pad.13 for ; Wed, 12 Dec 2012 16:44:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:to:cc:reply-to:subject:in-reply-to:x-mailer :mime-version:content-type; bh=d2iLroS7Dr5aan6HBBul/TQWqUI61kOBuyT5kSrGhqY=; b=vPqYWTkrZ6ZPbstcgVsQUgP8/cDxrhS9LXC/0tAiiZc5ExoR3UR6yBCR+oeWFpf0qV DIFZFFoDQwTZW5VqWGyRbyc4mzn3GMnLZ4OyYH5jTyKOOlOI/Ybdux91e8STQmCubIgT ywJFeQxkkgwAN6aQ1n8yMD2QKOt4Y2QZM/etNxeCMbRcIAMEIg7FIYK8PvQMRgmoRe1E 0LE9G5g5rt9ATBqXN6XESJlz6RFJa7xP2ybj9eLTDbJqfOMk+Q0Raw3DVBLZL18oxkbC T/LrnG2tIN+wW4YuLq2yy1mXpJGp/zQ2+RGs7fFxMmWx/LyqYPmnoz6Ri1VJn0NKX1fz n7hg== Received: by 10.68.134.232 with SMTP id pn8mr109532pbb.47.1355359497458; Wed, 12 Dec 2012 16:44:57 -0800 (PST) Received: from www.palm.com (i-global235-qca.qualcomm.com. [199.106.103.235]) by mx.google.com with ESMTPS id ot3sm16493174pbb.38.2012.12.12.16.44.52 (version=SSLv3 cipher=OTHER); Wed, 12 Dec 2012 16:44:56 -0800 (PST) Message-ID: <50c92508.6384440a.1379.3a4a@mx.google.com> Date: Wed, 12 Dec 2012 16:44:44 -0800 From: "Adrian Chadd" To: "Andrey Fesenko" , "Adrian Chadd" Subject: Re: AR9285 not see n-channels In-Reply-To: X-Mailer: Palm webOS v1.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-wireless@freebsd.org" , freebsd-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Adrian Chadd 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, 13 Dec 2012 00:44:58 -0000 Yup. It's doing 11n rates. Compile and run athstats, it'll tell you how many aggregate frames are bein= g sent and received. Adrian Sent from my Palm Pre on AT&T On Dec 12, 2012 4:39 PM, Andrey Fesenko <f0andrey@gmail.com> wrote:=20 On Thu, Dec 13, 2012 at 4:32 AM, Adrian Chadd <adrian@freebsd.org> wr= ote: > What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? > > > > adrian > > > On 12 December 2012 15:51, Andrey Fesenko <f0andrey@gmail.com>= wrote: >> I have >> # uname -a >> FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT= #1 >> r243259: Mon Nov 19 09:28:08 MSK 2012 >> root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 >> # grep ATH /usr/src/sys/amd64/conf/W_BOOK >> options ATH_ENABLE_11N >> options ATH_DEBUG >> options ATH_DIAGAPI >> >> pciconf >> ath0@pci0:5:0:0: class=3D0x028000 card=3D0xe016105b chip=3D= 0x002b168c >> rev=3D0x01 hdr=3D0x00 >> vendor =3D 'Atheros Communications Inc.' >> device =3D 'AR9285 Wireless Network Adapter (PCI-Express)' >> class =3D network >> >> >> # ifconfig -v wlan0 list channel >> Channel 1 : 2412 MHz 11b Channel 7 : 2442 = MHz 11g ht/20 >> Channel 1 : 2412 MHz 11g Channel 8 : 2447 = MHz 11b >> Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 = MHz 11g >> Channel 2 : 2417 MHz 11b Channel 8 : 2447 = MHz 11g ht/20 >> Channel 2 : 2417 MHz 11g Channel 9 : 2452 = MHz 11b >> .... >> >> wi-fi router have and enable n-mode (linksys e4200) >> How to turn on or activate n-mode? # ifconfig wlan0 list sta ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG 58:6d:8f:fa:d9:50 5 12 72M 27.5 0 2079 31872 EP AQEHTRS RSN HTCAP WME WPS # ifconfig wlan0 wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0= mtu 1500 ether 4c:0f:6e:4b:4e:f5 inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng status: associated ssid hometest channel 12 (2467 MHz 11g ht/20) bssid 58:6d:8f:fa:d9:= 50 regdomain 101 indoor ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss= 7 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme burst roaming MANUAL From owner-freebsd-wireless@FreeBSD.ORG Thu Dec 13 00:54:29 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A8CA229E; Thu, 13 Dec 2012 00:54:29 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 468388FC13; Thu, 13 Dec 2012 00:54:29 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id 16so1447747obc.13 for ; Wed, 12 Dec 2012 16:54:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ljzIMXAb8wgXi6QKKmXp9TYO5T8/JjciQlMmuI5jsJs=; b=EfpG/xNVEZd1FovZkZ1ruQVm9IVxV3vYQXiJcYJvrZeQD4h/11ev5aQn+TypJ6J+Uz 8qKhRrd60uxu/FUQmrKAfDfLVMfqVSbnPohro0sYoI+UiDA63nXiZ1crO2O6caHA+lm7 jFMochcGjWGpZe/C6b5UsWMR0GXAyxyXqXYp2pJfUnhmidynwqsdIrGi5vnl+Ag/zXKI kfAyZt53YRjiMVZVuESTw1e5oP/w6BiJOGRlUEMX9EF80900+mjNZYma0DCBD8NeeAsr BPeRAVucQsxTzTTQJ0qiv6xQpJ3hRFoVCGK7gpJsOU+ENnBnfcI0N0A09rttwkz9f5wh rv+A== MIME-Version: 1.0 Received: by 10.182.185.12 with SMTP id ey12mr73834obc.7.1355360068405; Wed, 12 Dec 2012 16:54:28 -0800 (PST) Received: by 10.60.76.200 with HTTP; Wed, 12 Dec 2012 16:54:28 -0800 (PST) In-Reply-To: <50c92508.6384440a.1379.3a4a@mx.google.com> References: <50c92508.6384440a.1379.3a4a@mx.google.com> Date: Thu, 13 Dec 2012 04:54:28 +0400 Message-ID: Subject: Re: AR9285 not see n-channels From: Andrey Fesenko To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-wireless@freebsd.org" , freebsd-current 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, 13 Dec 2012 00:54:29 -0000 On Thu, Dec 13, 2012 at 4:44 AM, Adrian Chadd wrote: > Yup. It's doing 11n rates. > > Compile and run athstats, it'll tell you how many aggregate frames are being > sent and received. > > > > Adrian > > Sent from my Palm Pre on AT&T > > ________________________________ > On Dec 12, 2012 4:39 PM, Andrey Fesenko wrote: > > On Thu, Dec 13, 2012 at 4:32 AM, Adrian Chadd wrote: >> What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? >> >> >> >> adrian >> >> >> On 12 December 2012 15:51, Andrey Fesenko wrote: >>> I have >>> # uname -a >>> FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 >>> r243259: Mon Nov 19 09:28:08 MSK 2012 >>> root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 >>> # grep ATH /usr/src/sys/amd64/conf/W_BOOK >>> options ATH_ENABLE_11N >>> options ATH_DEBUG >>> options ATH_DIAGAPI >>> >>> pciconf >>> ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c >>> rev=0x01 hdr=0x00 >>> vendor = 'Atheros Communications Inc.' >>> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >>> class = network >>> >>> >>> # ifconfig -v wlan0 list channel >>> Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 >>> Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b >>> Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g >>> Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 >>> Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b >>> .... >>> >>> wi-fi router have and enable n-mode (linksys e4200) >>> How to turn on or activate n-mode? > > # ifconfig wlan0 list sta > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 58:6d:8f:fa:d9:50 5 12 72M 27.5 0 2079 31872 EP AQEHTRS > RSN HTCAP WME WPS > # ifconfig wlan0 > wlan0: flags=8843 metric 0 mtu 1500 > ether 4c:0f:6e:4b:4e:f5 > inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255 > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet MCS mode 11ng > status: associated > ssid hometest channel 12 (2467 MHz 11g ht/20) bssid 58:6d:8f:fa:d9:50 > regdomain 101 indoor ecm authmode WPA2/802.11i privacy ON > deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss 7 > scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme > burst roaming MANUAL # ./athstats 526213 data frames received 10205 data frames transmit 79 short on-chip tx retries 103 long on-chip tx retries 16 tx failed 'cuz too many retries 220 mib overflow interrupts MCS7 current transmit rate 1 watchdog timeouts 42 beacon miss interrupts 23154 rx failed 'cuz of bad CRC 56 rx failed 'cuz of PHY err 56 illegal service 1638 periodic calibrations -0/+0 TDMA slot adjust (usecs, smoothed) 56 rssi of last ack 50 avg recv rssi -96 rx noise floor 13 phantom beacon misses 6569 tx frames through raw api 1460 A-MPDU sub-frames received 183 Half-GI frames received 183 40MHz frames received 2397 CRC errors for non-last A-MPDU subframes 3151 Frames transmitted with HT Protection 25 A-MPDU sub-frame TX attempt success 2 first step level 1 OFDM weak signal detect 268 listen time 190 ANI increased spur immunity 174 ANI decrease spur immunity 2 ANI enabled OFDM weak signal detect 3517 ANI disabled OFDM weak signal detect 3515 ANI disabled CCK weak signal threshold 4 ANI increased first step level 2 ANI decreased first step level 154772 cumulative OFDM phy error count 528256 cumulative CCK phy error count 851 ANI forced listen time to zero 26 missing ACK's 78 RTS without CTS 3135 successful RTS 65747 bad FCS 473007 beacons received 53 average rssi (beacons only) 35 average rssi (all rx'd frames) 48 average rssi (ACKs only) Antenna profile: [0] tx 10173 rx 4 [1] tx 0 rx 526209 # ./athaggrstats 17 single frames scheduled 9 aggregate frames scheduled 1217 single frames scheduled due to low HWQ depth Aggregate size profile: 0: 0 1: 0 2: 6 3: 2 4: 0 5: 0 6: 0 7: 1 8: 0 9: 0 10: 0 11: 0 From owner-freebsd-wireless@FreeBSD.ORG Thu Dec 13 00:56:01 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 986325E2; Thu, 13 Dec 2012 00:56:01 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by mx1.freebsd.org (Postfix) with ESMTP id 003CA8FC18; Thu, 13 Dec 2012 00:56:00 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id hj13so1121957wib.13 for ; Wed, 12 Dec 2012 16:55:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JHAHyfHmY5uzswoEFSm0JoyWNBP1j30wQ0R70cvdJjs=; b=SrCm+6gXS98JQIaqHYpVjDJEwJfnIkMwTOvrq8XbaWtc0jmfs5RLFRlZTa+fukDSJi BWS6BoaUQS0EtI8RYSs/Tb3MMsbBbq1xo1CdwU6JswIPnuJvhbESNb2UXLW9+a4p2KlD CqpdSQtBgQ+r3F4UcTPz2AMPWoQmttAK2CBt204u9GcecvMwOCsmxhgRpeYeAjrLVxAZ nJ8d/W4Z/6r6sOPzicB7nGzsvFl8yCZ7VK3N8HDRpatBtBs5rHrzLgAk8tLn0jwG+A3A 2BsBIPbR7GztECrDdiQjW0tAsmK42hGklJW4BeLVppg+7eoqDOWY3HA/BW7NlU50rPKR f9nw== MIME-Version: 1.0 Received: by 10.194.120.132 with SMTP id lc4mr4946169wjb.59.1355360159052; Wed, 12 Dec 2012 16:55:59 -0800 (PST) Received: by 10.217.57.9 with HTTP; Wed, 12 Dec 2012 16:55:58 -0800 (PST) In-Reply-To: References: <50c92508.6384440a.1379.3a4a@mx.google.com> Date: Wed, 12 Dec 2012 16:55:58 -0800 Message-ID: Subject: Re: AR9285 not see n-channels From: Adrian Chadd To: Andrey Fesenko Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" , freebsd-current 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, 13 Dec 2012 00:56:01 -0000 .. yup, you're doing 11n! Welcome! Adrian On 12 December 2012 16:54, Andrey Fesenko wrote: > On Thu, Dec 13, 2012 at 4:44 AM, Adrian Chadd wrote: >> Yup. It's doing 11n rates. >> >> Compile and run athstats, it'll tell you how many aggregate frames are being >> sent and received. >> >> >> >> Adrian >> >> Sent from my Palm Pre on AT&T >> >> ________________________________ >> On Dec 12, 2012 4:39 PM, Andrey Fesenko wrote: >> >> On Thu, Dec 13, 2012 at 4:32 AM, Adrian Chadd wrote: >>> What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? >>> >>> >>> >>> adrian >>> >>> >>> On 12 December 2012 15:51, Andrey Fesenko wrote: >>>> I have >>>> # uname -a >>>> FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 >>>> r243259: Mon Nov 19 09:28:08 MSK 2012 >>>> root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 >>>> # grep ATH /usr/src/sys/amd64/conf/W_BOOK >>>> options ATH_ENABLE_11N >>>> options ATH_DEBUG >>>> options ATH_DIAGAPI >>>> >>>> pciconf >>>> ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c >>>> rev=0x01 hdr=0x00 >>>> vendor = 'Atheros Communications Inc.' >>>> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >>>> class = network >>>> >>>> >>>> # ifconfig -v wlan0 list channel >>>> Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 >>>> Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b >>>> Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g >>>> Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 >>>> Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b >>>> .... >>>> >>>> wi-fi router have and enable n-mode (linksys e4200) >>>> How to turn on or activate n-mode? >> >> # ifconfig wlan0 list sta >> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG >> 58:6d:8f:fa:d9:50 5 12 72M 27.5 0 2079 31872 EP AQEHTRS >> RSN HTCAP WME WPS >> # ifconfig wlan0 >> wlan0: flags=8843 metric 0 mtu 1500 >> ether 4c:0f:6e:4b:4e:f5 >> inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255 >> nd6 options=29 >> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng >> status: associated >> ssid hometest channel 12 (2467 MHz 11g ht/20) bssid 58:6d:8f:fa:d9:50 >> regdomain 101 indoor ecm authmode WPA2/802.11i privacy ON >> deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss 7 >> scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme >> burst roaming MANUAL > > # ./athstats > 526213 data frames received > 10205 data frames transmit > 79 short on-chip tx retries > 103 long on-chip tx retries > 16 tx failed 'cuz too many retries > 220 mib overflow interrupts > MCS7 current transmit rate > 1 watchdog timeouts > 42 beacon miss interrupts > 23154 rx failed 'cuz of bad CRC > 56 rx failed 'cuz of PHY err > 56 illegal service > 1638 periodic calibrations > -0/+0 TDMA slot adjust (usecs, smoothed) > 56 rssi of last ack > 50 avg recv rssi > -96 rx noise floor > 13 phantom beacon misses > 6569 tx frames through raw api > 1460 A-MPDU sub-frames received > 183 Half-GI frames received > 183 40MHz frames received > 2397 CRC errors for non-last A-MPDU subframes > 3151 Frames transmitted with HT Protection > 25 A-MPDU sub-frame TX attempt success > 2 first step level > 1 OFDM weak signal detect > 268 listen time > 190 ANI increased spur immunity > 174 ANI decrease spur immunity > 2 ANI enabled OFDM weak signal detect > 3517 ANI disabled OFDM weak signal detect > 3515 ANI disabled CCK weak signal threshold > 4 ANI increased first step level > 2 ANI decreased first step level > 154772 cumulative OFDM phy error count > 528256 cumulative CCK phy error count > 851 ANI forced listen time to zero > 26 missing ACK's > 78 RTS without CTS > 3135 successful RTS > 65747 bad FCS > 473007 beacons received > 53 average rssi (beacons only) > 35 average rssi (all rx'd frames) > 48 average rssi (ACKs only) > Antenna profile: > [0] tx 10173 rx 4 > [1] tx 0 rx 526209 > > > # ./athaggrstats > 17 single frames scheduled > 9 aggregate frames scheduled > 1217 single frames scheduled due to low HWQ depth > > Aggregate size profile: > > 0: 0 1: 0 2: 6 3: 2 > 4: 0 5: 0 6: 0 7: 1 > 8: 0 9: 0 10: 0 11: 0 From owner-freebsd-wireless@FreeBSD.ORG Thu Dec 13 01:32:19 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0C17BFDB; Thu, 13 Dec 2012 01:32:19 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id ACDB58FC0A; Thu, 13 Dec 2012 01:32:18 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id 16so1473319obc.13 for ; Wed, 12 Dec 2012 17:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=q0OR9mZlrkNcqGiudszxrf2b/fyfqdv+kXvBTuZk1hM=; b=RZbQaeJGYjI4VxDqyL5WYjkKL3o4LVrxDtiGoTQ9lr8BwsTx8jri8+q/NsLkfASd+Q 30D3ONW/AUZHDBDNG7JyauR9zwxF5UwXKZQ18ruxMaugW9XN3MEuvwyWw7wZQY450nOc e+PsOFlmpBxKcS5C7+UsttnsQAQEGNR7fEfG7GUBzLz6pRXqwarwRsbZCG51FdnBKv1a 6w0pafsHLpnq+C62FjMApdj9F0PIG+c8y0wKONfxERrDnvif/F9NqVyLmO8Mi8jz1H7k snJFfj287Su1vhPtoGu5qGC6+OvN1Uyf0U5wxxaTamjElIKtR8hZcgDX5f3GNRgT/h4F aZ9w== MIME-Version: 1.0 Received: by 10.182.212.70 with SMTP id ni6mr102698obc.44.1355362337982; Wed, 12 Dec 2012 17:32:17 -0800 (PST) Received: by 10.60.76.200 with HTTP; Wed, 12 Dec 2012 17:32:17 -0800 (PST) In-Reply-To: References: <50c92508.6384440a.1379.3a4a@mx.google.com> Date: Thu, 13 Dec 2012 05:32:17 +0400 Message-ID: Subject: Re: AR9285 not see n-channels From: Andrey Fesenko To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-wireless@freebsd.org" , freebsd-current 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, 13 Dec 2012 01:32:19 -0000 On Thu, Dec 13, 2012 at 4:55 AM, Adrian Chadd wrote: > .. yup, you're doing 11n! Welcome! > > > > Adrian > > On 12 December 2012 16:54, Andrey Fesenko wrote: >> On Thu, Dec 13, 2012 at 4:44 AM, Adrian Chadd wrote: >>> Yup. It's doing 11n rates. >>> >>> Compile and run athstats, it'll tell you how many aggregate frames are being >>> sent and received. >>> >>> >>> >>> Adrian >>> >>> Sent from my Palm Pre on AT&T >>> >>> ________________________________ >>> On Dec 12, 2012 4:39 PM, Andrey Fesenko wrote: >>> >>> On Thu, Dec 13, 2012 at 4:32 AM, Adrian Chadd wrote: >>>> What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? >>>> >>>> >>>> >>>> adrian >>>> >>>> >>>> On 12 December 2012 15:51, Andrey Fesenko wrote: >>>>> I have >>>>> # uname -a >>>>> FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 >>>>> r243259: Mon Nov 19 09:28:08 MSK 2012 >>>>> root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 >>>>> # grep ATH /usr/src/sys/amd64/conf/W_BOOK >>>>> options ATH_ENABLE_11N >>>>> options ATH_DEBUG >>>>> options ATH_DIAGAPI >>>>> >>>>> pciconf >>>>> ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c >>>>> rev=0x01 hdr=0x00 >>>>> vendor = 'Atheros Communications Inc.' >>>>> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >>>>> class = network >>>>> >>>>> >>>>> # ifconfig -v wlan0 list channel >>>>> Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 >>>>> Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b >>>>> Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g >>>>> Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 >>>>> Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b >>>>> .... >>>>> >>>>> wi-fi router have and enable n-mode (linksys e4200) >>>>> How to turn on or activate n-mode? >>> >>> # ifconfig wlan0 list sta >>> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG >>> 58:6d:8f:fa:d9:50 5 12 72M 27.5 0 2079 31872 EP AQEHTRS >>> RSN HTCAP WME WPS >>> # ifconfig wlan0 >>> wlan0: flags=8843 metric 0 mtu 1500 >>> ether 4c:0f:6e:4b:4e:f5 >>> inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255 >>> nd6 options=29 >>> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng >>> status: associated >>> ssid hometest channel 12 (2467 MHz 11g ht/20) bssid 58:6d:8f:fa:d9:50 >>> regdomain 101 indoor ecm authmode WPA2/802.11i privacy ON >>> deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss 7 >>> scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme >>> burst roaming MANUAL >> >> # ./athstats >> 526213 data frames received >> 10205 data frames transmit >> 79 short on-chip tx retries >> 103 long on-chip tx retries >> 16 tx failed 'cuz too many retries >> 220 mib overflow interrupts >> MCS7 current transmit rate >> 1 watchdog timeouts >> 42 beacon miss interrupts >> 23154 rx failed 'cuz of bad CRC >> 56 rx failed 'cuz of PHY err >> 56 illegal service >> 1638 periodic calibrations >> -0/+0 TDMA slot adjust (usecs, smoothed) >> 56 rssi of last ack >> 50 avg recv rssi >> -96 rx noise floor >> 13 phantom beacon misses >> 6569 tx frames through raw api >> 1460 A-MPDU sub-frames received >> 183 Half-GI frames received >> 183 40MHz frames received >> 2397 CRC errors for non-last A-MPDU subframes >> 3151 Frames transmitted with HT Protection >> 25 A-MPDU sub-frame TX attempt success >> 2 first step level >> 1 OFDM weak signal detect >> 268 listen time >> 190 ANI increased spur immunity >> 174 ANI decrease spur immunity >> 2 ANI enabled OFDM weak signal detect >> 3517 ANI disabled OFDM weak signal detect >> 3515 ANI disabled CCK weak signal threshold >> 4 ANI increased first step level >> 2 ANI decreased first step level >> 154772 cumulative OFDM phy error count >> 528256 cumulative CCK phy error count >> 851 ANI forced listen time to zero >> 26 missing ACK's >> 78 RTS without CTS >> 3135 successful RTS >> 65747 bad FCS >> 473007 beacons received >> 53 average rssi (beacons only) >> 35 average rssi (all rx'd frames) >> 48 average rssi (ACKs only) >> Antenna profile: >> [0] tx 10173 rx 4 >> [1] tx 0 rx 526209 >> >> >> # ./athaggrstats >> 17 single frames scheduled >> 9 aggregate frames scheduled >> 1217 single frames scheduled due to low HWQ depth >> >> Aggregate size profile: >> >> 0: 0 1: 0 2: 6 3: 2 >> 4: 0 5: 0 6: 0 7: 1 >> 8: 0 9: 0 10: 0 11: 0 why # ifconfig -v wlan0 list channel show only b and g channels? and only 13? or this restriction AR9285 though # iperf -i 10 -t 20 -c 192.168.1.26 -w 1024K -l 1024K ------------------------------------------------------------ Client connecting to 192.168.1.26, TCP port 5001 TCP window size: 1.00 MByte (WARNING: requested 1.00 MByte) ------------------------------------------------------------ [ 3] local 192.168.1.41 port 22263 connected with 192.168.1.26 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 54.0 MBytes 45.3 Mbits/sec From owner-freebsd-wireless@FreeBSD.ORG Thu Dec 13 01:33:20 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2C7F1180; Thu, 13 Dec 2012 01:33:20 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by mx1.freebsd.org (Postfix) with ESMTP id 7B5428FC08; Thu, 13 Dec 2012 01:33:18 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id hj13so1135089wib.13 for ; Wed, 12 Dec 2012 17:33:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6g4ptybI7VX8NmoGiv3qrCanxvtAj9H42wclSQVjT/s=; b=Fla5PNxM/2Ef8AVLp89aXE5gDSlwtR/lvihBQefIbMmKi1arfyVTK3JJ6K2cK0Scl2 TncwRYszBA9/8RyK/IdyDoT3IG0zG2JVbpbRjJPhRkvX577CGeRmfDG6uh6cgJLynL5p r+d/Ii0wx+jP0PPbm3clEddlgh1wjT5N5npRj2CiB0pzsU7ZAcbOgaVfeedq5qJqkfIH 4d3ozVphKQ1RlBw9PNnFVpPGcALrgynkzF/dmn/Qamw/KXYAS+UF3Ni/38NuMDRmGTbC z40QJQh9rzLiMWo9F+NKnACkKgkALcEYfKisKx1SIX/cqCBgo4cWfQmWkI55KdT3Ldtt TVzg== MIME-Version: 1.0 Received: by 10.194.120.132 with SMTP id lc4mr5055291wjb.59.1355362398101; Wed, 12 Dec 2012 17:33:18 -0800 (PST) Received: by 10.217.57.9 with HTTP; Wed, 12 Dec 2012 17:33:17 -0800 (PST) In-Reply-To: References: <50c92508.6384440a.1379.3a4a@mx.google.com> Date: Wed, 12 Dec 2012 17:33:17 -0800 Message-ID: Subject: Re: AR9285 not see n-channels From: Adrian Chadd To: Andrey Fesenko Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" , freebsd-current 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, 13 Dec 2012 01:33:20 -0000 Hi, The AR9285 is a 2GHz only NIC. The channel list shows 11b, 11bg, HT20 and HT40 channels. It all looks right, why don't you think it is? Adrian On 12 December 2012 17:32, Andrey Fesenko wrote: > On Thu, Dec 13, 2012 at 4:55 AM, Adrian Chadd wrote: >> .. yup, you're doing 11n! Welcome! >> >> >> >> Adrian >> >> On 12 December 2012 16:54, Andrey Fesenko wrote: >>> On Thu, Dec 13, 2012 at 4:44 AM, Adrian Chadd wrote: >>>> Yup. It's doing 11n rates. >>>> >>>> Compile and run athstats, it'll tell you how many aggregate frames are being >>>> sent and received. >>>> >>>> >>>> >>>> Adrian >>>> >>>> Sent from my Palm Pre on AT&T >>>> >>>> ________________________________ >>>> On Dec 12, 2012 4:39 PM, Andrey Fesenko wrote: >>>> >>>> On Thu, Dec 13, 2012 at 4:32 AM, Adrian Chadd wrote: >>>>> What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? >>>>> >>>>> >>>>> >>>>> adrian >>>>> >>>>> >>>>> On 12 December 2012 15:51, Andrey Fesenko wrote: >>>>>> I have >>>>>> # uname -a >>>>>> FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 >>>>>> r243259: Mon Nov 19 09:28:08 MSK 2012 >>>>>> root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 >>>>>> # grep ATH /usr/src/sys/amd64/conf/W_BOOK >>>>>> options ATH_ENABLE_11N >>>>>> options ATH_DEBUG >>>>>> options ATH_DIAGAPI >>>>>> >>>>>> pciconf >>>>>> ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c >>>>>> rev=0x01 hdr=0x00 >>>>>> vendor = 'Atheros Communications Inc.' >>>>>> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >>>>>> class = network >>>>>> >>>>>> >>>>>> # ifconfig -v wlan0 list channel >>>>>> Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 >>>>>> Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b >>>>>> Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g >>>>>> Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 >>>>>> Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b >>>>>> .... >>>>>> >>>>>> wi-fi router have and enable n-mode (linksys e4200) >>>>>> How to turn on or activate n-mode? >>>> >>>> # ifconfig wlan0 list sta >>>> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG >>>> 58:6d:8f:fa:d9:50 5 12 72M 27.5 0 2079 31872 EP AQEHTRS >>>> RSN HTCAP WME WPS >>>> # ifconfig wlan0 >>>> wlan0: flags=8843 metric 0 mtu 1500 >>>> ether 4c:0f:6e:4b:4e:f5 >>>> inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255 >>>> nd6 options=29 >>>> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng >>>> status: associated >>>> ssid hometest channel 12 (2467 MHz 11g ht/20) bssid 58:6d:8f:fa:d9:50 >>>> regdomain 101 indoor ecm authmode WPA2/802.11i privacy ON >>>> deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss 7 >>>> scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme >>>> burst roaming MANUAL >>> >>> # ./athstats >>> 526213 data frames received >>> 10205 data frames transmit >>> 79 short on-chip tx retries >>> 103 long on-chip tx retries >>> 16 tx failed 'cuz too many retries >>> 220 mib overflow interrupts >>> MCS7 current transmit rate >>> 1 watchdog timeouts >>> 42 beacon miss interrupts >>> 23154 rx failed 'cuz of bad CRC >>> 56 rx failed 'cuz of PHY err >>> 56 illegal service >>> 1638 periodic calibrations >>> -0/+0 TDMA slot adjust (usecs, smoothed) >>> 56 rssi of last ack >>> 50 avg recv rssi >>> -96 rx noise floor >>> 13 phantom beacon misses >>> 6569 tx frames through raw api >>> 1460 A-MPDU sub-frames received >>> 183 Half-GI frames received >>> 183 40MHz frames received >>> 2397 CRC errors for non-last A-MPDU subframes >>> 3151 Frames transmitted with HT Protection >>> 25 A-MPDU sub-frame TX attempt success >>> 2 first step level >>> 1 OFDM weak signal detect >>> 268 listen time >>> 190 ANI increased spur immunity >>> 174 ANI decrease spur immunity >>> 2 ANI enabled OFDM weak signal detect >>> 3517 ANI disabled OFDM weak signal detect >>> 3515 ANI disabled CCK weak signal threshold >>> 4 ANI increased first step level >>> 2 ANI decreased first step level >>> 154772 cumulative OFDM phy error count >>> 528256 cumulative CCK phy error count >>> 851 ANI forced listen time to zero >>> 26 missing ACK's >>> 78 RTS without CTS >>> 3135 successful RTS >>> 65747 bad FCS >>> 473007 beacons received >>> 53 average rssi (beacons only) >>> 35 average rssi (all rx'd frames) >>> 48 average rssi (ACKs only) >>> Antenna profile: >>> [0] tx 10173 rx 4 >>> [1] tx 0 rx 526209 >>> >>> >>> # ./athaggrstats >>> 17 single frames scheduled >>> 9 aggregate frames scheduled >>> 1217 single frames scheduled due to low HWQ depth >>> >>> Aggregate size profile: >>> >>> 0: 0 1: 0 2: 6 3: 2 >>> 4: 0 5: 0 6: 0 7: 1 >>> 8: 0 9: 0 10: 0 11: 0 > > why # ifconfig -v wlan0 list channel > show only b and g channels? and only 13? or this restriction AR9285 > > though > # iperf -i 10 -t 20 -c 192.168.1.26 -w 1024K -l 1024K > ------------------------------------------------------------ > Client connecting to 192.168.1.26, TCP port 5001 > TCP window size: 1.00 MByte (WARNING: requested 1.00 MByte) > ------------------------------------------------------------ > [ 3] local 192.168.1.41 port 22263 connected with 192.168.1.26 port 5001 > [ ID] Interval Transfer Bandwidth > [ 3] 0.0-10.0 sec 54.0 MBytes 45.3 Mbits/sec From owner-freebsd-wireless@FreeBSD.ORG Thu Dec 13 01:39:43 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7ED1E37E; Thu, 13 Dec 2012 01:39:43 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) by mx1.freebsd.org (Postfix) with ESMTP id 280748FC08; Thu, 13 Dec 2012 01:39:43 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id n9so1601075oag.13 for ; Wed, 12 Dec 2012 17:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ROTN67dODE4eJ22X5bcbc77p49TtQFJznykDWdFAkSI=; b=0yuQWDPkRIhIzWq2p6e8VJuIm39U0d8alWP2gwyuJvfNDsPysMbionWPlKobtEBGNn /9z10U2rgPr5lKfD7zlk7EltXy5Sp96GJ7dnN/gj2lEHKDPprO6aWDbp6nCseXYcwGct G7qwyxp4jy2wxuT4wY65s7z2ZdQk81A5d7+yWxJrCA6+C8KShgB4tcj4BXjKUhQgT/Zw KEm0RRuH02j3lGHfGdvVvqdNoNWIAA6ho39/UQ35IItwm4ipGs+bcQS146yg8jBifopt raqDGhqlJljGPO+HxOXsSMunuNVGsOiMh+4nhDWyAji65kFP0P28I0jPislJjL6rC4hc 9m1g== MIME-Version: 1.0 Received: by 10.60.20.101 with SMTP id m5mr82747oee.102.1355362782400; Wed, 12 Dec 2012 17:39:42 -0800 (PST) Received: by 10.60.76.200 with HTTP; Wed, 12 Dec 2012 17:39:42 -0800 (PST) In-Reply-To: References: <50c92508.6384440a.1379.3a4a@mx.google.com> Date: Thu, 13 Dec 2012 05:39:42 +0400 Message-ID: Subject: Re: AR9285 not see n-channels From: Andrey Fesenko To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-wireless@freebsd.org" , freebsd-current 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, 13 Dec 2012 01:39:43 -0000 On Thu, Dec 13, 2012 at 5:33 AM, Adrian Chadd wrote: > Hi, > > The AR9285 is a 2GHz only NIC. > > The channel list shows 11b, 11bg, HT20 and HT40 channels. > > It all looks right, why don't you think it is? > > > Adrian > > > On 12 December 2012 17:32, Andrey Fesenko wrote: >> On Thu, Dec 13, 2012 at 4:55 AM, Adrian Chadd wrote: >>> .. yup, you're doing 11n! Welcome! >>> >>> >>> >>> Adrian >>> >>> On 12 December 2012 16:54, Andrey Fesenko wrote: >>>> On Thu, Dec 13, 2012 at 4:44 AM, Adrian Chadd wrote: >>>>> Yup. It's doing 11n rates. >>>>> >>>>> Compile and run athstats, it'll tell you how many aggregate frames are being >>>>> sent and received. >>>>> >>>>> >>>>> >>>>> Adrian >>>>> >>>>> Sent from my Palm Pre on AT&T >>>>> >>>>> ________________________________ >>>>> On Dec 12, 2012 4:39 PM, Andrey Fesenko wrote: >>>>> >>>>> On Thu, Dec 13, 2012 at 4:32 AM, Adrian Chadd wrote: >>>>>> What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? >>>>>> >>>>>> >>>>>> >>>>>> adrian >>>>>> >>>>>> >>>>>> On 12 December 2012 15:51, Andrey Fesenko wrote: >>>>>>> I have >>>>>>> # uname -a >>>>>>> FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 >>>>>>> r243259: Mon Nov 19 09:28:08 MSK 2012 >>>>>>> root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 >>>>>>> # grep ATH /usr/src/sys/amd64/conf/W_BOOK >>>>>>> options ATH_ENABLE_11N >>>>>>> options ATH_DEBUG >>>>>>> options ATH_DIAGAPI >>>>>>> >>>>>>> pciconf >>>>>>> ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c >>>>>>> rev=0x01 hdr=0x00 >>>>>>> vendor = 'Atheros Communications Inc.' >>>>>>> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >>>>>>> class = network >>>>>>> >>>>>>> >>>>>>> # ifconfig -v wlan0 list channel >>>>>>> Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 >>>>>>> Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b >>>>>>> Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g >>>>>>> Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 >>>>>>> Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b >>>>>>> .... >>>>>>> >>>>>>> wi-fi router have and enable n-mode (linksys e4200) >>>>>>> How to turn on or activate n-mode? >>>>> >>>>> # ifconfig wlan0 list sta >>>>> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG >>>>> 58:6d:8f:fa:d9:50 5 12 72M 27.5 0 2079 31872 EP AQEHTRS >>>>> RSN HTCAP WME WPS >>>>> # ifconfig wlan0 >>>>> wlan0: flags=8843 metric 0 mtu 1500 >>>>> ether 4c:0f:6e:4b:4e:f5 >>>>> inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255 >>>>> nd6 options=29 >>>>> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng >>>>> status: associated >>>>> ssid hometest channel 12 (2467 MHz 11g ht/20) bssid 58:6d:8f:fa:d9:50 >>>>> regdomain 101 indoor ecm authmode WPA2/802.11i privacy ON >>>>> deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss 7 >>>>> scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme >>>>> burst roaming MANUAL >>>> >>>> # ./athstats >>>> 526213 data frames received >>>> 10205 data frames transmit >>>> 79 short on-chip tx retries >>>> 103 long on-chip tx retries >>>> 16 tx failed 'cuz too many retries >>>> 220 mib overflow interrupts >>>> MCS7 current transmit rate >>>> 1 watchdog timeouts >>>> 42 beacon miss interrupts >>>> 23154 rx failed 'cuz of bad CRC >>>> 56 rx failed 'cuz of PHY err >>>> 56 illegal service >>>> 1638 periodic calibrations >>>> -0/+0 TDMA slot adjust (usecs, smoothed) >>>> 56 rssi of last ack >>>> 50 avg recv rssi >>>> -96 rx noise floor >>>> 13 phantom beacon misses >>>> 6569 tx frames through raw api >>>> 1460 A-MPDU sub-frames received >>>> 183 Half-GI frames received >>>> 183 40MHz frames received >>>> 2397 CRC errors for non-last A-MPDU subframes >>>> 3151 Frames transmitted with HT Protection >>>> 25 A-MPDU sub-frame TX attempt success >>>> 2 first step level >>>> 1 OFDM weak signal detect >>>> 268 listen time >>>> 190 ANI increased spur immunity >>>> 174 ANI decrease spur immunity >>>> 2 ANI enabled OFDM weak signal detect >>>> 3517 ANI disabled OFDM weak signal detect >>>> 3515 ANI disabled CCK weak signal threshold >>>> 4 ANI increased first step level >>>> 2 ANI decreased first step level >>>> 154772 cumulative OFDM phy error count >>>> 528256 cumulative CCK phy error count >>>> 851 ANI forced listen time to zero >>>> 26 missing ACK's >>>> 78 RTS without CTS >>>> 3135 successful RTS >>>> 65747 bad FCS >>>> 473007 beacons received >>>> 53 average rssi (beacons only) >>>> 35 average rssi (all rx'd frames) >>>> 48 average rssi (ACKs only) >>>> Antenna profile: >>>> [0] tx 10173 rx 4 >>>> [1] tx 0 rx 526209 >>>> >>>> >>>> # ./athaggrstats >>>> 17 single frames scheduled >>>> 9 aggregate frames scheduled >>>> 1217 single frames scheduled due to low HWQ depth >>>> >>>> Aggregate size profile: >>>> >>>> 0: 0 1: 0 2: 6 3: 2 >>>> 4: 0 5: 0 6: 0 7: 1 >>>> 8: 0 9: 0 10: 0 11: 0 >> >> why # ifconfig -v wlan0 list channel >> show only b and g channels? and only 13? or this restriction AR9285 >> >> though >> # iperf -i 10 -t 20 -c 192.168.1.26 -w 1024K -l 1024K >> ------------------------------------------------------------ >> Client connecting to 192.168.1.26, TCP port 5001 >> TCP window size: 1.00 MByte (WARNING: requested 1.00 MByte) >> ------------------------------------------------------------ >> [ 3] local 192.168.1.41 port 22263 connected with 192.168.1.26 port 5001 >> [ ID] Interval Transfer Bandwidth >> [ 3] 0.0-10.0 sec 54.0 MBytes 45.3 Mbits/sec Thanks I was confused that there is no mention n-mode in the output channel list From owner-freebsd-wireless@FreeBSD.ORG Thu Dec 13 01:41:19 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0EF6B604; Thu, 13 Dec 2012 01:41:19 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by mx1.freebsd.org (Postfix) with ESMTP id 616158FC0A; Thu, 13 Dec 2012 01:41:18 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id 12so548738wgh.31 for ; Wed, 12 Dec 2012 17:41:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NT25UBoiPAMUxBsHphXiwGvOeOmF4B1ph91/5bHk6qQ=; b=kfMJNTNBZrDekvP6ErcAMVK1RpNaQaf446r0GWPLya2xZbWuPWL+WtUb660mE0DVrp Ijr0BHbdpvsYpHy3HRMLVomp1SOyLcmfllrmtQr0zFsHY88enqnhKH4matBmdwXfuA+F TpxoNBGn2QGSco/7GLzWtl9zUI1KtJCOLhsWFEDTGqkxW07XXgDYl0QuO0WbBf+SL8pp ZkNOVRjHvcHCVUgR8jYTbwazsLJxymjeI7a1VeL7CeqyXuhsLmFyuSJkKx9lswn6buuX UB2be4/JQJZWf2Cfa77Tdl3WkDuI+bzJyATF+scIib1fAKhBrSknKJgGbx/ofYOn1suy oZtg== MIME-Version: 1.0 Received: by 10.194.93.40 with SMTP id cr8mr5107732wjb.16.1355362877377; Wed, 12 Dec 2012 17:41:17 -0800 (PST) Received: by 10.217.57.9 with HTTP; Wed, 12 Dec 2012 17:41:17 -0800 (PST) In-Reply-To: References: <50c92508.6384440a.1379.3a4a@mx.google.com> Date: Wed, 12 Dec 2012 17:41:17 -0800 Message-ID: Subject: Re: AR9285 not see n-channels From: Adrian Chadd To: Andrey Fesenko Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" , freebsd-current 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, 13 Dec 2012 01:41:19 -0000 Right, that's what "HT" is for. Adrian On 12 December 2012 17:39, Andrey Fesenko wrote: > On Thu, Dec 13, 2012 at 5:33 AM, Adrian Chadd wrote: >> Hi, >> >> The AR9285 is a 2GHz only NIC. >> >> The channel list shows 11b, 11bg, HT20 and HT40 channels. >> >> It all looks right, why don't you think it is? >> >> >> Adrian >> >> >> On 12 December 2012 17:32, Andrey Fesenko wrote: >>> On Thu, Dec 13, 2012 at 4:55 AM, Adrian Chadd wrote: >>>> .. yup, you're doing 11n! Welcome! >>>> >>>> >>>> >>>> Adrian >>>> >>>> On 12 December 2012 16:54, Andrey Fesenko wrote: >>>>> On Thu, Dec 13, 2012 at 4:44 AM, Adrian Chadd wrote: >>>>>> Yup. It's doing 11n rates. >>>>>> >>>>>> Compile and run athstats, it'll tell you how many aggregate frames are being >>>>>> sent and received. >>>>>> >>>>>> >>>>>> >>>>>> Adrian >>>>>> >>>>>> Sent from my Palm Pre on AT&T >>>>>> >>>>>> ________________________________ >>>>>> On Dec 12, 2012 4:39 PM, Andrey Fesenko wrote: >>>>>> >>>>>> On Thu, Dec 13, 2012 at 4:32 AM, Adrian Chadd wrote: >>>>>>> What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? >>>>>>> >>>>>>> >>>>>>> >>>>>>> adrian >>>>>>> >>>>>>> >>>>>>> On 12 December 2012 15:51, Andrey Fesenko wrote: >>>>>>>> I have >>>>>>>> # uname -a >>>>>>>> FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 >>>>>>>> r243259: Mon Nov 19 09:28:08 MSK 2012 >>>>>>>> root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 >>>>>>>> # grep ATH /usr/src/sys/amd64/conf/W_BOOK >>>>>>>> options ATH_ENABLE_11N >>>>>>>> options ATH_DEBUG >>>>>>>> options ATH_DIAGAPI >>>>>>>> >>>>>>>> pciconf >>>>>>>> ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c >>>>>>>> rev=0x01 hdr=0x00 >>>>>>>> vendor = 'Atheros Communications Inc.' >>>>>>>> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >>>>>>>> class = network >>>>>>>> >>>>>>>> >>>>>>>> # ifconfig -v wlan0 list channel >>>>>>>> Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 >>>>>>>> Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b >>>>>>>> Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g >>>>>>>> Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 >>>>>>>> Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b >>>>>>>> .... >>>>>>>> >>>>>>>> wi-fi router have and enable n-mode (linksys e4200) >>>>>>>> How to turn on or activate n-mode? >>>>>> >>>>>> # ifconfig wlan0 list sta >>>>>> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG >>>>>> 58:6d:8f:fa:d9:50 5 12 72M 27.5 0 2079 31872 EP AQEHTRS >>>>>> RSN HTCAP WME WPS >>>>>> # ifconfig wlan0 >>>>>> wlan0: flags=8843 metric 0 mtu 1500 >>>>>> ether 4c:0f:6e:4b:4e:f5 >>>>>> inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255 >>>>>> nd6 options=29 >>>>>> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng >>>>>> status: associated >>>>>> ssid hometest channel 12 (2467 MHz 11g ht/20) bssid 58:6d:8f:fa:d9:50 >>>>>> regdomain 101 indoor ecm authmode WPA2/802.11i privacy ON >>>>>> deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss 7 >>>>>> scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme >>>>>> burst roaming MANUAL >>>>> >>>>> # ./athstats >>>>> 526213 data frames received >>>>> 10205 data frames transmit >>>>> 79 short on-chip tx retries >>>>> 103 long on-chip tx retries >>>>> 16 tx failed 'cuz too many retries >>>>> 220 mib overflow interrupts >>>>> MCS7 current transmit rate >>>>> 1 watchdog timeouts >>>>> 42 beacon miss interrupts >>>>> 23154 rx failed 'cuz of bad CRC >>>>> 56 rx failed 'cuz of PHY err >>>>> 56 illegal service >>>>> 1638 periodic calibrations >>>>> -0/+0 TDMA slot adjust (usecs, smoothed) >>>>> 56 rssi of last ack >>>>> 50 avg recv rssi >>>>> -96 rx noise floor >>>>> 13 phantom beacon misses >>>>> 6569 tx frames through raw api >>>>> 1460 A-MPDU sub-frames received >>>>> 183 Half-GI frames received >>>>> 183 40MHz frames received >>>>> 2397 CRC errors for non-last A-MPDU subframes >>>>> 3151 Frames transmitted with HT Protection >>>>> 25 A-MPDU sub-frame TX attempt success >>>>> 2 first step level >>>>> 1 OFDM weak signal detect >>>>> 268 listen time >>>>> 190 ANI increased spur immunity >>>>> 174 ANI decrease spur immunity >>>>> 2 ANI enabled OFDM weak signal detect >>>>> 3517 ANI disabled OFDM weak signal detect >>>>> 3515 ANI disabled CCK weak signal threshold >>>>> 4 ANI increased first step level >>>>> 2 ANI decreased first step level >>>>> 154772 cumulative OFDM phy error count >>>>> 528256 cumulative CCK phy error count >>>>> 851 ANI forced listen time to zero >>>>> 26 missing ACK's >>>>> 78 RTS without CTS >>>>> 3135 successful RTS >>>>> 65747 bad FCS >>>>> 473007 beacons received >>>>> 53 average rssi (beacons only) >>>>> 35 average rssi (all rx'd frames) >>>>> 48 average rssi (ACKs only) >>>>> Antenna profile: >>>>> [0] tx 10173 rx 4 >>>>> [1] tx 0 rx 526209 >>>>> >>>>> >>>>> # ./athaggrstats >>>>> 17 single frames scheduled >>>>> 9 aggregate frames scheduled >>>>> 1217 single frames scheduled due to low HWQ depth >>>>> >>>>> Aggregate size profile: >>>>> >>>>> 0: 0 1: 0 2: 6 3: 2 >>>>> 4: 0 5: 0 6: 0 7: 1 >>>>> 8: 0 9: 0 10: 0 11: 0 >>> >>> why # ifconfig -v wlan0 list channel >>> show only b and g channels? and only 13? or this restriction AR9285 >>> >>> though >>> # iperf -i 10 -t 20 -c 192.168.1.26 -w 1024K -l 1024K >>> ------------------------------------------------------------ >>> Client connecting to 192.168.1.26, TCP port 5001 >>> TCP window size: 1.00 MByte (WARNING: requested 1.00 MByte) >>> ------------------------------------------------------------ >>> [ 3] local 192.168.1.41 port 22263 connected with 192.168.1.26 port 5001 >>> [ ID] Interval Transfer Bandwidth >>> [ 3] 0.0-10.0 sec 54.0 MBytes 45.3 Mbits/sec > > Thanks > > I was confused that there is no mention n-mode in the output channel list From owner-freebsd-wireless@FreeBSD.ORG Sat Dec 15 16:04:45 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B7669BF; Sat, 15 Dec 2012 16:04:45 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 71A348FC14; Sat, 15 Dec 2012 16:04:45 +0000 (UTC) Received: from [10.0.10.3] ([173.88.197.103]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 15 Dec 2012 08:03:42 -0800 Message-ID: <50CC9F5E.6080102@a1poweruser.com> Date: Sat, 15 Dec 2012 11:03:42 -0500 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Adrian Chadd Subject: Re: AR9285 not see n-channels References: <50c92508.6384440a.1379.3a4a@mx.google.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Dec 2012 16:03:42.0340 (UTC) FILETIME=[C0F32440:01CDDADD] X-Sender: fbsd8@a1poweruser.com X-Authenticated-Sender: fbsd8@a1poweruser.com X-EchoSenderHash: [fbsd8]-[a1poweruser*com] Cc: "freebsd-wireless@freebsd.org" , freebsd-current 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: Sat, 15 Dec 2012 16:04:45 -0000 > Adrian > > On 12 December 2012 17:39, Andrey Fesenko wrote: >> On Thu, Dec 13, 2012 at 5:33 AM, Adrian Chadd wrote: >>> Hi, >>> >>> The AR9285 is a 2GHz only NIC. >>> >>> The channel list shows 11b, 11bg, HT20 and HT40 channels. >>> >>> It all looks right, why don't you think it is? >>> >>> >>> Adrian >>> >>> >>> On 12 December 2012 17:32, Andrey Fesenko wrote: >>>> On Thu, Dec 13, 2012 at 4:55 AM, Adrian Chadd wrote: >>>>> .. yup, you're doing 11n! Welcome! >>>>> >>>>> >>>>> >>>>> Adrian >>>>> >>>>> On 12 December 2012 16:54, Andrey Fesenko wrote: >>>>>> On Thu, Dec 13, 2012 at 4:44 AM, Adrian Chadd wrote: >>>>>>> Yup. It's doing 11n rates. >>>>>>> >>>>>>> Compile and run athstats, it'll tell you how many aggregate frames are being >>>>>>> sent and received. >>>>>>> >>>>>>> >>>>>>> >>>>>>> Adrian >>>>>>> >>>>>>> Sent from my Palm Pre on AT&T >>>>>>> >>>>>>> ________________________________ >>>>>>> On Dec 12, 2012 4:39 PM, Andrey Fesenko wrote: >>>>>>> >>>>>>> On Thu, Dec 13, 2012 at 4:32 AM, Adrian Chadd wrote: >>>>>>>> What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> adrian >>>>>>>> >>>>>>>> >>>>>>>> On 12 December 2012 15:51, Andrey Fesenko wrote: >>>>>>>>> I have >>>>>>>>> # uname -a >>>>>>>>> FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 >>>>>>>>> r243259: Mon Nov 19 09:28:08 MSK 2012 >>>>>>>>> root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 >>>>>>>>> # grep ATH /usr/src/sys/amd64/conf/W_BOOK >>>>>>>>> options ATH_ENABLE_11N >>>>>>>>> options ATH_DEBUG >>>>>>>>> options ATH_DIAGAPI >>>>>>>>> >>>>>>>>> pciconf >>>>>>>>> ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c >>>>>>>>> rev=0x01 hdr=0x00 >>>>>>>>> vendor = 'Atheros Communications Inc.' >>>>>>>>> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >>>>>>>>> class = network >>>>>>>>> >>>>>>>>> >>>>>>>>> # ifconfig -v wlan0 list channel >>>>>>>>> Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 >>>>>>>>> Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b >>>>>>>>> Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g >>>>>>>>> Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 >>>>>>>>> Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b >>>>>>>>> .... >>>>>>>>> >>>>>>>>> wi-fi router have and enable n-mode (linksys e4200) >>>>>>>>> How to turn on or activate n-mode? >>>>>>> # ifconfig wlan0 list sta >>>>>>> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG >>>>>>> 58:6d:8f:fa:d9:50 5 12 72M 27.5 0 2079 31872 EP AQEHTRS >>>>>>> RSN HTCAP WME WPS >>>>>>> # ifconfig wlan0 >>>>>>> wlan0: flags=8843 metric 0 mtu 1500 >>>>>>> ether 4c:0f:6e:4b:4e:f5 >>>>>>> inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255 >>>>>>> nd6 options=29 >>>>>>> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng >>>>>>> status: associated >>>>>>> ssid hometest channel 12 (2467 MHz 11g ht/20) bssid 58:6d:8f:fa:d9:50 >>>>>>> regdomain 101 indoor ecm authmode WPA2/802.11i privacy ON >>>>>>> deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss 7 >>>>>>> scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme >>>>>>> burst roaming MANUAL >>>>>> # ./athstats >>>>>> 526213 data frames received >>>>>> 10205 data frames transmit >>>>>> 79 short on-chip tx retries >>>>>> 103 long on-chip tx retries >>>>>> 16 tx failed 'cuz too many retries >>>>>> 220 mib overflow interrupts >>>>>> MCS7 current transmit rate >>>>>> 1 watchdog timeouts >>>>>> 42 beacon miss interrupts >>>>>> 23154 rx failed 'cuz of bad CRC >>>>>> 56 rx failed 'cuz of PHY err >>>>>> 56 illegal service >>>>>> 1638 periodic calibrations >>>>>> -0/+0 TDMA slot adjust (usecs, smoothed) >>>>>> 56 rssi of last ack >>>>>> 50 avg recv rssi >>>>>> -96 rx noise floor >>>>>> 13 phantom beacon misses >>>>>> 6569 tx frames through raw api >>>>>> 1460 A-MPDU sub-frames received >>>>>> 183 Half-GI frames received >>>>>> 183 40MHz frames received >>>>>> 2397 CRC errors for non-last A-MPDU subframes >>>>>> 3151 Frames transmitted with HT Protection >>>>>> 25 A-MPDU sub-frame TX attempt success >>>>>> 2 first step level >>>>>> 1 OFDM weak signal detect >>>>>> 268 listen time >>>>>> 190 ANI increased spur immunity >>>>>> 174 ANI decrease spur immunity >>>>>> 2 ANI enabled OFDM weak signal detect >>>>>> 3517 ANI disabled OFDM weak signal detect >>>>>> 3515 ANI disabled CCK weak signal threshold >>>>>> 4 ANI increased first step level >>>>>> 2 ANI decreased first step level >>>>>> 154772 cumulative OFDM phy error count >>>>>> 528256 cumulative CCK phy error count >>>>>> 851 ANI forced listen time to zero >>>>>> 26 missing ACK's >>>>>> 78 RTS without CTS >>>>>> 3135 successful RTS >>>>>> 65747 bad FCS >>>>>> 473007 beacons received >>>>>> 53 average rssi (beacons only) >>>>>> 35 average rssi (all rx'd frames) >>>>>> 48 average rssi (ACKs only) >>>>>> Antenna profile: >>>>>> [0] tx 10173 rx 4 >>>>>> [1] tx 0 rx 526209 >>>>>> >>>>>> >>>>>> # ./athaggrstats >>>>>> 17 single frames scheduled >>>>>> 9 aggregate frames scheduled >>>>>> 1217 single frames scheduled due to low HWQ depth >>>>>> >>>>>> Aggregate size profile: >>>>>> >>>>>> 0: 0 1: 0 2: 6 3: 2 >>>>>> 4: 0 5: 0 6: 0 7: 1 >>>>>> 8: 0 9: 0 10: 0 11: 0 >>>> why # ifconfig -v wlan0 list channel >>>> show only b and g channels? and only 13? or this restriction AR9285 >>>> >>>> though >>>> # iperf -i 10 -t 20 -c 192.168.1.26 -w 1024K -l 1024K >>>> ------------------------------------------------------------ >>>> Client connecting to 192.168.1.26, TCP port 5001 >>>> TCP window size: 1.00 MByte (WARNING: requested 1.00 MByte) >>>> ------------------------------------------------------------ >>>> [ 3] local 192.168.1.41 port 22263 connected with 192.168.1.26 port 5001 >>>> [ ID] Interval Transfer Bandwidth >>>> [ 3] 0.0-10.0 sec 54.0 MBytes 45.3 Mbits/sec >> Thanks >> >> I was confused that there is no mention n-mode in the output channel list > Adrian Chadd wrote: > Right, that's what "HT" is for. > > Well it would be much clearer to understand by changing the output of the the channel list to show 11b, 11bg, 11n20 and 11n40 channels instead of HT20 and HT40, so people would readily know n-mode was active. HT has no meaning to the general user. From owner-freebsd-wireless@FreeBSD.ORG Sat Dec 15 16:32:23 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A4EE610; Sat, 15 Dec 2012 16:32:23 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (mail.in-addr.com [IPv6:2001:470:8:162::1]) by mx1.freebsd.org (Postfix) with ESMTP id EBCF28FC12; Sat, 15 Dec 2012 16:32:22 +0000 (UTC) Received: from gjp by noop.in-addr.com with local (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1Tjueo-0008eh-Da; Sat, 15 Dec 2012 11:32:10 -0500 Date: Sat, 15 Dec 2012 11:32:10 -0500 From: Gary Palmer To: Fbsd8 Subject: Re: AR9285 not see n-channels Message-ID: <20121215163210.GD20011@in-addr.com> References: <50c92508.6384440a.1379.3a4a@mx.google.com> <50CC9F5E.6080102@a1poweruser.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50CC9F5E.6080102@a1poweruser.com> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on noop.in-addr.com); SAEximRunCond expanded to false Cc: "freebsd-wireless@freebsd.org" , freebsd-current 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: Sat, 15 Dec 2012 16:32:23 -0000 On Sat, Dec 15, 2012 at 11:03:42AM -0500, Fbsd8 wrote: > > > Adrian > > > > On 12 December 2012 17:39, Andrey Fesenko wrote: > >> On Thu, Dec 13, 2012 at 5:33 AM, Adrian Chadd wrote: > >>> Hi, > >>> > >>> The AR9285 is a 2GHz only NIC. > >>> > >>> The channel list shows 11b, 11bg, HT20 and HT40 channels. > >>> > >>> It all looks right, why don't you think it is? > >>> > >>> > >>> Adrian > >>> > >>> > >>> On 12 December 2012 17:32, Andrey Fesenko wrote: > >>>> On Thu, Dec 13, 2012 at 4:55 AM, Adrian Chadd wrote: > >>>>> .. yup, you're doing 11n! Welcome! > >>>>> > >>>>> > >>>>> > >>>>> Adrian > >>>>> > >>>>> On 12 December 2012 16:54, Andrey Fesenko wrote: > >>>>>> On Thu, Dec 13, 2012 at 4:44 AM, Adrian Chadd wrote: > >>>>>>> Yup. It's doing 11n rates. > >>>>>>> > >>>>>>> Compile and run athstats, it'll tell you how many aggregate frames are being > >>>>>>> sent and received. > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> Adrian > >>>>>>> > >>>>>>> Sent from my Palm Pre on AT&T > >>>>>>> > >>>>>>> ________________________________ > >>>>>>> On Dec 12, 2012 4:39 PM, Andrey Fesenko wrote: > >>>>>>> > >>>>>>> On Thu, Dec 13, 2012 at 4:32 AM, Adrian Chadd wrote: > >>>>>>>> What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> adrian > >>>>>>>> > >>>>>>>> > >>>>>>>> On 12 December 2012 15:51, Andrey Fesenko wrote: > >>>>>>>>> I have > >>>>>>>>> # uname -a > >>>>>>>>> FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 > >>>>>>>>> r243259: Mon Nov 19 09:28:08 MSK 2012 > >>>>>>>>> root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 > >>>>>>>>> # grep ATH /usr/src/sys/amd64/conf/W_BOOK > >>>>>>>>> options ATH_ENABLE_11N > >>>>>>>>> options ATH_DEBUG > >>>>>>>>> options ATH_DIAGAPI > >>>>>>>>> > >>>>>>>>> pciconf > >>>>>>>>> ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c > >>>>>>>>> rev=0x01 hdr=0x00 > >>>>>>>>> vendor = 'Atheros Communications Inc.' > >>>>>>>>> device = 'AR9285 Wireless Network Adapter (PCI-Express)' > >>>>>>>>> class = network > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> # ifconfig -v wlan0 list channel > >>>>>>>>> Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 > >>>>>>>>> Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b > >>>>>>>>> Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g > >>>>>>>>> Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 > >>>>>>>>> Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b > >>>>>>>>> .... > >>>>>>>>> > >>>>>>>>> wi-fi router have and enable n-mode (linksys e4200) > >>>>>>>>> How to turn on or activate n-mode? > >>>>>>> # ifconfig wlan0 list sta > >>>>>>> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > >>>>>>> 58:6d:8f:fa:d9:50 5 12 72M 27.5 0 2079 31872 EP AQEHTRS > >>>>>>> RSN HTCAP WME WPS > >>>>>>> # ifconfig wlan0 > >>>>>>> wlan0: flags=8843 metric 0 mtu 1500 > >>>>>>> ether 4c:0f:6e:4b:4e:f5 > >>>>>>> inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255 > >>>>>>> nd6 options=29 > >>>>>>> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng > >>>>>>> status: associated > >>>>>>> ssid hometest channel 12 (2467 MHz 11g ht/20) bssid 58:6d:8f:fa:d9:50 > >>>>>>> regdomain 101 indoor ecm authmode WPA2/802.11i privacy ON > >>>>>>> deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss 7 > >>>>>>> scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme > >>>>>>> burst roaming MANUAL > >>>>>> # ./athstats > >>>>>> 526213 data frames received > >>>>>> 10205 data frames transmit > >>>>>> 79 short on-chip tx retries > >>>>>> 103 long on-chip tx retries > >>>>>> 16 tx failed 'cuz too many retries > >>>>>> 220 mib overflow interrupts > >>>>>> MCS7 current transmit rate > >>>>>> 1 watchdog timeouts > >>>>>> 42 beacon miss interrupts > >>>>>> 23154 rx failed 'cuz of bad CRC > >>>>>> 56 rx failed 'cuz of PHY err > >>>>>> 56 illegal service > >>>>>> 1638 periodic calibrations > >>>>>> -0/+0 TDMA slot adjust (usecs, smoothed) > >>>>>> 56 rssi of last ack > >>>>>> 50 avg recv rssi > >>>>>> -96 rx noise floor > >>>>>> 13 phantom beacon misses > >>>>>> 6569 tx frames through raw api > >>>>>> 1460 A-MPDU sub-frames received > >>>>>> 183 Half-GI frames received > >>>>>> 183 40MHz frames received > >>>>>> 2397 CRC errors for non-last A-MPDU subframes > >>>>>> 3151 Frames transmitted with HT Protection > >>>>>> 25 A-MPDU sub-frame TX attempt success > >>>>>> 2 first step level > >>>>>> 1 OFDM weak signal detect > >>>>>> 268 listen time > >>>>>> 190 ANI increased spur immunity > >>>>>> 174 ANI decrease spur immunity > >>>>>> 2 ANI enabled OFDM weak signal detect > >>>>>> 3517 ANI disabled OFDM weak signal detect > >>>>>> 3515 ANI disabled CCK weak signal threshold > >>>>>> 4 ANI increased first step level > >>>>>> 2 ANI decreased first step level > >>>>>> 154772 cumulative OFDM phy error count > >>>>>> 528256 cumulative CCK phy error count > >>>>>> 851 ANI forced listen time to zero > >>>>>> 26 missing ACK's > >>>>>> 78 RTS without CTS > >>>>>> 3135 successful RTS > >>>>>> 65747 bad FCS > >>>>>> 473007 beacons received > >>>>>> 53 average rssi (beacons only) > >>>>>> 35 average rssi (all rx'd frames) > >>>>>> 48 average rssi (ACKs only) > >>>>>> Antenna profile: > >>>>>> [0] tx 10173 rx 4 > >>>>>> [1] tx 0 rx 526209 > >>>>>> > >>>>>> > >>>>>> # ./athaggrstats > >>>>>> 17 single frames scheduled > >>>>>> 9 aggregate frames scheduled > >>>>>> 1217 single frames scheduled due to low HWQ depth > >>>>>> > >>>>>> Aggregate size profile: > >>>>>> > >>>>>> 0: 0 1: 0 2: 6 3: 2 > >>>>>> 4: 0 5: 0 6: 0 7: 1 > >>>>>> 8: 0 9: 0 10: 0 11: 0 > >>>> why # ifconfig -v wlan0 list channel > >>>> show only b and g channels? and only 13? or this restriction AR9285 > >>>> > >>>> though > >>>> # iperf -i 10 -t 20 -c 192.168.1.26 -w 1024K -l 1024K > >>>> ------------------------------------------------------------ > >>>> Client connecting to 192.168.1.26, TCP port 5001 > >>>> TCP window size: 1.00 MByte (WARNING: requested 1.00 MByte) > >>>> ------------------------------------------------------------ > >>>> [ 3] local 192.168.1.41 port 22263 connected with 192.168.1.26 port 5001 > >>>> [ ID] Interval Transfer Bandwidth > >>>> [ 3] 0.0-10.0 sec 54.0 MBytes 45.3 Mbits/sec > >> Thanks > >> > >> I was confused that there is no mention n-mode in the output channel list > > > Adrian Chadd wrote: > > Right, that's what "HT" is for. > > > > > > Well it would be much clearer to understand by changing the output of > the the channel list to show 11b, 11bg, 11n20 and 11n40 channels instead > of HT20 and HT40, so people would readily know n-mode was active. HT has > no meaning to the general user. Did you check 'man ifconfig'? The meaning of HT is clearly documented. I agree that the output could be made clearer, however a very quick glance at the man page showed what HT meant in this context. Gary From owner-freebsd-wireless@FreeBSD.ORG Sat Dec 15 19:55:31 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DD59937F; Sat, 15 Dec 2012 19:55:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by mx1.freebsd.org (Postfix) with ESMTP id 37EEB8FC0C; Sat, 15 Dec 2012 19:55:30 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id 12so1935526wgh.31 for ; Sat, 15 Dec 2012 11:55:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=KgH6pYv90Tz1vpdnDwvnp0b0FXD5WPljs6BAztYdXr8=; b=iPuPh6UGBXWybs28cA87M3F+RO7LrffoUU8ffMpOwEm4ViCuY6OVmN2Bg2II//CUq3 sQWYtFo/G3qrM2JxUcWnTvtxwGMPeucCtlySUG5mtwqEOYxrdqmicnGMdmXgwFTP/sVs uJt/Ev9eOcGrrIRXEEqghmDXVyBaBKkarPc2ZdnnqOOlO/6U3rVvKAWO1yfbjEc51QO8 h1YQRFqm7nW2+j9NOVlhQwHQBhCztIfXnqCqZDwd66FE5hdAIMmkeOejOJ7EPes4a4qY cJH/7QLPNSNuJRzBQ2QCQMbWrTUqldJL90zs6FSiNjUGLVRPNfrQj8sdJcnTDKPGcksI hN7Q== MIME-Version: 1.0 Received: by 10.194.93.40 with SMTP id cr8mr9730574wjb.16.1355601330192; Sat, 15 Dec 2012 11:55:30 -0800 (PST) Received: by 10.217.57.9 with HTTP; Sat, 15 Dec 2012 11:55:29 -0800 (PST) In-Reply-To: <50CC9F5E.6080102@a1poweruser.com> References: <50c92508.6384440a.1379.3a4a@mx.google.com> <50CC9F5E.6080102@a1poweruser.com> Date: Sat, 15 Dec 2012 11:55:29 -0800 Message-ID: Subject: Re: AR9285 not see n-channels From: Adrian Chadd To: Fbsd8 Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" , freebsd-current 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: Sat, 15 Dec 2012 19:55:31 -0000 Hi, The output is in line with the 802.11n specification, which calls all of this stuff "HT". I'll work with Eadler and others to improve the wireless documentation and FAQ and I'll make sure there's a chapter on "802.11n", which explains what HT (high throughput) is. 802.11ac is adding "VHT" (very high throughput) rates, so expect ifconfig to grow vht information shortly. Adrian On 15 December 2012 08:03, Fbsd8 wrote: > >> Adrian >> >> On 12 December 2012 17:39, Andrey Fesenko wrote: >>> >>> On Thu, Dec 13, 2012 at 5:33 AM, Adrian Chadd >>> wrote: >>>> >>>> Hi, >>>> >>>> The AR9285 is a 2GHz only NIC. >>>> >>>> The channel list shows 11b, 11bg, HT20 and HT40 channels. >>>> >>>> It all looks right, why don't you think it is? >>>> >>>> >>>> Adrian >>>> >>>> >>>> On 12 December 2012 17:32, Andrey Fesenko wrote: >>>>> >>>>> On Thu, Dec 13, 2012 at 4:55 AM, Adrian Chadd >>>>> wrote: >>>>>> >>>>>> .. yup, you're doing 11n! Welcome! >>>>>> >>>>>> >>>>>> >>>>>> Adrian >>>>>> >>>>>> On 12 December 2012 16:54, Andrey Fesenko wrote: >>>>>>> >>>>>>> On Thu, Dec 13, 2012 at 4:44 AM, Adrian Chadd >>>>>>> wrote: >>>>>>>> >>>>>>>> Yup. It's doing 11n rates. >>>>>>>> >>>>>>>> Compile and run athstats, it'll tell you how many aggregate frames >>>>>>>> are being >>>>>>>> sent and received. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Adrian >>>>>>>> >>>>>>>> Sent from my Palm Pre on AT&T >>>>>>>> >>>>>>>> ________________________________ >>>>>>>> On Dec 12, 2012 4:39 PM, Andrey Fesenko wrote: >>>>>>>> >>>>>>>> On Thu, Dec 13, 2012 at 4:32 AM, Adrian Chadd >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> adrian >>>>>>>>> >>>>>>>>> >>>>>>>>> On 12 December 2012 15:51, Andrey Fesenko >>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> I have >>>>>>>>>> # uname -a >>>>>>>>>> FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT >>>>>>>>>> #1 >>>>>>>>>> r243259: Mon Nov 19 09:28:08 MSK 2012 >>>>>>>>>> root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 >>>>>>>>>> # grep ATH /usr/src/sys/amd64/conf/W_BOOK >>>>>>>>>> options ATH_ENABLE_11N >>>>>>>>>> options ATH_DEBUG >>>>>>>>>> options ATH_DIAGAPI >>>>>>>>>> >>>>>>>>>> pciconf >>>>>>>>>> ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c >>>>>>>>>> rev=0x01 hdr=0x00 >>>>>>>>>> vendor = 'Atheros Communications Inc.' >>>>>>>>>> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >>>>>>>>>> class = network >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> # ifconfig -v wlan0 list channel >>>>>>>>>> Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 >>>>>>>>>> Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b >>>>>>>>>> Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g >>>>>>>>>> Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 >>>>>>>>>> Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b >>>>>>>>>> .... >>>>>>>>>> >>>>>>>>>> wi-fi router have and enable n-mode (linksys e4200) >>>>>>>>>> How to turn on or activate n-mode? >>>>>>>> >>>>>>>> # ifconfig wlan0 list sta >>>>>>>> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG >>>>>>>> 58:6d:8f:fa:d9:50 5 12 72M 27.5 0 2079 31872 EP AQEHTRS >>>>>>>> RSN HTCAP WME WPS >>>>>>>> # ifconfig wlan0 >>>>>>>> wlan0: flags=8843 metric 0 >>>>>>>> mtu 1500 >>>>>>>> ether 4c:0f:6e:4b:4e:f5 >>>>>>>> inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255 >>>>>>>> nd6 options=29 >>>>>>>> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng >>>>>>>> status: associated >>>>>>>> ssid hometest channel 12 (2467 MHz 11g ht/20) bssid >>>>>>>> 58:6d:8f:fa:d9:50 >>>>>>>> regdomain 101 indoor ecm authmode WPA2/802.11i privacy ON >>>>>>>> deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss >>>>>>>> 7 >>>>>>>> scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme >>>>>>>> burst roaming MANUAL >>>>>>> >>>>>>> # ./athstats >>>>>>> 526213 data frames received >>>>>>> 10205 data frames transmit >>>>>>> 79 short on-chip tx retries >>>>>>> 103 long on-chip tx retries >>>>>>> 16 tx failed 'cuz too many retries >>>>>>> 220 mib overflow interrupts >>>>>>> MCS7 current transmit rate >>>>>>> 1 watchdog timeouts >>>>>>> 42 beacon miss interrupts >>>>>>> 23154 rx failed 'cuz of bad CRC >>>>>>> 56 rx failed 'cuz of PHY err >>>>>>> 56 illegal service >>>>>>> 1638 periodic calibrations >>>>>>> -0/+0 TDMA slot adjust (usecs, smoothed) >>>>>>> 56 rssi of last ack >>>>>>> 50 avg recv rssi >>>>>>> -96 rx noise floor >>>>>>> 13 phantom beacon misses >>>>>>> 6569 tx frames through raw api >>>>>>> 1460 A-MPDU sub-frames received >>>>>>> 183 Half-GI frames received >>>>>>> 183 40MHz frames received >>>>>>> 2397 CRC errors for non-last A-MPDU subframes >>>>>>> 3151 Frames transmitted with HT Protection >>>>>>> 25 A-MPDU sub-frame TX attempt success >>>>>>> 2 first step level >>>>>>> 1 OFDM weak signal detect >>>>>>> 268 listen time >>>>>>> 190 ANI increased spur immunity >>>>>>> 174 ANI decrease spur immunity >>>>>>> 2 ANI enabled OFDM weak signal detect >>>>>>> 3517 ANI disabled OFDM weak signal detect >>>>>>> 3515 ANI disabled CCK weak signal threshold >>>>>>> 4 ANI increased first step level >>>>>>> 2 ANI decreased first step level >>>>>>> 154772 cumulative OFDM phy error count >>>>>>> 528256 cumulative CCK phy error count >>>>>>> 851 ANI forced listen time to zero >>>>>>> 26 missing ACK's >>>>>>> 78 RTS without CTS >>>>>>> 3135 successful RTS >>>>>>> 65747 bad FCS >>>>>>> 473007 beacons received >>>>>>> 53 average rssi (beacons only) >>>>>>> 35 average rssi (all rx'd frames) >>>>>>> 48 average rssi (ACKs only) >>>>>>> Antenna profile: >>>>>>> [0] tx 10173 rx 4 >>>>>>> [1] tx 0 rx 526209 >>>>>>> >>>>>>> >>>>>>> # ./athaggrstats >>>>>>> 17 single frames scheduled >>>>>>> 9 aggregate frames scheduled >>>>>>> 1217 single frames scheduled due to low HWQ depth >>>>>>> >>>>>>> Aggregate size profile: >>>>>>> >>>>>>> 0: 0 1: 0 2: 6 3: 2 >>>>>>> 4: 0 5: 0 6: 0 7: 1 >>>>>>> 8: 0 9: 0 10: 0 11: 0 >>>>> >>>>> why # ifconfig -v wlan0 list channel >>>>> show only b and g channels? and only 13? or this restriction AR9285 >>>>> >>>>> though >>>>> # iperf -i 10 -t 20 -c 192.168.1.26 -w 1024K -l 1024K >>>>> ------------------------------------------------------------ >>>>> Client connecting to 192.168.1.26, TCP port 5001 >>>>> TCP window size: 1.00 MByte (WARNING: requested 1.00 MByte) >>>>> ------------------------------------------------------------ >>>>> [ 3] local 192.168.1.41 port 22263 connected with 192.168.1.26 port >>>>> 5001 >>>>> [ ID] Interval Transfer Bandwidth >>>>> [ 3] 0.0-10.0 sec 54.0 MBytes 45.3 Mbits/sec >>> >>> Thanks >>> >>> I was confused that there is no mention n-mode in the output channel list >> >> > Adrian Chadd wrote: >> Right, that's what "HT" is for. >> >> > > Well it would be much clearer to understand by changing the output of the > the channel list to show 11b, 11bg, 11n20 and 11n40 channels instead of HT20 > and HT40, so people would readily know n-mode was active. HT has no meaning > to the general user. >