From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 15 21:11:02 2012 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 14A851065670 for ; Sun, 15 Jul 2012 21:11:02 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id BC4898FC0A for ; Sun, 15 Jul 2012 21:11:01 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:88ae:734:80aa:c1c1]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id B84994AC32; Mon, 16 Jul 2012 01:10:54 +0400 (MSK) Date: Mon, 16 Jul 2012 01:10:53 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <7750188.20120716011053@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <298155894.20120709002844@serebryakov.spb.ru> <1491344515.20120709013411@serebryakov.spb.ru> <1252921508.20120709132351@serebryakov.spb.ru> <802688919.20120709140808@serebryakov.spb.ru> <1966637204.20120713194935@serebryakov.spb.ru> <5862675.20120713203432@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: ath0: device timeout with 802.11n client X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2012 21:11:02 -0000 Hello, Adrian. You wrote 15 =E8=FE=EB=FF 2012 =E3., 1:15:11: AC> Please enable BAR debuggng.. Check if_ath_debug.c for the code. Do you mean dev.ath.0.debug=3D4294967296 # 0x100000000 AC> I think its going to be another race in BAR handling where I am not AC> unpausing things. I'll watch logs with this setting. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 15 21:11:28 2012 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70035106564A; Sun, 15 Jul 2012 21:11:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 33F428FC0C; Sun, 15 Jul 2012 21:11:28 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so9631367pbb.13 for ; Sun, 15 Jul 2012 14:11:27 -0700 (PDT) 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:content-transfer-encoding; bh=+0euISWgq3Cvs66lQ+8AsEBiqki5I1smWJ2A527/T80=; b=iTF/5Pw2VmMsrbTixKXfrewz8s3sghzHGir0wHwShGFimjNoDR2x17uDT8WTxjnxia ZjBS9WwxxOChzTLldAB16xUzcBZgKGxQOu4sTE4Zw8EKS1C3AyYF4V6QDNkce9Egh1c/ rfwJ1V1HNNDkeZLS3PqxdiTlTSCrlrq2ff1GvBfajHceZ9CI4OCeKM85GF4mcTSbhAW5 uw0aowhi47Hrus/M/3JR/OSmPdymPVmbMcyx0RwgV9RKFPP+d4kOHH/0aHwkqq1WRqxf UWjgtCNVPa0kSN0ABWBWwIYkW12fjc2q4Ol8I3vwKu5rkfqI3pZMLSCXM4LkPJ/u8cPQ SgIg== MIME-Version: 1.0 Received: by 10.68.221.106 with SMTP id qd10mr22030254pbc.42.1342386687828; Sun, 15 Jul 2012 14:11:27 -0700 (PDT) Received: by 10.68.195.102 with HTTP; Sun, 15 Jul 2012 14:11:27 -0700 (PDT) In-Reply-To: <7750188.20120716011053@serebryakov.spb.ru> References: <298155894.20120709002844@serebryakov.spb.ru> <1491344515.20120709013411@serebryakov.spb.ru> <1252921508.20120709132351@serebryakov.spb.ru> <802688919.20120709140808@serebryakov.spb.ru> <1966637204.20120713194935@serebryakov.spb.ru> <5862675.20120713203432@serebryakov.spb.ru> <7750188.20120716011053@serebryakov.spb.ru> Date: Sun, 15 Jul 2012 14:11:27 -0700 Message-ID: From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: ath0: device timeout with 802.11n client X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2012 21:11:28 -0000 I think that's the one, yes. Adrian On 15 July 2012 14:10, Lev Serebryakov wrote: > Hello, Adrian. > You wrote 15 =D0=B8=D1=8E=D0=BB=D1=8F 2012 =D0=B3., 1:15:11: > > > AC> Please enable BAR debuggng.. Check if_ath_debug.c for the code. > Do you mean > dev.ath.0.debug=3D4294967296 # 0x100000000 > > AC> I think its going to be another race in BAR handling where I am not > AC> unpausing things. > I'll watch logs with this setting. > > -- > // Black Lion AKA Lev Serebryakov > From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 16 11:09:38 2012 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 113A81065672 for ; Mon, 16 Jul 2012 11:09:38 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EAC168FC0C for ; Mon, 16 Jul 2012 11:09:37 +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 q6GB9b6Z094200 for ; Mon, 16 Jul 2012 11:09:37 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6GB9aDm094197 for freebsd-wireless@FreeBSD.org; Mon, 16 Jul 2012 11:09:36 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 Jul 2012 11:09:36 GMT Message-Id: <201207161109.q6GB9aDm094197@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 Cc: Subject: Current problem reports assigned to freebsd-wireless@FreeBSD.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2012 11:09:38 -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/169433 wireless [iwn] iwn(4) doesn't support 6235 chip. o kern/169432 wireless [ath] BAR TX hang when aggregation session is reset du o 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 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 115 problems total. From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 18 22:53:17 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA23D1065676 for ; Wed, 18 Jul 2012 22:53:17 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id 611798FC0A for ; Wed, 18 Jul 2012 22:53:17 +0000 (UTC) Received: by qabg1 with SMTP id g1so3459818qab.13 for ; Wed, 18 Jul 2012 15:53:16 -0700 (PDT) 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=tmtcq3jAsWE7Yemxv6iCB/B9IKMaho2N/34ZLWePZY8=; b=MfyJ0pVuRraBnRnZQM87+8LPI+L74l/UMfRC+XL72klK1n/1E1UOfgnE9MZaniqPpL ueeDYH9H3bPewDBTDijkcSiN8x1LtpQo5ICQxCCDaDsqxF+9eCKlxNv9vkYnCrC5H4Rg 2tzLUUt3H9PRTz+WkUC2uAKz/Jx4nxe2CRFqlgpzVH+JQLjhBPuiQ/8HMWVyLozZxoT5 zzEOpokqVhNlZJiCYgnwSSt3zfXsNdhtOxzJifv255t4GsV8yIBeTea3KyomDob+wr7u rIPuRpax9/jYs9sfK02v2kewkoSTO4GpKRPI+YX0182Tx+Z9xgqZ2DjVsNA2a8kLN1MP Xl8g== MIME-Version: 1.0 Received: by 10.224.189.137 with SMTP id de9mr51623qab.7.1342651996627; Wed, 18 Jul 2012 15:53:16 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Wed, 18 Jul 2012 15:53:16 -0700 (PDT) Date: Wed, 18 Jul 2012 18:53:16 -0400 Message-ID: From: Kim Culhan To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: AR9227 hostap on FreeBSD 10-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2012 22:53:17 -0000 Been wanting to check out 802.11n operation, what with all the effort Adrian, Bernhard and others have been putting into the project ..Seems its really getting 'up to speed'. When AR9227-based cards became available locally at a good price I snarfed a couple. One card is running in a FreeBSD 10-current machine in hostap mode and I'm trying to figure out whether its connected in .11n mode. ifconfig wlan0 shows: wlan0: flags=8943 metric 0 mtu 1500 ether f8:d1:11:39:3d:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ath channel 11 (2462 MHz 11g ht/40-) bssid f8:d1:11:39:3d:e5 regdomain 32924 country CN indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 -dfs Looking at the section with: 11g ht/40- Does this indicate 11g mode? The card on the client end is the same type hardware about 12 feet away, signal strength should not be a problem :) -kim From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 18 22:54:32 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 EDD971065672 for ; Wed, 18 Jul 2012 22:54:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8B8368FC16 for ; Wed, 18 Jul 2012 22:54:32 +0000 (UTC) Received: by yhfs35 with SMTP id s35so2596515yhf.13 for ; Wed, 18 Jul 2012 15:54:32 -0700 (PDT) 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=f71RbsdfxEpggvA/XaKl6OF2IpDL+uQuIBlRdJT0jLk=; b=n07S2iwa6fNBUj1imOIZT4UlOFdq/rDtdF1O8SpPsU7o9/GCq9oegLMkIgXHXbLl4I /hPhP7EtebU3ZthZamVUkT4mJgmaMmYdfK1z72aKpe59IEqyToAKYHIablJAaqfV/hLH eY1eaTNVi1DN38zoi+2nmU4b3oM7ZWgOoVwWvcsGre+JghU1U5NGLWmRfx7QxRwmGHCg AnTuCsGp+1J7R4i3isZmpvlu1oAyr66NKqf+R9F5IRebHOCsv2Ed9ohtFQv83f9ZArTK NlMz8wyWtp0weXomPnvcZoIv1azmW0CFF3jFNg62S0fPKSF/1Eipp78c3KnOZUetRNGW CUlw== MIME-Version: 1.0 Received: by 10.66.75.97 with SMTP id b1mr3151562paw.15.1342652071498; Wed, 18 Jul 2012 15:54:31 -0700 (PDT) Received: by 10.68.195.102 with HTTP; Wed, 18 Jul 2012 15:54:31 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Jul 2012 15:54:31 -0700 Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR9227 hostap on FreeBSD 10-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2012 22:54:33 -0000 It says HT40, so it's 11n. Do 'ifconfig wlan0 list sta', see what speeds the stations are at. Do 'sysctl dev.ath.0.sample_stats=1' and check dmesg, see whether it's TXing using MCS or legacy rates. Adrian On 18 July 2012 15:53, Kim Culhan wrote: > Been wanting to check out 802.11n operation, what with all the effort > Adrian, Bernhard and > others have been putting into the project ..Seems its really getting > 'up to speed'. > > When AR9227-based cards became available locally at a good price I > snarfed a couple. > > One card is running in a FreeBSD 10-current machine in hostap mode and > I'm trying to > figure out whether its connected in .11n mode. > > ifconfig wlan0 shows: > > wlan0: flags=8943 > metric 0 mtu 1500 > ether f8:d1:11:39:3d:e5 > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng > status: running > ssid ath channel 11 (2462 MHz 11g ht/40-) bssid f8:d1:11:39:3d:e5 > regdomain 32924 country CN indoor ecm authmode WPA2/802.11i > privacy MIXED deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit > txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 > shortgi wme burst dtimperiod 1 -dfs > > > Looking at the section with: 11g ht/40- > > Does this indicate 11g mode? > > The card on the client end is the same type hardware about 12 feet > away, signal strength > should not be a problem :) > > -kim > _______________________________________________ > 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 Wed Jul 18 23: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 4CA71106577F for ; Wed, 18 Jul 2012 23:32:21 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8AED08FC15 for ; Wed, 18 Jul 2012 23:32:21 +0000 (UTC) Received: by qaat11 with SMTP id t11so1453676qaa.13 for ; Wed, 18 Jul 2012 16:32:20 -0700 (PDT) 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=F9GOsCt25Ufl9dpcbdgVAiPDKK4STWU3tYd5X/mJVsw=; b=srdIR8vpqPcxcgCHP3+7FnX1EKim125d2bOnL6iIPAqt6iH7mPW4HBYFPGmoUx7PoV HDgHeKN5dtPN3dY8D00T9f/hOTCHO1NEk7jX4SyCNrkycl4Dx8mP1PI5+zpZ0btpQcMx wZtj3yFGoMnMt+z1dLvzjLLZkVmMmKK7l2QSpwuyhg87zQxyMGwZGF4Eg3hDHtvayPpu M/N8UrW5CnmqIC5RpA08mOniY4yricoFc8fUOJRGaHZV/YtlI+5oopIB3ZTuPMFankWF KkvqdNifE+ZrWg5qXnw6aRtn8PacsLAHC6aZ+v7o4elVeJ2iSXGNru1khOArqVoQlLW9 oJpg== MIME-Version: 1.0 Received: by 10.224.222.147 with SMTP id ig19mr172265qab.32.1342654340819; Wed, 18 Jul 2012 16:32:20 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Wed, 18 Jul 2012 16:32:20 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Jul 2012 19:32:20 -0400 Message-ID: From: Kim Culhan To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR9227 hostap on FreeBSD 10-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2012 23:32:23 -0000 On Wed, Jul 18, 2012 at 6:54 PM, Adrian Chadd wrote: > It says HT40, so it's 11n. > > Do 'ifconfig wlan0 list sta', see what speeds the stations are at. > > Do 'sysctl dev.ath.0.sample_stats=1' and check dmesg, see whether it's > TXing using MCS or legacy rates. ifconfig list sta returns: ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG 90:f6:52:76:ec:98 3 11 135M 20.0 0 872 22944 EPS AQEHTRS WME HTCAP ATH RSN f8:d1:11:39:4f:b4 1 11 243M 22.0 0 273 64208 EPS AQEHTRS RSN WME HTCAP The first sta is a TP-Link TL-WA701ND in client mode The second sta is the other AR9227 device which is a TP-Link TL-WN851ND V1 sysctl dev.ath.0.sample_stats=1 returns dev.ath.0.sample_stats: 0 -> 0 I don't see anything ath to add to the kernel config, wonder whats causing that? -kim From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 18 23:43:13 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 77207106566C for ; Wed, 18 Jul 2012 23:43:13 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 49CC18FC12 for ; Wed, 18 Jul 2012 23:43:13 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so3667241pbb.13 for ; Wed, 18 Jul 2012 16:43:13 -0700 (PDT) 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=CcxCRuCGw1AV1W/L1g307oUgcJCgR22YdqqmLfJpaFM=; b=jR7AumhD8u1YGSuyzPw9UQntFUVLujnyLThcUzi6JxwYBO8ATZc/SsucItBYs6nWbW ODr69Bmozluuo1bFohYgtGy9BXebrHetiCV01h2CIEM0EdEzDSGLH/FUk47a/lJrmv/c FOvl+bQTJxraqFANhQWCpIXfW4ujWKns4+AKAiYA+SI2aWrGnB65hEDP+BdPhUPblnO7 SaEeYj+2ro39gIyNZU7c7CXWIUEh1zwQDjb9K1WTrp0+byJXODC0QoAltd6JKYCdYdMH 8pjyjHdvbiPlr4h+YPlcEFLUUH27VuAS5W3ozbgOxBIoyEojmjwGsC2LS79TV6NWkal8 KuCQ== MIME-Version: 1.0 Received: by 10.68.222.163 with SMTP id qn3mr74160pbc.135.1342654993008; Wed, 18 Jul 2012 16:43:13 -0700 (PDT) Received: by 10.68.195.102 with HTTP; Wed, 18 Jul 2012 16:43:12 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Jul 2012 16:43:12 -0700 Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR9227 hostap on FreeBSD 10-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2012 23:43:13 -0000 On 18 July 2012 16:32, Kim Culhan wrote: > On Wed, Jul 18, 2012 at 6:54 PM, Adrian Chadd wrote: >> It says HT40, so it's 11n. >> >> Do 'ifconfig wlan0 list sta', see what speeds the stations are at. >> >> Do 'sysctl dev.ath.0.sample_stats=1' and check dmesg, see whether it's >> TXing using MCS or legacy rates. > > ifconfig list sta returns: > > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 90:f6:52:76:ec:98 3 11 135M 20.0 0 872 22944 EPS AQEHTRS > WME HTCAP ATH RSN > f8:d1:11:39:4f:b4 1 11 243M 22.0 0 273 64208 EPS AQEHTRS > RSN WME HTCAP Yup! 11n rates. > The first sta is a TP-Link TL-WA701ND in client mode > > The second sta is the other AR9227 device which is a TP-Link TL-WN851ND V1 > > sysctl dev.ath.0.sample_stats=1 > > returns > > dev.ath.0.sample_stats: 0 -> 0 Then check 'dmesg'. I'd really like to export the ath and net80211 rate control information to userland in a sensible way, rather than constantly checking dmesg for this. Maybe I'll work on that tonight. Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 18 23:53:40 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DDEA1065672 for ; Wed, 18 Jul 2012 23:53:40 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2363F8FC12 for ; Wed, 18 Jul 2012 23:53:40 +0000 (UTC) Received: by qaat11 with SMTP id t11so1461056qaa.13 for ; Wed, 18 Jul 2012 16:53:39 -0700 (PDT) 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=81TNCoxey8iZ9tMtUr9oRDqZ5Iq0olXVOgvhgmldSmA=; b=JE4YGD0GMwCZkF5xDnCMFQq9OcEEHZnNXDV9Gv8b1abpMPGGViTQkn0/wL1aDHJuy3 fw7YLheIkfU99Cgu9GdT6BeY81BpMSJLi4YzB+21fEqCGnz08/szgb7ITAQ4SfMH9r8Z 6d8bQQXpnPOn/L/ip8u3BZfUj+poirRe1I38whUMYN/BojTgI0pzSMmH1wvX9TX+hUuv SaVJB/RDFtcI9dnsLGHt0W23dag+xbEHcDiBMA9HhlXAqJfUzQP+JmsKOEGdgCe+0NCu Kku8UsKkC7+FKNUxdjAZIr5O+jq7cDcpbi2EUScROMC41OK+Ceej/F52LOU7jDQ7/dJz XgtQ== MIME-Version: 1.0 Received: by 10.224.41.204 with SMTP id p12mr235398qae.41.1342655619542; Wed, 18 Jul 2012 16:53:39 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Wed, 18 Jul 2012 16:53:39 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Jul 2012 19:53:39 -0400 Message-ID: From: Kim Culhan To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR9227 hostap on FreeBSD 10-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2012 23:53:40 -0000 On Wed, Jul 18, 2012 at 6:54 PM, Adrian Chadd wrote: > > Do 'sysctl dev.ath.0.sample_stats=1' and check dmesg, see whether it's > TXing using MCS or legacy rates. I was so inclined to think the sysctl command returning 0 dev.ath.0.sample_stats: 0 -> 0 was a problem.. That I didn't notice the output to syslog: Jul 18 19:43:35 foo kernel: [f8:d1:11:39:3d:e5] refcnt 4 static_rix (1 Mb ) ratemask 0x0 Jul 18 19:43:35 foo kernel: [ 250] cur rix 0 (1 Mb ) since switch: packets 0 ticks 0 Jul 18 19:43:35 foo kernel: [ 250] last sample (1 Mb ) cur sample (1 Mb ) packets sent 0 Jul 18 19:43:35 foo kernel: [ 250] packets since sample 0 sample tt 0 Jul 18 19:43:35 foo kernel: [1600] cur rix 0 (1 Mb ) since switch: packets 0 ticks 0 Jul 18 19:43:35 foo kernel: [1600] last sample (1 Mb ) cur sample (1 Mb ) packets sent 0 Jul 18 19:43:35 foo kernel: [1600] packets since sample 0 sample tt 0 Jul 18 19:43:35 foo kernel: Jul 18 19:43:35 foo kernel: [90:f6:52:76:ec:98] refcnt 3 static_rix (-1 ) ratemask 0xfffcf Jul 18 19:43:35 foo kernel: [ 250] cur rix 17 (5 MCS) since switch: packets 1 ticks 6846806 Jul 18 19:43:35 foo kernel: [ 250] last sample (5 MCS) cur sample (-1 ) packets sent 27 Jul 18 19:43:35 foo kernel: [ 250] packets since sample 16 sample tt 424 Jul 18 19:43:35 foo kernel: [1600] cur rix 18 (6 MCS) since switch: packets 1 ticks 7137107 Jul 18 19:43:35 foo kernel: [1600] last sample (7 MCS) cur sample (-1 ) packets sent 1075 Jul 18 19:43:35 foo kernel: [1600] packets since sample 2 sample tt 500 Jul 18 19:43:35 foo kernel: [ 1 Mb : 250] 16:16 (100%) (EWMA 100.0%) T 17 F 0 avg 3455 last 519158 Jul 18 19:43:35 foo kernel: [ 1 MCS:1600] 1:1 (100%) (EWMA 100.0%) T 1 F 0 avg 880 last 6524651 Jul 18 19:43:35 foo kernel: [ 2 MCS:1600] 4:4 (100%) (EWMA 100.0%) T 4 F 0 avg 724 last 1497425 Jul 18 19:43:35 foo kernel: [ 3 MCS:1600] 234:234 (100%) (EWMA 100.0%) T 234 F 0 avg 644 last 2009392 Jul 18 19:43:35 foo kernel: [ 4 MCS: 250] 10:10 (100%) (EWMA 100.0%) T 10 F 0 avg 432 last 4132665 Jul 18 19:43:35 foo kernel: [ 4 MCS:1600] 123:123 (100%) (EWMA 100.0%) T 123 F 0 avg 939 last 1078408 Jul 18 19:43:35 foo kernel: [ 5 MCS: 250] 17:17 (100%) (EWMA 100.0%) T 17 F 0 avg 424 last 297595 Jul 18 19:43:35 foo kernel: [ 5 MCS:1600] 206:206 (100%) (EWMA 100.0%) T 212 F 0 avg 802 last 938268 Jul 18 19:43:35 foo kernel: [ 6 MCS:1600] 240:239 ( 99%) (EWMA 98.1%) T 247 F 0 avg 512 last 7296 Jul 18 19:43:35 foo kernel: [ 7 MCS:1600] 267:267 (100%) (EWMA 100.0%) T 283 F 0 avg 1015 last 26908 Jul 18 19:43:35 foo kernel: Jul 18 19:43:35 foo kernel: [f8:d1:11:38:4a:b3] refcnt 3 static_rix (-1 ) ratemask 0xfffffcf Jul 18 19:43:35 foo kernel: [ 250] cur rix 27 (15 MCS) since switch: packets 1 ticks 7135118 Jul 18 19:43:35 foo kernel: [ 250] last sample (0 MCS) cur sample (-1 ) packets sent 3407 Jul 18 19:43:35 foo kernel: [ 250] packets since sample 5 sample tt 556 Jul 18 19:43:35 foo kernel: [1600] cur rix 26 (14 MCS) since switch: packets 1 ticks 7129062 Jul 18 19:43:35 foo kernel: [1600] last sample (15 MCS) cur sample (-1 ) packets sent 3257 Jul 18 19:43:35 foo kernel: [1600] packets since sample 48 sample tt 5007 Jul 18 19:43:35 foo kernel: [ 1 Mb : 250] 16:16 (100%) (EWMA 100.0%) T 16 F 0 avg 3216 last 519169 Jul 18 19:43:35 foo kernel: [ 0 MCS: 250] 3:3 (100%) (EWMA 100.0%) T 3 F 0 avg 556 last 20979 Jul 18 19:43:35 foo kernel: [ 1 MCS: 250] 10:10 (100%) (EWMA 100.0%) T 10 F 0 avg 538 last 237380 Jul 18 19:43:35 foo kernel: [ 1 MCS:1600] 5:5 (100%) (EWMA 100.0%) T 4 F 0 avg 757 last 1236217 Jul 18 19:43:35 foo kernel: [ 2 MCS: 250] 35:35 (100%) (EWMA 100.0%) T 32 F 0 avg 502 last 219938 Jul 18 19:43:35 foo kernel: [ 2 MCS:1600] 1:1 (100%) (EWMA 100.0%) T 1 F 0 avg 724 last 6238090 Jul 18 19:43:35 foo kernel: [ 3 MCS: 250] 34:34 (100%) (EWMA 100.0%) T 34 F 0 avg 705 last 219741 Jul 18 19:43:35 foo kernel: [ 3 MCS:1600] 3:3 (100%) (EWMA 100.0%) T 3 F 0 avg 644 last 441418 Jul 18 19:43:35 foo kernel: [ 4 MCS: 250] 80:80 (100%) (EWMA 100.0%) T 79 F 0 avg 612 last 215484 Jul 18 19:43:35 foo kernel: [ 4 MCS:1600] 10:10 (100%) (EWMA 100.0%) T 10 F 0 avg 564 last 441209 Jul 18 19:43:35 foo kernel: [ 5 MCS: 250] 36:36 (100%) (EWMA 100.0%) T 40 F 0 avg 685 last 211387 Jul 18 19:43:35 foo kernel: [ 5 MCS:1600] 13:13 (100%) (EWMA 100.0%) T 13 F 0 avg 568 last 666168 Jul 18 19:43:35 foo kernel: [ 6 MCS: 250] 17:17 (100%) (EWMA 100.0%) T 17 F 0 avg 559 last 210983 Jul 18 19:43:35 foo kernel: [ 6 MCS:1600] 13:13 (100%) (EWMA 100.0%) T 13 F 0 avg 553 last 237212 Jul 18 19:43:35 foo kernel: [ 7 MCS: 250] 267:267 (100%) (EWMA 100.0%) T 263 F 0 avg 682 last 172738 Jul 18 19:43:35 foo kernel: [ 7 MCS:1600] 33:33 (100%) (EWMA 100.0%) T 30 F 0 avg 574 last 666004 Jul 18 19:43:35 foo kernel: [ 8 MCS: 250] 101:101 (100%) (EWMA 100.0%) T 101 F 0 avg 844 last 154914 Jul 18 19:43:35 foo kernel: [ 9 MCS: 250] 9:9 (100%) (EWMA 100.0%) T 9 F 0 avg 1481 last 152859 Jul 18 19:43:35 foo kernel: [ 9 MCS:1600] 6:6 (100%) (EWMA 100.0%) T 6 F 0 avg 648 last 1178595 Jul 18 19:43:35 foo kernel: [10 MCS: 250] 245:245 (100%) (EWMA 100.0%) T 243 F 0 avg 1471 last 149876 Jul 18 19:43:35 foo kernel: [10 MCS:1600] 209:209 (100%) (EWMA 100.0%) T 207 F 0 avg 817 last 442919 Jul 18 19:43:35 foo kernel: [11 MCS: 250] 152:152 (100%) (EWMA 100.0%) T 154 F 0 avg 992 last 147713 Jul 18 19:43:35 foo kernel: [11 MCS:1600] 59:59 (100%) (EWMA 100.0%) T 57 F 0 avg 937 last 443308 Jul 18 19:43:35 foo kernel: [12 MCS: 250] 659:659 (100%) (EWMA 100.0%) T 656 F 0 avg 1375 last 145350 Jul 18 19:43:35 foo kernel: [12 MCS:1600] 35:35 (100%) (EWMA 100.0%) T 37 F 0 avg 1107 last 443266 Jul 18 19:43:35 foo kernel: [13 MCS: 250] 308:308 (100%) (EWMA 100.0%) T 302 F 0 avg 1154 last 112784 Jul 18 19:43:35 foo kernel: [13 MCS:1600] 248:248 (100%) (EWMA 100.0%) T 245 F 0 avg 758 last 232451 Jul 18 19:43:35 foo kernel: [14 MCS: 250] 881:879 ( 99%) (EWMA 98.8%) T 876 F 0 avg 1097 last 80934 Jul 18 19:43:35 foo kernel: [14 MCS:1600] 1574:1572 ( 99%) (EWMA 98.5%) T 1597 F 0 avg 571 last 15359 Jul 18 19:43:35 foo kernel: [15 MCS: 250] 632:630 ( 99%) (EWMA 98.1%) T 671 F 0 avg 544 last 9304 Jul 18 19:43:35 foo kernel: [15 MCS:1600] 1166:1157 ( 99%) (EWMA 98.1%) T 1195 F 0 avg 1324 last 215248 From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 18 23:54:56 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F3381065676 for ; Wed, 18 Jul 2012 23:54:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 513B68FC14 for ; Wed, 18 Jul 2012 23:54:56 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so3682208pbb.13 for ; Wed, 18 Jul 2012 16:54:56 -0700 (PDT) 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=5ET6v7Si0UV3keAnd5JvCyn4WlNEFtWc8BXvZUBUntg=; b=gTJgBcK7h/5pLaTxYU47XjI+r1I9D1x9dRAD+dvFgFGg0tsHbLexouIMJzNQrW9MAW 8PiQZP2mFs201q3erXqAJ35V/a0x0gokKGulyq5f0CSpVH+Zerq94C6lU9Pdi/HoeYEZ ToIe/zjMCkA/OVM1zT22CMrEYkHBszHBOuEnwQMFKVxNwq/3vBb1sc/fAF51gkMpdEP9 gsHxbC3tq9WMffQUivod4Vs+ByIKniSkjRRMkNZC7lpXJr3t1xqJrCCzGcKguIdURYLj Cxzm4bGY6bKKWR6BOjoauHoFp7OWlCUHJKAzlR1kBMbbhVOcwL1seLjPpogzP14JD6KN 7taQ== MIME-Version: 1.0 Received: by 10.68.221.70 with SMTP id qc6mr205227pbc.92.1342655696100; Wed, 18 Jul 2012 16:54:56 -0700 (PDT) Received: by 10.68.195.102 with HTTP; Wed, 18 Jul 2012 16:54:56 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Jul 2012 16:54:56 -0700 Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR9227 hostap on FreeBSD 10-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2012 23:54:56 -0000 Yup, looks like you're doing 802.11n right there. :) Adrian On 18 July 2012 16:53, Kim Culhan wrote: > On Wed, Jul 18, 2012 at 6:54 PM, Adrian Chadd wrote: >> >> Do 'sysctl dev.ath.0.sample_stats=1' and check dmesg, see whether it's >> TXing using MCS or legacy rates. > > I was so inclined to think the sysctl command returning 0 > > dev.ath.0.sample_stats: 0 -> 0 > > was a problem.. > > That I didn't notice the output to syslog: > > Jul 18 19:43:35 foo kernel: [f8:d1:11:39:3d:e5] refcnt 4 static_rix (1 > Mb ) ratemask 0x0 > Jul 18 19:43:35 foo kernel: [ 250] cur rix 0 (1 Mb ) since switch: > packets 0 ticks 0 > Jul 18 19:43:35 foo kernel: [ 250] last sample (1 Mb ) cur sample (1 > Mb ) packets sent 0 > Jul 18 19:43:35 foo kernel: [ 250] packets since sample 0 sample tt 0 > Jul 18 19:43:35 foo kernel: [1600] cur rix 0 (1 Mb ) since switch: > packets 0 ticks 0 > Jul 18 19:43:35 foo kernel: [1600] last sample (1 Mb ) cur sample (1 > Mb ) packets sent 0 > Jul 18 19:43:35 foo kernel: [1600] packets since sample 0 sample tt 0 > Jul 18 19:43:35 foo kernel: > Jul 18 19:43:35 foo kernel: [90:f6:52:76:ec:98] refcnt 3 static_rix > (-1 ) ratemask 0xfffcf > Jul 18 19:43:35 foo kernel: [ 250] cur rix 17 (5 MCS) since switch: > packets 1 ticks 6846806 > Jul 18 19:43:35 foo kernel: [ 250] last sample (5 MCS) cur sample (-1 > ) packets sent 27 > Jul 18 19:43:35 foo kernel: [ 250] packets since sample 16 sample tt 424 > Jul 18 19:43:35 foo kernel: [1600] cur rix 18 (6 MCS) since switch: > packets 1 ticks 7137107 > Jul 18 19:43:35 foo kernel: [1600] last sample (7 MCS) cur sample (-1 > ) packets sent 1075 > Jul 18 19:43:35 foo kernel: [1600] packets since sample 2 sample tt 500 > Jul 18 19:43:35 foo kernel: [ 1 Mb : 250] 16:16 (100%) > (EWMA 100.0%) T 17 F 0 avg 3455 last 519158 > Jul 18 19:43:35 foo kernel: [ 1 MCS:1600] 1:1 (100%) > (EWMA 100.0%) T 1 F 0 avg 880 last 6524651 > Jul 18 19:43:35 foo kernel: [ 2 MCS:1600] 4:4 (100%) > (EWMA 100.0%) T 4 F 0 avg 724 last 1497425 > Jul 18 19:43:35 foo kernel: [ 3 MCS:1600] 234:234 (100%) > (EWMA 100.0%) T 234 F 0 avg 644 last 2009392 > Jul 18 19:43:35 foo kernel: [ 4 MCS: 250] 10:10 (100%) > (EWMA 100.0%) T 10 F 0 avg 432 last 4132665 > Jul 18 19:43:35 foo kernel: [ 4 MCS:1600] 123:123 (100%) > (EWMA 100.0%) T 123 F 0 avg 939 last 1078408 > Jul 18 19:43:35 foo kernel: [ 5 MCS: 250] 17:17 (100%) > (EWMA 100.0%) T 17 F 0 avg 424 last 297595 > Jul 18 19:43:35 foo kernel: [ 5 MCS:1600] 206:206 (100%) > (EWMA 100.0%) T 212 F 0 avg 802 last 938268 > Jul 18 19:43:35 foo kernel: [ 6 MCS:1600] 240:239 ( 99%) > (EWMA 98.1%) T 247 F 0 avg 512 last 7296 > Jul 18 19:43:35 foo kernel: [ 7 MCS:1600] 267:267 (100%) > (EWMA 100.0%) T 283 F 0 avg 1015 last 26908 > Jul 18 19:43:35 foo kernel: > Jul 18 19:43:35 foo kernel: [f8:d1:11:38:4a:b3] refcnt 3 static_rix > (-1 ) ratemask 0xfffffcf > Jul 18 19:43:35 foo kernel: [ 250] cur rix 27 (15 MCS) since switch: > packets 1 ticks 7135118 > Jul 18 19:43:35 foo kernel: [ 250] last sample (0 MCS) cur sample (-1 > ) packets sent 3407 > Jul 18 19:43:35 foo kernel: [ 250] packets since sample 5 sample tt 556 > Jul 18 19:43:35 foo kernel: [1600] cur rix 26 (14 MCS) since switch: > packets 1 ticks 7129062 > Jul 18 19:43:35 foo kernel: [1600] last sample (15 MCS) cur sample (-1 > ) packets sent 3257 > Jul 18 19:43:35 foo kernel: [1600] packets since sample 48 sample tt 5007 > Jul 18 19:43:35 foo kernel: [ 1 Mb : 250] 16:16 (100%) > (EWMA 100.0%) T 16 F 0 avg 3216 last 519169 > Jul 18 19:43:35 foo kernel: [ 0 MCS: 250] 3:3 (100%) > (EWMA 100.0%) T 3 F 0 avg 556 last 20979 > Jul 18 19:43:35 foo kernel: [ 1 MCS: 250] 10:10 (100%) > (EWMA 100.0%) T 10 F 0 avg 538 last 237380 > Jul 18 19:43:35 foo kernel: [ 1 MCS:1600] 5:5 (100%) > (EWMA 100.0%) T 4 F 0 avg 757 last 1236217 > Jul 18 19:43:35 foo kernel: [ 2 MCS: 250] 35:35 (100%) > (EWMA 100.0%) T 32 F 0 avg 502 last 219938 > Jul 18 19:43:35 foo kernel: [ 2 MCS:1600] 1:1 (100%) > (EWMA 100.0%) T 1 F 0 avg 724 last 6238090 > Jul 18 19:43:35 foo kernel: [ 3 MCS: 250] 34:34 (100%) > (EWMA 100.0%) T 34 F 0 avg 705 last 219741 > Jul 18 19:43:35 foo kernel: [ 3 MCS:1600] 3:3 (100%) > (EWMA 100.0%) T 3 F 0 avg 644 last 441418 > Jul 18 19:43:35 foo kernel: [ 4 MCS: 250] 80:80 (100%) > (EWMA 100.0%) T 79 F 0 avg 612 last 215484 > Jul 18 19:43:35 foo kernel: [ 4 MCS:1600] 10:10 (100%) > (EWMA 100.0%) T 10 F 0 avg 564 last 441209 > Jul 18 19:43:35 foo kernel: [ 5 MCS: 250] 36:36 (100%) > (EWMA 100.0%) T 40 F 0 avg 685 last 211387 > Jul 18 19:43:35 foo kernel: [ 5 MCS:1600] 13:13 (100%) > (EWMA 100.0%) T 13 F 0 avg 568 last 666168 > Jul 18 19:43:35 foo kernel: [ 6 MCS: 250] 17:17 (100%) > (EWMA 100.0%) T 17 F 0 avg 559 last 210983 > Jul 18 19:43:35 foo kernel: [ 6 MCS:1600] 13:13 (100%) > (EWMA 100.0%) T 13 F 0 avg 553 last 237212 > Jul 18 19:43:35 foo kernel: [ 7 MCS: 250] 267:267 (100%) > (EWMA 100.0%) T 263 F 0 avg 682 last 172738 > Jul 18 19:43:35 foo kernel: [ 7 MCS:1600] 33:33 (100%) > (EWMA 100.0%) T 30 F 0 avg 574 last 666004 > Jul 18 19:43:35 foo kernel: [ 8 MCS: 250] 101:101 (100%) > (EWMA 100.0%) T 101 F 0 avg 844 last 154914 > Jul 18 19:43:35 foo kernel: [ 9 MCS: 250] 9:9 (100%) > (EWMA 100.0%) T 9 F 0 avg 1481 last 152859 > Jul 18 19:43:35 foo kernel: [ 9 MCS:1600] 6:6 (100%) > (EWMA 100.0%) T 6 F 0 avg 648 last 1178595 > Jul 18 19:43:35 foo kernel: [10 MCS: 250] 245:245 (100%) > (EWMA 100.0%) T 243 F 0 avg 1471 last 149876 > Jul 18 19:43:35 foo kernel: [10 MCS:1600] 209:209 (100%) > (EWMA 100.0%) T 207 F 0 avg 817 last 442919 > Jul 18 19:43:35 foo kernel: [11 MCS: 250] 152:152 (100%) > (EWMA 100.0%) T 154 F 0 avg 992 last 147713 > Jul 18 19:43:35 foo kernel: [11 MCS:1600] 59:59 (100%) > (EWMA 100.0%) T 57 F 0 avg 937 last 443308 > Jul 18 19:43:35 foo kernel: [12 MCS: 250] 659:659 (100%) > (EWMA 100.0%) T 656 F 0 avg 1375 last 145350 > Jul 18 19:43:35 foo kernel: [12 MCS:1600] 35:35 (100%) > (EWMA 100.0%) T 37 F 0 avg 1107 last 443266 > Jul 18 19:43:35 foo kernel: [13 MCS: 250] 308:308 (100%) > (EWMA 100.0%) T 302 F 0 avg 1154 last 112784 > Jul 18 19:43:35 foo kernel: [13 MCS:1600] 248:248 (100%) > (EWMA 100.0%) T 245 F 0 avg 758 last 232451 > Jul 18 19:43:35 foo kernel: [14 MCS: 250] 881:879 ( 99%) > (EWMA 98.8%) T 876 F 0 avg 1097 last 80934 > Jul 18 19:43:35 foo kernel: [14 MCS:1600] 1574:1572 ( 99%) > (EWMA 98.5%) T 1597 F 0 avg 571 last 15359 > Jul 18 19:43:35 foo kernel: [15 MCS: 250] 632:630 ( 99%) > (EWMA 98.1%) T 671 F 0 avg 544 last 9304 > Jul 18 19:43:35 foo kernel: [15 MCS:1600] 1166:1157 ( 99%) > (EWMA 98.1%) T 1195 F 0 avg 1324 last 215248 From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 19 00:01:21 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 566581065670 for ; Thu, 19 Jul 2012 00:01:21 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0D5508FC12 for ; Thu, 19 Jul 2012 00:01:20 +0000 (UTC) Received: by qcsg15 with SMTP id g15so1563089qcs.13 for ; Wed, 18 Jul 2012 17:01:20 -0700 (PDT) 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=bAjRBW89k5gYY0TxknqBQwgcWFiFFfCzhrUai1HFMKI=; b=kXT1MDXbMOgv5xUcmH/ajjKE7AiWn152hN/LoQkw5v/rqvpucy2H5aAgyaZ+sunkp9 Zl/z4UemCFhI12n/ZOn5EtPNNfgs6gZnRUbpA98nccGjzZQMRjhQIVSeU1k2PlmUbXru rhhogg5pjQhlgfEAoCVGGQwdLbyJrFhbr1qtHovEYp9/V++LWPELHOMfDcgvMmuCC3nG YJT86lvd0EpxFuJVli7+93F7G0FJKdc4kEGoCqDZo2/lxAym9Gm2nkkcMAj2nGq9EXjh ikP3tEp4OiaW5jg2ytuv4BKdw++TMU8sbWNe1FJslLo+crzfCeJ1Vi1BFPz5ZwckF1nD xQCg== MIME-Version: 1.0 Received: by 10.224.175.8 with SMTP id v8mr251452qaz.47.1342656080289; Wed, 18 Jul 2012 17:01:20 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Wed, 18 Jul 2012 17:01:20 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Jul 2012 20:01:20 -0400 Message-ID: From: Kim Culhan To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR9227 hostap on FreeBSD 10-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2012 00:01:21 -0000 On Wed, Jul 18, 2012 at 7:54 PM, Adrian Chadd wrote: > Yup, looks like you're doing 802.11n right there. :) Heh.. Yes its a fine thing, thanks for all your work on this, its greatly appreciated. If I can help with any testing please let me know. thanks -kim From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 19 00:15:34 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6832F1065674 for ; Thu, 19 Jul 2012 00:15:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 389C28FC0A for ; Thu, 19 Jul 2012 00:15:34 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so3706956pbb.13 for ; Wed, 18 Jul 2012 17:15:33 -0700 (PDT) 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=6/Kep6cTW6EvADQ/1DyW5GNdyEY7YA7/sAaXXje+BIw=; b=xyQjrPBbrDw46r/aM4c818XD+nGKwNS4hBmnG+30n7/NRF35VGTTgt/Bx3uM2frQSl ng9l/oDu6sTDDYM3Sx/Z62LPDx16gAgepZAMd5znlq3/m5jC8uKVGvkWmtSYrLxQagPw h00Dpxh03ObKtwnRQzaSj+X3f+WyFBDUeHixb8Xqk5Xu8bvWVEZXe1Q9MT2otEKM886t n0JY00UE7RECquSnINbGt/LGytaoKZdIKKY77RuGhffYBNYT8Dv9q4RdWbDQ9YZotEsz xIZRSUGunpJ6F96Y7Lk80ni23XekRjwmBjfSg+o2gSDARI07qvpghefUvIhXKJLKXFvg r96Q== MIME-Version: 1.0 Received: by 10.66.75.162 with SMTP id d2mr3519926paw.59.1342656933482; Wed, 18 Jul 2012 17:15:33 -0700 (PDT) Received: by 10.68.195.102 with HTTP; Wed, 18 Jul 2012 17:15:33 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Jul 2012 17:15:33 -0700 Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR9227 hostap on FreeBSD 10-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2012 00:15:34 -0000 Hi! On 18 July 2012 17:01, Kim Culhan wrote: > On Wed, Jul 18, 2012 at 7:54 PM, Adrian Chadd wrote: >> Yup, looks like you're doing 802.11n right there. :) > > Heh.. Yes its a fine thing, thanks for all your work on this, its > greatly appreciated. You're very welcome! > If I can help with any testing please let me know. > Just do everything you can with the driver and let me know how it goes. Report any/all failures and successes. I'm going to see if I can hack together a basic userland ioctl API tonight to pull out the rate control information from ath_rate_sample. Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 19 00:44:48 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 43D6A106566B for ; Thu, 19 Jul 2012 00:44:48 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id ED9198FC15 for ; Thu, 19 Jul 2012 00:44:47 +0000 (UTC) Received: by qcsg15 with SMTP id g15so1578634qcs.13 for ; Wed, 18 Jul 2012 17:44:47 -0700 (PDT) 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=D7l7uCREiH0p0JSmpWpaYc1kafwWtXmwHv5LzPZogPM=; b=tDCXRDQKBhn62S5Af0u9KHPUpymWwAA73yQGmcMFUqIRz6NCMSev62oBaY+X0zVfcT AgrL7BP2eKzbfTg3/kRb4xEeVmGYtqnBJdrVc2/2EZJJuLBvnpkneIPzuRRPW8h4PjZh mE5M0bBJgRsJln1gA07hWyRKWRa7q31EQJm0YEDCLiQ0YGORVhEIGDF81w+XkHg5l3f0 2mmMkJ8UXBWRnWeLVtWl+DTQxZcKcfHpu7CCzyC58o1Z6VLZf/mfQnE8eGpzNwsNfIoZ N+dqSM6a7aWxyWQX5QfR0Ce+bwlZHsImFTCCdlA6iHPRgffRb9tcxyOXLFa71S6LgFpD 0kng== MIME-Version: 1.0 Received: by 10.229.135.149 with SMTP id n21mr2572298qct.131.1342658687463; Wed, 18 Jul 2012 17:44:47 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Wed, 18 Jul 2012 17:44:47 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Jul 2012 20:44:47 -0400 Message-ID: From: Kim Culhan To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR9227 hostap on FreeBSD 10-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2012 00:44:48 -0000 On Wed, Jul 18, 2012 at 8:15 PM, Adrian Chadd wrote: > Hi! > > On 18 July 2012 17:01, Kim Culhan wrote: >> On Wed, Jul 18, 2012 at 7:54 PM, Adrian Chadd wrote: >>> Yup, looks like you're doing 802.11n right there. :) >> >> Heh.. Yes its a fine thing, thanks for all your work on this, its >> greatly appreciated. > > You're very welcome! > >> If I can help with any testing please let me know. >> > > Just do everything you can with the driver and let me know how it > goes. Report any/all failures and successes. Sure, will do. > I'm going to see if I can hack together a basic userland ioctl API > tonight to pull out the rate control information from ath_rate_sample. That will be great, looking forward to seeing it. -kim From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 19 08:26:06 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93FD0106566C for ; Thu, 19 Jul 2012 08:26:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 10C348FC0A for ; Thu, 19 Jul 2012 08:26:05 +0000 (UTC) Received: by lbon10 with SMTP id n10so4124423lbo.13 for ; Thu, 19 Jul 2012 01:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=8VjDCtR3hFDvjw+QYq5mHU8qANpKmKVnqByWYYYzgv0=; b=fpVhkIReaN1mjbimHEravsgQ1wwsqMGkNIxtGJM+xMUI4mwzczWNquCxvvq0BxIgHG 6YboF/NyevhFGIzlQcIqaZY0VrqHrMKnI1l9gnH8ocm2JwNs8M6TckBMFz2q1e2G74QM s4P+ym8LtdirM2BE/TsoY0Z0sfbtj5eDpjeT5rCdTUXPKh69kCnbGKhcmZ22CbKJdsXa jmx3puOMToyyRa+snUWvZOK6F43Fx3ALWatTg02dT9KcHx8Hyjv6B6//KHgktZjDHfs3 qAI5tc5Z/REhQjKNKapiGz9/Uk6UzN3jW6R8WCjPS61e70pn1hWsBf632EDnbfIupsVa XL2Q== MIME-Version: 1.0 Received: by 10.112.27.226 with SMTP id w2mr688564lbg.57.1342686364680; Thu, 19 Jul 2012 01:26:04 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.112.20.197 with HTTP; Thu, 19 Jul 2012 01:26:04 -0700 (PDT) Date: Thu, 19 Jul 2012 01:26:04 -0700 X-Google-Sender-Auth: qd7CSlI9Uns1cVDnZuNC5RR_VfQ Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Please test ath(4) on HEAD (was Fwd: svn commit: r238609 - head/sys/dev/ath) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2012 08:26:06 -0000 Hi all, I've been knee deep in the TX and RX path lately. This is to prepare the driver to support the newer 11n chips that Atheros makes. The below commit affects the TX path as a whole. I'd really appreciate it if people would test out station, access point and adhoc mode (and monitor/mesh if you have time.) Doubly so if you can test out say, multi-SSID AP mode with power sleep clients and 11n aggregate traffic, complete with some multicast traffic. I've tried it very lightly on my AR5210 (earliest) and AR9280 (almost the latest) NICs. I'll test the rest out later today. Thanks, Adrian ---------- Forwarded message ---------- From: Adrian Chadd Date: 18 July 2012 20:51 Subject: svn commit: r238609 - head/sys/dev/ath To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Author: adrian Date: Thu Jul 19 03:51:16 2012 New Revision: 238609 URL: http://svn.freebsd.org/changeset/base/238609 Log: Convert the TX path to use the new HAL methods for accessing the TX descriptor link pointers. This is required for the AR93xx and later chipsets. The RX path is slightly different - the legacy RX path directly accesses ath_desc->ds_link for now, however this isn't at all done for EDMA (FIFO) RX. Now, for those performing a little software archeology here: This is all a bit sub-optimal. "struct ath_desc" is only really relevant for the pre-AR93xx NICs - where ds_link and ds_data is always in the same location. The AR93xx and later NICs have different descriptor layouts altogether. Now, for AR93xx and later NICs, you should never directly reference ds_link and ds_data, as: * the RX descriptors don't have either - the data is _after_ the RX descriptor. They're just one large buffer. There's also no need for a per-descriptor RX buffer size as they're all fixed sizes. * the TX descriptors have 4 buffer and 4 length fields _and_ a link pointer. Each frame takes up one TX FIFO pointer, but it can contain multiple subframes (either multiple frames in a buffer, and/or multiple frames in an aggregate/RIFS burst.) * .. so, when TX frames are queued to a hardware queue, the link pointer is ONLY for buffers in that frame/aggregate. The next frame starts in a new FIFO pointer. * Finally, descriptor completion status is in a different ring. I'll write something up about that when its time to do so. This was inspired by Linux ath9k and the reference driver but is a reimplementation. Obtained from: Linux ath9k, Qualcomm Atheros Modified: head/sys/dev/ath/if_ath_beacon.c head/sys/dev/ath/if_ath_tx.c Modified: head/sys/dev/ath/if_ath_beacon.c ============================================================================== --- head/sys/dev/ath/if_ath_beacon.c Thu Jul 19 03:18:15 2012 (r238608) +++ head/sys/dev/ath/if_ath_beacon.c Thu Jul 19 03:51:16 2012 (r238609) @@ -277,14 +277,15 @@ ath_beacon_setup(struct ath_softc *sc, s flags = HAL_TXDESC_NOACK; if (ic->ic_opmode == IEEE80211_M_IBSS && sc->sc_hasveol) { - ds->ds_link = bf->bf_daddr; /* self-linked */ + /* self-linked descriptor */ + ath_hal_settxdesclink(sc->sc_ah, ds, bf->bf_daddr); flags |= HAL_TXDESC_VEOL; /* * Let hardware handle antenna switching. */ antenna = sc->sc_txantenna; } else { - ds->ds_link = 0; + ath_hal_settxdesclink(sc->sc_ah, ds, 0); /* * Switch antenna every 4 beacons. * XXX assumes two antenna @@ -405,8 +406,10 @@ ath_beacon_proc(void *arg, int pending) if (vap != NULL && vap->iv_state >= IEEE80211_S_RUN) { bf = ath_beacon_generate(sc, vap); if (bf != NULL) { + /* XXX should do this using the ds */ *bflink = bf->bf_daddr; - bflink = &bf->bf_desc->ds_link; + ath_hal_gettxdesclinkptr(sc->sc_ah, + bf->bf_desc, &bflink); } } } Modified: head/sys/dev/ath/if_ath_tx.c ============================================================================== --- head/sys/dev/ath/if_ath_tx.c Thu Jul 19 03:18:15 2012 (r238608) +++ head/sys/dev/ath/if_ath_tx.c Thu Jul 19 03:51:16 2012 (r238609) @@ -310,9 +310,10 @@ ath_tx_chaindesclist(struct ath_softc *s for (i = 0; i < bf->bf_nseg; i++, ds++) { ds->ds_data = bf->bf_segs[i].ds_addr; if (i == bf->bf_nseg - 1) - ds->ds_link = 0; + ath_hal_settxdesclink(ah, ds, 0); else - ds->ds_link = bf->bf_daddr + sizeof(*ds) * (i + 1); + ath_hal_settxdesclink(ah, ds, + bf->bf_daddr + sizeof(*ds) * (i + 1)); ath_hal_filltxdesc(ah, ds , bf->bf_segs[i].ds_len /* segment length */ , i == 0 /* first segment */ @@ -350,9 +351,10 @@ ath_tx_chaindesclist_subframe(struct ath for (i = 0; i < bf->bf_nseg; i++, ds++) { ds->ds_data = bf->bf_segs[i].ds_addr; if (i == bf->bf_nseg - 1) - ds->ds_link = 0; + ath_hal_settxdesclink(ah, ds, 0); else - ds->ds_link = bf->bf_daddr + sizeof(*ds) * (i + 1); + ath_hal_settxdesclink(ah, ds, + bf->bf_daddr + sizeof(*ds) * (i + 1)); /* * This performs the setup for an aggregate frame. @@ -414,7 +416,8 @@ ath_tx_setds_11n(struct ath_softc *sc, s * to the beginning descriptor of this frame. */ if (bf_prev != NULL) - bf_prev->bf_lastds->ds_link = bf->bf_daddr; + ath_hal_settxdesclink(sc->sc_ah, bf_prev->bf_lastds, + bf->bf_daddr); /* Save a copy so we can link the next descriptor in */ bf_prev = bf; @@ -482,7 +485,7 @@ ath_tx_handoff_mcast(struct ath_softc *s *txq->axq_link = bf->bf_daddr; } ATH_TXQ_INSERT_TAIL(txq, bf, bf_list); - txq->axq_link = &bf->bf_lastds->ds_link; + ath_hal_gettxdesclinkptr(sc->sc_ah, bf->bf_lastds, &txq->axq_link); } /* @@ -616,7 +619,7 @@ ath_tx_handoff_hw(struct ath_softc *sc, #endif /* IEEE80211_SUPPORT_TDMA */ if (bf->bf_state.bfs_aggr) txq->axq_aggr_depth++; - txq->axq_link = &bf->bf_lastds->ds_link; + ath_hal_gettxdesclinkptr(ah, bf->bf_lastds, &txq->axq_link); ath_hal_txstart(ah, txq->axq_qnum); } } @@ -645,7 +648,7 @@ ath_txq_restart_dma(struct ath_softc *sc return; ath_hal_puttxbuf(ah, txq->axq_qnum, bf->bf_daddr); - txq->axq_link = &bf_last->bf_lastds->ds_link; + ath_hal_gettxdesclinkptr(ah, bf->bf_lastds, &txq->axq_link); ath_hal_txstart(ah, txq->axq_qnum); } From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 19 13:38: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 600CD106566C for ; Thu, 19 Jul 2012 13:38:04 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qc0-f173.google.com (mail-qc0-f173.google.com [209.85.216.173]) by mx1.freebsd.org (Postfix) with ESMTP id 192EF8FC1B for ; Thu, 19 Jul 2012 13:38:04 +0000 (UTC) Received: by qcab12 with SMTP id b12so1911329qca.18 for ; Thu, 19 Jul 2012 06:38:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=sFHlcJ6zUd9piEDznoED3CXWFDXoaRdJZ+uer940hcc=; b=avI5NGIXaDtcUdwrnLA4mKjzoCQlyFHDkE/iYkae4T0dbS/vbQvlrBySeOwsXNEQCM dJEjRNkRIYFY9X0ApwDPH7YL+ahyCl1Mope2TXeMlBYrBobfEx3uKtBrQjg1IPdite7a tv0lky66YsvyFixY1X0JqmD3j8PY62fYtHHmJ8/HVRUrwRf18pSzqYtRHKHevzfPg0yd ZrihAW+oOr3taI2yddS2L9H6iZtK/0dQuCLa+GrPIAR0Czqlv8tS3/lmEAIQF/zvN+Gm fnz+R7PlXKG3KKWoZvdPBJYGNe5mCOOAHA48+4QiawwKv8GhEib7TB5uHpy4/R7RYy/y 685A== MIME-Version: 1.0 Received: by 10.224.178.73 with SMTP id bl9mr429948qab.89.1342705083420; Thu, 19 Jul 2012 06:38:03 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Thu, 19 Jul 2012 06:38:03 -0700 (PDT) Date: Thu, 19 Jul 2012 09:38:03 -0400 Message-ID: From: Kim Culhan To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: r238613 NF cal didn't finish X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2012 13:38:04 -0000 Rebuilt with latest ath commits r238613, this message at boot: ar5416PerCalibrationN: NF calibration didn't finish; delaying CCA Just fyi.. Now proceeding with testing of multi-SSID AP mode -kim From owner-freebsd-wireless@FreeBSD.ORG Thu Jul 19 22:34:34 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 C68A9106566B; Thu, 19 Jul 2012 22:34:34 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qc0-f173.google.com (mail-qc0-f173.google.com [209.85.216.173]) by mx1.freebsd.org (Postfix) with ESMTP id 71CF88FC1B; Thu, 19 Jul 2012 22:34:34 +0000 (UTC) Received: by qcab12 with SMTP id b12so2422216qca.18 for ; Thu, 19 Jul 2012 15:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=dC9EDw/E6hHrOkrKbLlbhztKxZIp9m/zTAXDH7qECag=; b=h74ccq+CIY5iXX5lIUgWHinUgqHI3Su7kYTViwW5wjz0or0xXTTHohGu7ZPZvZDGCK 9un1bOtvC7rzwhatVEPpLGn6RkEt9AR6/P9e23VgajTo4aWEt2uiN5rDsz2zDPhPUiMT XrYpmmHM0vZPFPORuLVb0Qn7phXves2uTOU75c/zhxAv4yO6BtBhdug1r/x6fTTOBUVX 6SzbE1oCxt4YU+FTu3voonw2CKZP/o4Fxf5Np7q6E5FyYLJzDm05SxagmtIk7OKhK8HH 4BMqcqfORg0dN+c1C4zKse6b/yoEICNbNCBy1Z7+z7YP2/hhEvwz1KAwE5UPKrQB+DKM Bpmw== MIME-Version: 1.0 Received: by 10.229.137.77 with SMTP id v13mr1715166qct.65.1342737273773; Thu, 19 Jul 2012 15:34:33 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Thu, 19 Jul 2012 15:34:33 -0700 (PDT) Date: Thu, 19 Jul 2012 18:34:33 -0400 Message-ID: From: Kim Culhan To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: Please test ath(4) on HEAD (was Fwd: svn commit: r238609 - head/sys/dev/ath) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2012 22:34:34 -0000 On Thu, July 19, 2012 4:26 am, Adrian Chadd wrote: > Hi all, > > I've been knee deep in the TX and RX path lately. This is to prepare > the driver to support the newer 11n chips that Atheros makes. > > The below commit affects the TX path as a whole. I'd really appreciate > it if people would test out station, access point and adhoc mode (and > monitor/mesh if you have time.) Doubly so if you can test out say, > multi-SSID AP mode with power sleep clients and 11n aggregate traffic, > complete with some multicast traffic. > > I've tried it very lightly on my AR5210 (earliest) and AR9280 (almost > the latest) NICs. I'll test the rest out later today. So far I've only tested multi-SSID AP mode which works fine. There has been one occurance at boot of: ar5416PerCalibrationN: NF calibration didn't finish; delaying CCA through numerous boots while there was also another AP nearby so with that shut down the noise floor may be lower. My configuration for multi-SSID was arrrived at without the benefit of much 'official' documentation so if anyone has any info on configuration for multi-SSID in rc.conf and hostapd.conf files please post it to the list. The present setup has one virtual AP running in WPA2-PSK mode and the other running with authmode OPEN. I think the AR9227 hardware is designed to handle at least 3 virtual AP's Now setting up for some multicast traffic.. thanks -kim From owner-freebsd-wireless@FreeBSD.ORG Fri Jul 20 00:21:48 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 321B4106566B for ; Fri, 20 Jul 2012 00:21:48 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 050BE8FC0A for ; Fri, 20 Jul 2012 00:21:47 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so5632040pbb.13 for ; Thu, 19 Jul 2012 17:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=3Cv6s4YXsqFL+/vHLNOvQe0s5MERmc4E7eRqxVhaNmU=; b=TwVnKfJupvEXOTyKOonKxQGHyeEXM/KNaJyWH6TSYXTME/c18xdRDuFSmJoIwbEGHJ oqf842UIqE3Lm4Af4QgcZX+tLmSWhOJmw2NLjFlgdxFqxFUjTSo/owq6j3OHpjEilp9w eJqOQlaZCfUC1bjIrv/HG1U0WVqWM1xUUH07UEOjXmOHpHSI5oJzamcT3RXhCbrz941/ GjimHfSSPsk7rw7xDKF1fuOqgwDIaf4ay17ZjQMs7mVuUTJlvr9GwAYdDu8o4IEyI9kG 23iwaN0WTPxXiCx2YbZxZxP0Ep14yBX4mBxqnfhM9flfMFRPOPsf4AcDgUHr1l5yRcTa oNLA== MIME-Version: 1.0 Received: by 10.68.221.70 with SMTP id qc6mr9368048pbc.92.1342743707790; Thu, 19 Jul 2012 17:21:47 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.191.138 with HTTP; Thu, 19 Jul 2012 17:21:47 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 Jul 2012 17:21:47 -0700 X-Google-Sender-Auth: Uc45xYagtPlN67N-E7sH8dacqB4 Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Please test ath(4) on HEAD (was Fwd: svn commit: r238609 - head/sys/dev/ath) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 00:21:48 -0000 The 9227 will handle more vaps, I just haven't gone through and audited the codebase to make sure we actually _do_ support > 4 VAPs right. (Well, and that we do support 4 VAPs right.) I can go into more detail when/if people care. :) Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Jul 20 01:08: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 2DF1C106566B; Fri, 20 Jul 2012 01:08:54 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id C33058FC08; Fri, 20 Jul 2012 01:08:53 +0000 (UTC) Received: by qabg1 with SMTP id g1so4321335qab.13 for ; Thu, 19 Jul 2012 18:08:47 -0700 (PDT) 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=Ok0jMgNQ9m/xTB0DdeWB//2CqcTHbNhYiUTZzq7aWJs=; b=LpQ66+3dO9snMRPNEb6DfJfs9JFla3Bz1Lns+1s7hhcaPujjkP0YTjdE+5v3nwt8cF J6Zd1449hJYJh2VrdLu4YrI5EbjFlvOFTWSc7M0S8+dq5WSJ6CMiW9XO52J7WRXo+JVA oN/pyx752WbD9a4KaApVliAu5FCpfCt3jgBr7jVmuJXyRnQl0WgjOYtdGqWNAMmUeuYY MQ541aSBafjpSBMpJ4YgMG5qlZeEX8tIvzQm6oLgIJgpqnTzcYX5vmeE6nx4m3+tu4Pf PNW5B8RN0E+lXrDizK8NX5JZgnYx089VuCSiBnapdotdVaQCx7T5J598CSN7Sn1uWBwF npeQ== MIME-Version: 1.0 Received: by 10.224.189.137 with SMTP id de9mr7160442qab.7.1342746527246; Thu, 19 Jul 2012 18:08:47 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Thu, 19 Jul 2012 18:08:47 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 Jul 2012 21:08:47 -0400 Message-ID: From: Kim Culhan To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Please test ath(4) on HEAD (was Fwd: svn commit: r238609 - head/sys/dev/ath) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 01:08:54 -0000 On Thu, Jul 19, 2012 at 8:21 PM, Adrian Chadd wrote: > The 9227 will handle more vaps, I just haven't gone through and > audited the codebase to make sure we actually _do_ support > 4 VAPs > right. (Well, and that we do support 4 VAPs right.) > > I can go into more detail when/if people care. :) Yes please do, information for settting up vaps on FreeBSD is almost nonexistent and info on configuration of hostapd for secure vaps is hard to find. -kim From owner-freebsd-wireless@FreeBSD.ORG Fri Jul 20 03:05:44 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC7331065674 for ; Fri, 20 Jul 2012 03:05:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8F7D18FC1B for ; Fri, 20 Jul 2012 03:05:43 +0000 (UTC) Received: by ggnm2 with SMTP id m2so4202128ggn.13 for ; Thu, 19 Jul 2012 20:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=9am7cqOsZ4cwjizm7XHG115ShpVFoynY0nThNyoR9QY=; b=zKipkRO9uL442b9CaxpYctseMJ/rh8XSTmm4Qaqn6iAucxqA2XYEmeSlQTWCiNw8mr TYuw1pQ4EJQSlaR/TUWb9lkZE0vMsIJMVj1G4jm7/JH8QBhRTmoJMXDTbRefEHkGIfNe znQt/0TFFP9slDtiDM08idGqSX6sKS2AY1QVRshiaImde7MV7XKmc/Uv6CoIuqvn/kCA 0QT0Z0DPDR3HUrbEWV++gjhivrxqjofJA2Wca9eLeO8+GLvL6KUXtwPfkjgbVk55keu7 WsY5Mb4uOOaz44mOi1Oaa+BxBtx1hyxtpYRI27LkN1s38qZ9y1iSluiMX1YG+AuI9tQ7 VUMA== MIME-Version: 1.0 Received: by 10.66.73.39 with SMTP id i7mr7908837pav.83.1342753541655; Thu, 19 Jul 2012 20:05:41 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.191.138 with HTTP; Thu, 19 Jul 2012 20:05:41 -0700 (PDT) Received: by 10.68.191.138 with HTTP; Thu, 19 Jul 2012 20:05:41 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 Jul 2012 20:05:41 -0700 X-Google-Sender-Auth: RZq3aKmRaoq1j5KHVdSRN1UBh1A Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: Please test ath(4) on HEAD (was Fwd: svn commit: r238609 - head/sys/dev/ath) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 03:05:44 -0000 Id love some help improving the documentation. Let me configure some vaps tonight and ill write a quick blog post avout it. Id love to find that make it into the official documentation. Thanks, Adrian On Jul 19, 2012 6:08 PM, "Kim Culhan" wrote: > On Thu, Jul 19, 2012 at 8:21 PM, Adrian Chadd wrote: > > The 9227 will handle more vaps, I just haven't gone through and > > audited the codebase to make sure we actually _do_ support > 4 VAPs > > right. (Well, and that we do support 4 VAPs right.) > > > > I can go into more detail when/if people care. :) > > Yes please do, information for settting up vaps on FreeBSD is almost > nonexistent > and info on configuration of hostapd for secure vaps is hard to find. > > -kim > From owner-freebsd-wireless@FreeBSD.ORG Fri Jul 20 07:52: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 ED6171065675 for ; Fri, 20 Jul 2012 07:52:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id BC8188FC18 for ; Fri, 20 Jul 2012 07:52:42 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so6226650pbb.13 for ; Fri, 20 Jul 2012 00:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=gc0yGkPqRomVTf7ipP36jreBqQyOReQ7l6sAWn1KNH4=; b=dn9Av8rmCMedU90KP3gWbVrkko0MiixnPjCKfkDwmW/JYbwC74nnJFD8I6ub1YU61a aYLS6ml9RntgGeV1Yv/0RkHI8GwUKoKZkgA7zfK6PFmRXrvrHyuGPSJ6oFaMZuoRYUfe g5Zh9XHLF1Kb6MljTMLru1/w6z7KyDp92/FT8Vl5dh8ZdSlpX97Xtoo8svOzGNwY1dle RFkTq9ewA4kJezI//3+hnQKII4dwaIwEtPUksVHR1DGzR5ywBF7wRyY3CkhGDMtjmtin bSs5g4382J+J49r9URMRsxhiFhUgf9oJiPy9+n+y36D135xW5Cmbt9bWSKiY6CgA5TJD YBxg== MIME-Version: 1.0 Received: by 10.68.238.166 with SMTP id vl6mr11653646pbc.96.1342770762480; Fri, 20 Jul 2012 00:52:42 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.191.138 with HTTP; Fri, 20 Jul 2012 00:52:42 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Jul 2012 00:52:42 -0700 X-Google-Sender-Auth: M86NjAC4SbcGLb_jJWHmVgo2R9c Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Please test ath(4) on HEAD (was Fwd: svn commit: r238609 - head/sys/dev/ath) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 07:52:43 -0000 The thirty second version: * You can create them as normal child interfaces (wlan0, wlan1 ...); * You can configure a single hostapd interface for multiple wlan interfaces - you don't _have_ to run one hostapd for each interface. I haven't tried it yet, but I'm sure someone has reported our hostapd works. Just run hostapd with multiple configuration files on the command line, one per interface; * Don't exceed 4, the driver doesn't handle it. Please just try manually running a single hostapd with multiple configuration files listed. I just tried on two VAPs and it worked fine. Now, the reasons why multi-SSID is slightly odd: * there's hardware support for a "BSS mask", which the hardware does use to determine whether frames are actually destined to it or not. I think you can mask out many more bits than that, but four is the default; * You then have to look at how the hardware does "TSF adjustment" - to keep accurate time-keeping, each VAP beacon must go out with a corrected TSF. The driver code sets a bit to ask the hardware to fudge the TSF, then it writes a TSF offset into the beacon frame. The hardware will then add that to the current TSF. This requires the driver to correctly order the beacon frames in the beacon queue and make sure the timers are setup correctly. This has been a source of annoyance in open source Atheros drivers for quite some time. I'd love someone to audit this and then get it working for up to say 10 VAPs; * there's "burst" and "staggered" beacons. Burst is "all beacons go out at once" - you get one burst every beacon interval. "staggered" is "each beacon goes out at 1/n the beacon interval", so although your run your beacon timer at n * beacon interval, you send them out evenly spaced and they come out at the correct interval. However - this has implications for handling sleep queue (content after beacon) traffic for each VAP as well as TIM/ATIM handling. Short answer is: I've not sat down and audited or stress tested this code at all. If people are interested in jumping into the driver code and getting their hands dirty then please say so and I'll brain-dump as much stuff as I can get my hands on. Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Jul 20 20:08:50 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 96DFD1065670 for ; Fri, 20 Jul 2012 20:08:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6D3668FC21 for ; Fri, 20 Jul 2012 20:08:50 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so7234850pbb.13 for ; Fri, 20 Jul 2012 13:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=9RMXeWn3h6Lx9G02DZ7mWUexPM3HDnP0tlmW41ONZK4=; b=JFqEO+3Of460kbtGyBkX5/58kc0+Am4GSxZTru+a2F7DkTAfLYDY9jlGV0Qwk3OZL5 YsTiW/+bPX2ECj6BS50b0HeSJMPNi7NgUgK0b7TOMJpUaqCF9pSgRNd0obPjBxtHaqUp knfXxtmHobdW77JncqOXR04yZvgS/KXRUT4Sl2MpSgAZysG1KGF1QJz+wEopL2BzX9yj 1HEkegsHLdDUaNc37p4qqGEMOHuhQAy7qKSF3Nz5ndvrsB457uRUMMGa2sgl01hpFTGN 2iT9LSw4/ntJHWXyxF7bfW8oQB/pIBFHsd846kcnsztF892DkqpwWmLuMhhHm+mokm7s UEFw== MIME-Version: 1.0 Received: by 10.68.201.9 with SMTP id jw9mr16430925pbc.28.1342814930142; Fri, 20 Jul 2012 13:08:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.191.138 with HTTP; Fri, 20 Jul 2012 13:08:50 -0700 (PDT) Date: Fri, 20 Jul 2012 13:08:50 -0700 X-Google-Sender-Auth: Ps59tYEnLnXRkBsXjPR23jLhYNA Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: New tool under development: athratestats X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 20:08:50 -0000 Hi all, I got fed up with looking at rate control information via dmesg and so I have started fleshing out an ioctl API to fetch said information from the driver and punt it to userland. The current API is under development and will likely involve a few more development cycles to make it truely useful. The tool is in tools/ath/ath/athratestats/. It currently lets you dump the sample rate control statistics for a given MAC address (whatever is listed in 'ifconfig wlanX list sta'. It operates on the driver rate control setup, so you actually run it on the athX interface, not the wlanX interface. That may be a bit sub-optimal and unclear for now. Unfortunately, implementing "get all statistics for all nodes" is rather difficult due to locking constraints. I'll look at resolving that particular issue in the future. I'd appreciate whatever feedback you all may have. Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Jul 20 20:18:21 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D82C106566C; Fri, 20 Jul 2012 20:18:21 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1FB1D8FC08; Fri, 20 Jul 2012 20:18:21 +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 q6KKIKB3016479; Fri, 20 Jul 2012 20:18:21 GMT (envelope-from adrian@freefall.freebsd.org) Received: (from adrian@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6KKIKSi016475; Fri, 20 Jul 2012 20:18:20 GMT (envelope-from adrian) Date: Fri, 20 Jul 2012 20:18:20 GMT Message-Id: <201207202018.q6KKIKSi016475@freefall.freebsd.org> To: adrian@FreeBSD.org, adrian@FreeBSD.org, freebsd-wireless@FreeBSD.org From: adrian@FreeBSD.org Cc: Subject: Re: kern/169362: [ath] AR5416: radar pulse PHY errors sometimes include the CRC Error bit set as well as the PHY errors X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 20:18:21 -0000 Synopsis: [ath] AR5416: radar pulse PHY errors sometimes include the CRC Error bit set as well as the PHY errors State-Changed-From-To: open->patched State-Changed-By: adrian State-Changed-When: Fri Jul 20 20:17:42 UTC 2012 State-Changed-Why: Patched and verified, but I should do some further verification to ensure CRC error frames aren't being incorrectly handled sa PHY error frames (and thus the upper layers don't see them as CRC error frames.) http://www.freebsd.org/cgi/query-pr.cgi?pr=169362 From owner-freebsd-wireless@FreeBSD.ORG Sat Jul 21 01:22:06 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2B29106566B for ; Sat, 21 Jul 2012 01:22:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7F2218FC0C for ; Sat, 21 Jul 2012 01:22:06 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so7639318pbb.13 for ; Fri, 20 Jul 2012 18:22:06 -0700 (PDT) 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=ZgjyGPSn9pHSNfhi5RfF3UUdSueUkio5j662GvQ0JJw=; b=mSQlrj4cckayd18jbW+xnUC6eNo86i17Ia/66d2Eskhmm3qRJVJdASHU7+IPCvvQv5 nFjci0NNutyC3+LsexpHPKr8fDNQECSfD6Lax5lE7f4tvgP2JhkQlTccjWFitFjMIov8 Ka53BWKDjXQ0iDr409wuVhLCg1qybCtVgAAA5GdqFGaPZoeWxg93DwUnzfreh3Cf5jJr qEs1jvWO1E0vAaHKpZ2Y3eSPbE5d3oXleS4dc/Pw8xxc9F5nnXF/diMsuMFnm6dvT4mN NTpN6IfbsmEqW/JGy5we9bNLZBbvFRN7qjI6Ez54o7Qw6PxtZ+O0cs3l1Mtl/owuFyGh MguA== MIME-Version: 1.0 Received: by 10.68.221.70 with SMTP id qc6mr18301324pbc.92.1342833726165; Fri, 20 Jul 2012 18:22:06 -0700 (PDT) Received: by 10.68.191.138 with HTTP; Fri, 20 Jul 2012 18:22:06 -0700 (PDT) Received: by 10.68.191.138 with HTTP; Fri, 20 Jul 2012 18:22:06 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Jul 2012 18:22:06 -0700 Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: r238613 NF cal didn't finish X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 01:22:06 -0000 For the record, its ok for that first nfcal to not immediately finish. Adrian On Jul 19, 2012 6:38 AM, "Kim Culhan" wrote: > Rebuilt with latest ath commits r238613, this message at boot: > > ar5416PerCalibrationN: NF calibration didn't finish; delaying CCA > > Just fyi.. > > Now proceeding with testing of multi-SSID AP mode > > -kim > From owner-freebsd-wireless@FreeBSD.ORG Sat Jul 21 10:44:02 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 8EAB2106566B for ; Sat, 21 Jul 2012 10:44:02 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id 495A88FC12 for ; Sat, 21 Jul 2012 10:44:02 +0000 (UTC) Received: by qabg1 with SMTP id g1so584134qab.13 for ; Sat, 21 Jul 2012 03:43:56 -0700 (PDT) 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=4LpFwRyfSBUFsZEWfLb8tIJdQ2c3wePwBzvVfScmGg4=; b=H2A+59qMfQVX5hP8tsw27L2hYDe4nHP6H3SOfD3sqJ3wnaPkRI0GRBU458PhnDrQ81 5f9DAF3WUfgNuOyh22bm2MOrRDe5OPfSGbLGnKgAp9DHQ+l1icCn5HY24wLEQoaw3M5d 4MaetIhPjKX665sO7/r/+0NjougGetrb4J0euKy5ZT6oXFBNtlaBvO1l/FZEpxojsXsO Ih6uO/TNrQWLySSWWdruGu7HbnvTXyhEyvGVV+aF9Ps32gTl/DlKATMIWimO6V1v/CZf cieHkMCfp4Zgsre/umIXdxn1y3I4Pdr/GIDsBGCEIVnqHEfUFGS6tHl5TDZPMeBWuoEA x1KQ== MIME-Version: 1.0 Received: by 10.224.41.204 with SMTP id p12mr14634410qae.41.1342867436018; Sat, 21 Jul 2012 03:43:56 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Sat, 21 Jul 2012 03:43:55 -0700 (PDT) In-Reply-To: References: Date: Sat, 21 Jul 2012 06:43:55 -0400 Message-ID: From: Kim Culhan To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: r238613 NF cal didn't finish X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 10:44:02 -0000 On Fri, Jul 20, 2012 at 9:22 PM, Adrian Chadd wrote: > For the record, its ok for that first nfcal to not immediately finish. > > Adrian > > On Jul 19, 2012 6:38 AM, "Kim Culhan" wrote: >> >> Rebuilt with latest ath commits r238613, this message at boot: >> >> ar5416PerCalibrationN: NF calibration didn't finish; delaying CCA >> >> Just fyi.. The system has been running in its current config for > 12 hours with no instances of the nfcal message. -kim From owner-freebsd-wireless@FreeBSD.ORG Sat Jul 21 17:57:09 2012 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23D4A106566B; Sat, 21 Jul 2012 17:57:09 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id DBFC68FC16; Sat, 21 Jul 2012 17:57:08 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so8829695pbb.13 for ; Sat, 21 Jul 2012 10:57:08 -0700 (PDT) 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=YCgDmhgwbCfMPu0EqxVZpiSZ74l6ZEu6zkEmFm9v7IA=; b=nUlDaHekAjjZHJggEVb4PhreMbWeNALyWL2IYYVHeJSQq04T7+VpKDmdbWpr9Qd6nL pWg0629wOhID97l6c7bMmDWcdKYKUY3xJhFcKoJCWBx0dXzsNwcvevmRo6dk4YbXHcQv GplMWbADROcae1Xtsffduzy1B3vwZ9I+FhKjrnt6F0GzTi7bdsKTYVuaYtf7mj7kPA9j 2r95GF+zejlPST9IJZVF+xxZkUUj+iTiqZCHQdNPgrmHLu+eWFAADIqbmY7z5AmsYCM+ Pdb7c+SEa+fVV/+Z9n/1hd0Jmbut5ot8djPo7aUxP9RGZx7Dg6vtccXy0VTmvsc3gWFY s7Qw== MIME-Version: 1.0 Received: by 10.66.84.7 with SMTP id u7mr7486912pay.83.1342893428620; Sat, 21 Jul 2012 10:57:08 -0700 (PDT) Received: by 10.68.191.138 with HTTP; Sat, 21 Jul 2012 10:57:08 -0700 (PDT) In-Reply-To: References: <298155894.20120709002844@serebryakov.spb.ru> <1491344515.20120709013411@serebryakov.spb.ru> <1252921508.20120709132351@serebryakov.spb.ru> <802688919.20120709140808@serebryakov.spb.ru> <1966637204.20120713194935@serebryakov.spb.ru> <5862675.20120713203432@serebryakov.spb.ru> <7750188.20120716011053@serebryakov.spb.ru> Date: Sat, 21 Jul 2012 10:57:08 -0700 Message-ID: From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: wireless@freebsd.org Subject: Re: ath0: device timeout with 802.11n client X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 17:57:09 -0000 Hey Lev, Have you had any luck reproducing this with the debugging enabled? I'd really like to get to the bottom of this issue. :) I thought I had fixed it late in June, but obviously there are some other race conditions I'm not currently handling. Thanks! Adrian From owner-freebsd-wireless@FreeBSD.ORG Sat Jul 21 18:35:20 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EE48106566B for ; Sat, 21 Jul 2012 18:35:20 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 41E948FC08 for ; Sat, 21 Jul 2012 18:35:20 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so8868865pbb.13 for ; Sat, 21 Jul 2012 11:35:20 -0700 (PDT) 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=AItp1H+1ZR8Zbn8CMV42cJDHCGrBeU5jbE1ozwiLXio=; b=zFOvPbD8wfMFr+WK1cEthhjFrZw3oqx0/Q3ttfqLa54sLawr62mtOfJjHTvMKGkBYC 4aL2Mm2DfaiaID+PcNZaeQXOJ0bqXok+CqO+56HzHecCkNX/tV6JEbtew7so2fATVmEB 3MSGMRjTDMkILEwNh9liQT/MCZLjAltbWC8wM+MKlcuqhNUm7eKZLjasEW+mWte9VsML /9ARymcEzfpYH1iRN4IISaOD4498pwvGc/RfThrUBrvWvVnuPlayvRdXsG8Y9xDgb23Q LgsBxNidCygtZzLxo+QW7ns9WJHo049ETBIqGA20lb0tsv24y2mK3azy733+OV7FQG+A dYyw== MIME-Version: 1.0 Received: by 10.66.84.7 with SMTP id u7mr7647498pay.83.1342895720043; Sat, 21 Jul 2012 11:35:20 -0700 (PDT) Received: by 10.68.191.138 with HTTP; Sat, 21 Jul 2012 11:35:20 -0700 (PDT) In-Reply-To: References: Date: Sat, 21 Jul 2012 11:35:20 -0700 Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: r238613 NF cal didn't finish X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 18:35:20 -0000 On 21 July 2012 03:43, Kim Culhan wrote: > The system has been running in its current config for > 12 hours with no > instances of the nfcal message. Yup. So what's happening (now that I have 30 seconds of spare time): * the initial reset path in the HAL starts an NF calibration; * then the driver _immediately_ calls the HAL calibration routine, which checks if an NF cal is in progress; * .. and since the previously started one may still be in progress, it skips (re)starting a new one. It only shows up on: * AR5416, in moderately noisy environments; * any of the chips, if there's a very strong interferer signal present; * in station mode with scanning, as there's lots of channel changes going on. The print is there because I'd like to be told if it's constantly happening. It coincides with strong interference and/or RX deafness, so it's good to have as a data point. Thanks again for testing this out! Adrian From owner-freebsd-wireless@FreeBSD.ORG Sat Jul 21 19:20:12 2012 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7046E1065673 for ; Sat, 21 Jul 2012 19:20:12 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id F05E38FC18 for ; Sat, 21 Jul 2012 19:20:11 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:a84b:9962:ac85:792c]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 7473D4AC2D; Sat, 21 Jul 2012 23:20:09 +0400 (MSK) Date: Sat, 21 Jul 2012 23:19:58 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <1149707781.20120721231958@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <298155894.20120709002844@serebryakov.spb.ru> <1491344515.20120709013411@serebryakov.spb.ru> <1252921508.20120709132351@serebryakov.spb.ru> <802688919.20120709140808@serebryakov.spb.ru> <1966637204.20120713194935@serebryakov.spb.ru> <5862675.20120713203432@serebryakov.spb.ru> <7750188.20120716011053@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: ath0: device timeout with 802.11n client X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 19:20:12 -0000 Hello, Adrian. You wrote 21 =E8=FE=EB=FF 2012 =E3., 21:57:08: AC> Have you had any luck reproducing this with the debugging enabled? Nope :( It works, output some debug output from time to time, but without timeouts. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sat Jul 21 19:21:38 2012 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A6A51065673; Sat, 21 Jul 2012 19:21:38 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 093848FC1A; Sat, 21 Jul 2012 19:21:38 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so8913696pbb.13 for ; Sat, 21 Jul 2012 12:21:37 -0700 (PDT) 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=KzMdmjDSIClhkA9+QCuqG1SS5KEKS7Gu8TIdA8nJo/w=; b=j0+IQ4JnGcLiAX3jH+MAs6xQMzlNI8jR0blq1Xh5jZ7/dgbYaGsenHJNA7iaMtp1zg vu07fGI3NiOI17cIWcHQ9KbSa7dMKTXAYwJUZhQTKEQDoJdDivKS/odNqI0OxW/albdT 6LM/d7svt4fBP500xK6om1O/1Z3x8i6UV+QZrmFrlokQVTP3oEm7xEDTF9r55xHwf29v 264FfULUKVP7XAyhG25FX+GgSPqtdkmAkbMcc0sMOwesz0iVtBgIjkWR53XA1jQppPxj WOGmQ0OhaXg6UaOxXpVvDGJN3sJbSEQy0qNUTMXi0GL2HwmaLmM/9dnzG8I2SRC3cAd5 pv/Q== MIME-Version: 1.0 Received: by 10.68.238.166 with SMTP id vl6mr826480pbc.96.1342898497821; Sat, 21 Jul 2012 12:21:37 -0700 (PDT) Received: by 10.68.191.138 with HTTP; Sat, 21 Jul 2012 12:21:37 -0700 (PDT) Received: by 10.68.191.138 with HTTP; Sat, 21 Jul 2012 12:21:37 -0700 (PDT) In-Reply-To: <1149707781.20120721231958@serebryakov.spb.ru> References: <298155894.20120709002844@serebryakov.spb.ru> <1491344515.20120709013411@serebryakov.spb.ru> <1252921508.20120709132351@serebryakov.spb.ru> <802688919.20120709140808@serebryakov.spb.ru> <1966637204.20120713194935@serebryakov.spb.ru> <5862675.20120713203432@serebryakov.spb.ru> <7750188.20120716011053@serebryakov.spb.ru> <1149707781.20120721231958@serebryakov.spb.ru> Date: Sat, 21 Jul 2012 12:21:37 -0700 Message-ID: From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: wireless@freebsd.org Subject: Re: ath0: device timeout with 802.11n client X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 19:21:38 -0000 Hm. With debuggimg it works, but turning it off causes timeouts? On Jul 21, 2012 12:20 PM, "Lev Serebryakov" wrote: > Hello, Adrian. > You wrote 21 =D0=B8=D1=8E=D0=BB=D1=8F 2012 =D0=B3., 21:57:08: > > AC> Have you had any luck reproducing this with the debugging enabled? > Nope :( It works, output some debug output from time to time, but > without timeouts. > > > -- > // Black Lion AKA Lev Serebryakov > > From owner-freebsd-wireless@FreeBSD.ORG Sat Jul 21 20:18:52 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A20C51065700 for ; Sat, 21 Jul 2012 20:18:52 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 611D18FC14 for ; Sat, 21 Jul 2012 20:18:52 +0000 (UTC) Received: by qaat11 with SMTP id t11so687560qaa.13 for ; Sat, 21 Jul 2012 13:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=Jug9UF5E9UIBgzUPd0UxK9K7HPg20MgHf69fOVqnXrU=; b=Om+3iJAOQKHkeOGEmd7/Nt3FFX2pKagnRKCpcNKsbN3ca4VJqIOcRHWe7qIhsWlrvi VN/MaK/8B9cCjKXsTYxYHSpQaBqRfHgSrbtSffHDrpaSi+c9jz3mJb0c/Tx9KcGgbFzD 1CuyQStkHTpvuW9vu1T1cZLt16kRLqzU190ZKEkJLdRdualA/1pfmxB3j1m9yB2BveUu y7Z7rOXWpoxqGW+ni4PIT1m91Y6cIwzlCHd57+yIHgMHAKBgqH+h4KKgzJLIkavFH8w/ np9KgzTxm+HfcfhU0qKzb6jZ9JTNZMmEJKScXwCDrx0gyWsdWtpdDbv/9moPfT5YAUu5 9aow== MIME-Version: 1.0 Received: by 10.224.189.137 with SMTP id de9mr16775185qab.7.1342901926656; Sat, 21 Jul 2012 13:18:46 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Sat, 21 Jul 2012 13:18:46 -0700 (PDT) Date: Sat, 21 Jul 2012 16:18:46 -0400 Message-ID: From: Kim Culhan To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: ath lor X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 20:18:52 -0000 Observed some instances of this lor: Jul 21 16:09:49 foo kernel: lock order reversal: Jul 21 16:09:49 foo kernel: 1st 0xffffff8001ad3948 ath0_scan_lock (ath0_scan_lock) @ /usr/src/sys/net80211/ieee8 0211_node.c:2166 Jul 21 16:09:49 foo kernel: 2nd 0xffffff8001ad2018 ath0_com_lock (ath0_com_lock) @ /usr/src/sys/net80211/ieee802 11_node.c:2518 Jul 21 16:09:49 foo kernel: KDB: stack backtrace: Jul 21 16:09:49 foo kernel: db_trace_self_wrapper() at db_trace_self_wrapper+0x37 Jul 21 16:09:49 foo kernel: kdb_backtrace() at kdb_backtrace+0x39 Jul 21 16:09:49 foo kernel: witness_checkorder() at witness_checkorder+0xca1 Jul 21 16:09:49 foo kernel: _mtx_lock_flags() at _mtx_lock_flags+0x79 Jul 21 16:09:49 foo kernel: ieee80211_node_leave() at ieee80211_node_leave+0x97 Jul 21 16:09:49 foo kernel: ieee80211_iterate_nodes() at ieee80211_iterate_nodes+0x89 Jul 21 16:09:49 foo kernel: setmlme_common() at setmlme_common+0x408 Jul 21 16:09:49 foo kernel: ieee80211_ioctl_setmlme() at ieee80211_ioctl_setmlme+0x87 Jul 21 16:09:49 foo kernel: ieee80211_ioctl_set80211() at ieee80211_ioctl_set80211+0x5b0 Jul 21 16:09:49 foo kernel: in_control() at in_control+0x234 Jul 21 16:09:49 foo kernel: ifioctl() at ifioctl+0x148c Jul 21 16:09:49 foo kernel: kern_ioctl() at kern_ioctl+0x1dc Jul 21 16:09:49 foo kernel: sys_ioctl() at sys_ioctl+0x12e Jul 21 16:09:50 foo kernel: amd64_syscall() at amd64_syscall+0x25a Jul 21 16:09:50 foo kernel: Xfast_syscall() at Xfast_syscall+0xfb Jul 21 16:09:50 foo kernel: --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x801210dfc, rsp = 0x7fffffffda78, rbp = 0x2a --- Jul 21 16:09:50 foo kernel: ath0: stuck beacon; resetting (bmiss count 4) thanks -kim From owner-freebsd-wireless@FreeBSD.ORG Sat Jul 21 20:46:16 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51B6D106566B for ; Sat, 21 Jul 2012 20:46:16 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id 108C38FC0C for ; Sat, 21 Jul 2012 20:46:15 +0000 (UTC) Received: by qabg1 with SMTP id g1so689101qab.13 for ; Sat, 21 Jul 2012 13:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=wmBTSZa9xlVGKWak9G7PiOWCdnxrCV8l2EoRYziXpvs=; b=W0Och3rwC0mld2+64V+Tk0730zTBg+pQME7OsSgEUGyqPgttGl/o6VfsvM9PFyzaow e8UUqk0hSevWEWtg0hemQQr/RlZBofbDEdcXURtZ+1GfyYHdNZ3nky5hyI4dkfcTBUir kMTNSh5BXNOroy0QUBIkVcnjR5WVd/BhC6HxqxLp/LFqQBlTraZW6hrbgEWWueslfG9l flsfdalUvFp2Ik3bdUE68u1+j/uaUelXHzDUe7bLC3aNbIjR6j33PSmWj8xddaPtBopI NZjnh0svIM3zcB/5VIFDUrbzvAZTwFZ8CBgCB6f5XofYuFA1vXoGngeVbRytLiBnvOnT 4Hcg== MIME-Version: 1.0 Received: by 10.224.101.193 with SMTP id d1mr16856384qao.20.1342903575272; Sat, 21 Jul 2012 13:46:15 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Sat, 21 Jul 2012 13:46:15 -0700 (PDT) Date: Sat, 21 Jul 2012 16:46:15 -0400 Message-ID: From: Kim Culhan To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: multi vap Multi-SSID with ath on FreeBSD 10-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 20:46:16 -0000 It seems the max vap I can do is 3. Have been testing a setup with 2 vap running WPA2 and 1 running in OPEN mode. Adding 1 more vap in WPA2 makes things unuseable, and results in a duplicated wlanX bssid. There are usually 1 or 2 missing ssid's as received on a 80211n radio with 3 vap in WPA2 mode ssid's are reliable when running 2 WPA2 vap + 1 vap in OPEN mode. These configs are maybe not the best, I'll try any alternatives. In rc.conf: ifconfig_wlan0="channel 6 ssid Guest" ifconfig_wlan1="channel 6 ssid ap1" ifconfig_wlan2="channel 6 ssid ap2" wlans_ath0="wlan0 wlan1 wlan2" create_args_wlan0="wlanmode hostap bssid" create_args_wlan1="wlanmode hostap bssid" create_args_wlan2="wlanmode hostap bssid" hostapd1_enable="YES" hostapd2_enable="YES" hostapd1.conf: interface=wlan1 driver=bsd logger_syslog=-1 logger_syslog_level=0 logger_stdout=-1 logger_stdout_level=0 dump_file=/tmp/hostapd1.dump ctrl_interface=/var/run/hostapd1 ctrl_interface_group=wheel ssid=ap1 ieee8021x=0 wpa=2 wpa_passphrase=supersecret wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP hostapd2.conf is similar -kim From owner-freebsd-wireless@FreeBSD.ORG Sat Jul 21 21:16:05 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89973106566C for ; Sat, 21 Jul 2012 21:16:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5DFAE8FC08 for ; Sat, 21 Jul 2012 21:16:05 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so9014583pbb.13 for ; Sat, 21 Jul 2012 14:16:05 -0700 (PDT) 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=ReaCZ4NFs9vadGYaw4hek6COx5inb0XPSr0NQEsg1sM=; b=IILfzVBi1ZurCpkM7y+B/WahCzJF7kcmqhUCsmfeE/WdHGhMiue/P618HxQK3LEfM0 q8TP5rrH9d1w/DJpKylnmGcjE/GkWPmRIRHkyk6OBOnnPeC6QJLWOT1upQ3mU650ozUL 2kixzcp4CnT0lfUsF3ftVHFJ5E2ShtTdscFXmCzg5lZb4sWCAUmeA81OvDX00GF0rCMw WGwc9/wn7O9iLOTG7kG4TcQuirZUQ/ylPRJFxrIw8HuVvq5otlXkQgxjq8vITO0g9hsX TjgXLKXocgpDPO1JZk3YMvlm/HCib8ldsbMiVRk2/zvMT9a+JlAWEkKgSwCLp1bNRf1Q fg9g== MIME-Version: 1.0 Received: by 10.66.73.69 with SMTP id j5mr20685369pav.8.1342905364901; Sat, 21 Jul 2012 14:16:04 -0700 (PDT) Received: by 10.68.191.138 with HTTP; Sat, 21 Jul 2012 14:16:04 -0700 (PDT) In-Reply-To: References: Date: Sat, 21 Jul 2012 14:16:04 -0700 Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: multi vap Multi-SSID with ath on FreeBSD 10-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 21:16:05 -0000 hi, Do you need 'bssid' on the ifconfig line? Can you provide the output of ifconfig -a when you create the good and bad configuration? I'd like to see the bssid's. It's quite possible that the beacon timers and beacon slot allocation is wrong, leading to issues. Adrian On 21 July 2012 13:46, Kim Culhan wrote: > It seems the max vap I can do is 3. > > Have been testing a setup with 2 vap running WPA2 and 1 running in OPEN mode. > > Adding 1 more vap in WPA2 makes things unuseable, and results in a > duplicated wlanX bssid. > > There are usually 1 or 2 missing ssid's as received on a 80211n radio > with 3 vap in WPA2 mode > > ssid's are reliable when running 2 WPA2 vap + 1 vap in OPEN mode. > > These configs are maybe not the best, I'll try any alternatives. > > In rc.conf: > > ifconfig_wlan0="channel 6 ssid Guest" > ifconfig_wlan1="channel 6 ssid ap1" > ifconfig_wlan2="channel 6 ssid ap2" > > wlans_ath0="wlan0 wlan1 wlan2" > > create_args_wlan0="wlanmode hostap bssid" > create_args_wlan1="wlanmode hostap bssid" > create_args_wlan2="wlanmode hostap bssid" > > hostapd1_enable="YES" > hostapd2_enable="YES" > > > hostapd1.conf: > > interface=wlan1 > driver=bsd > logger_syslog=-1 > logger_syslog_level=0 > logger_stdout=-1 > logger_stdout_level=0 > dump_file=/tmp/hostapd1.dump > ctrl_interface=/var/run/hostapd1 > ctrl_interface_group=wheel > ssid=ap1 > ieee8021x=0 > wpa=2 > wpa_passphrase=supersecret > wpa_key_mgmt=WPA-PSK > wpa_pairwise=CCMP > > hostapd2.conf is similar > > -kim From owner-freebsd-wireless@FreeBSD.ORG Sat Jul 21 22:07:55 2012 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A83B4106566B for ; Sat, 21 Jul 2012 22:07:55 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3224C8FC16 for ; Sat, 21 Jul 2012 22:07:55 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:a84b:9962:ac85:792c]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 80EE84AC2D; Sun, 22 Jul 2012 02:07:53 +0400 (MSK) Date: Sun, 22 Jul 2012 02:07:52 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <1214412854.20120722020752@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <298155894.20120709002844@serebryakov.spb.ru> <1491344515.20120709013411@serebryakov.spb.ru> <1252921508.20120709132351@serebryakov.spb.ru> <802688919.20120709140808@serebryakov.spb.ru> <1966637204.20120713194935@serebryakov.spb.ru> <5862675.20120713203432@serebryakov.spb.ru> <7750188.20120716011053@serebryakov.spb.ru> <1149707781.20120721231958@serebryakov.spb.r u> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: ath0: device timeout with 802.11n client X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 22:07:55 -0000 Hello, Adrian. You wrote 21 =D0=B8=D1=8E=D0=BB=D1=8F 2012 =D0=B3., 23:21:37: AC> Hm. With debuggimg it works, but turning it off causes timeouts? I'll turn it off tomorrow and will see --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sat Jul 21 22:10:42 2012 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1AE1106564A; Sat, 21 Jul 2012 22:10:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 711B58FC08; Sat, 21 Jul 2012 22:10:42 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so9059571pbb.13 for ; Sat, 21 Jul 2012 15:10:42 -0700 (PDT) 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:content-transfer-encoding; bh=8mtAoEBgcUgr8nWONrFCPmF8HHIH+1mr7chikdURjTw=; b=QGVnl0V02uTWnVuUjH0EWfQX8ogGkLPSRyJCUwltcZGAxkvxD8uHANga0YbPv+lbFH eqYJZL/zNUP0XRIsQLqcSBXhvDLeikjXuv2zABn7wn/D7BUg31TlzsuZ17ha7KjXP+AS qTFIiL7jdAy70W2AFXmOlBoONo+T4goqK1QUCsE7CA+W+85Pr1UM0C5n0f2c4eCiNw67 LWRwunj8u8prqZ4h3hhChus0GfBioc0cbolzGrlETEHaWZksXyEBBYENUCyPynDdeWL9 DCkNOug8BmJDlUusJO+/rd+BqsMjuyWjmPs196XEerdu0UANYEVFXVE7dkMceVFfWAFj qOFA== MIME-Version: 1.0 Received: by 10.66.84.7 with SMTP id u7mr8401009pay.83.1342908642170; Sat, 21 Jul 2012 15:10:42 -0700 (PDT) Received: by 10.68.191.138 with HTTP; Sat, 21 Jul 2012 15:10:42 -0700 (PDT) In-Reply-To: <1214412854.20120722020752@serebryakov.spb.ru> References: <298155894.20120709002844@serebryakov.spb.ru> <1491344515.20120709013411@serebryakov.spb.ru> <1252921508.20120709132351@serebryakov.spb.ru> <802688919.20120709140808@serebryakov.spb.ru> <1966637204.20120713194935@serebryakov.spb.ru> <5862675.20120713203432@serebryakov.spb.ru> <7750188.20120716011053@serebryakov.spb.ru> <1214412854.20120722020752@serebryakov.spb.ru> Date: Sat, 21 Jul 2012 15:10:42 -0700 Message-ID: From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: ath0: device timeout with 802.11n client X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 22:10:42 -0000 On 21 July 2012 15:07, Lev Serebryakov wrote: > Hello, Adrian. > You wrote 21 =D0=B8=D1=8E=D0=BB=D1=8F 2012 =D0=B3., 23:21:37: > > AC> Hm. With debuggimg it works, but turning it off causes timeouts? > I'll turn it off tomorrow and will see Thanks. If that's the case, it's quite likely a timing / race condition bug and even your debugging logs as they are will be very helpful. Thanks, Adrian