From owner-freebsd-wireless@FreeBSD.ORG Thu Dec 13 01:39:43 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7ED1E37E; Thu, 13 Dec 2012 01:39:43 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) by mx1.freebsd.org (Postfix) with ESMTP id 280748FC08; Thu, 13 Dec 2012 01:39:43 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id n9so1601075oag.13 for ; Wed, 12 Dec 2012 17:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ROTN67dODE4eJ22X5bcbc77p49TtQFJznykDWdFAkSI=; b=0yuQWDPkRIhIzWq2p6e8VJuIm39U0d8alWP2gwyuJvfNDsPysMbionWPlKobtEBGNn /9z10U2rgPr5lKfD7zlk7EltXy5Sp96GJ7dnN/gj2lEHKDPprO6aWDbp6nCseXYcwGct G7qwyxp4jy2wxuT4wY65s7z2ZdQk81A5d7+yWxJrCA6+C8KShgB4tcj4BXjKUhQgT/Zw KEm0RRuH02j3lGHfGdvVvqdNoNWIAA6ho39/UQ35IItwm4ipGs+bcQS146yg8jBifopt raqDGhqlJljGPO+HxOXsSMunuNVGsOiMh+4nhDWyAji65kFP0P28I0jPislJjL6rC4hc 9m1g== MIME-Version: 1.0 Received: by 10.60.20.101 with SMTP id m5mr82747oee.102.1355362782400; Wed, 12 Dec 2012 17:39:42 -0800 (PST) Received: by 10.60.76.200 with HTTP; Wed, 12 Dec 2012 17:39:42 -0800 (PST) In-Reply-To: References: <50c92508.6384440a.1379.3a4a@mx.google.com> Date: Thu, 13 Dec 2012 05:39:42 +0400 Message-ID: Subject: Re: AR9285 not see n-channels From: Andrey Fesenko To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-wireless@freebsd.org" , freebsd-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Dec 2012 01:39:43 -0000 On Thu, Dec 13, 2012 at 5:33 AM, Adrian Chadd wrote: > Hi, > > The AR9285 is a 2GHz only NIC. > > The channel list shows 11b, 11bg, HT20 and HT40 channels. > > It all looks right, why don't you think it is? > > > Adrian > > > On 12 December 2012 17:32, Andrey Fesenko wrote: >> On Thu, Dec 13, 2012 at 4:55 AM, Adrian Chadd wrote: >>> .. yup, you're doing 11n! Welcome! >>> >>> >>> >>> Adrian >>> >>> On 12 December 2012 16:54, Andrey Fesenko wrote: >>>> On Thu, Dec 13, 2012 at 4:44 AM, Adrian Chadd wrote: >>>>> Yup. It's doing 11n rates. >>>>> >>>>> Compile and run athstats, it'll tell you how many aggregate frames are being >>>>> sent and received. >>>>> >>>>> >>>>> >>>>> Adrian >>>>> >>>>> Sent from my Palm Pre on AT&T >>>>> >>>>> ________________________________ >>>>> On Dec 12, 2012 4:39 PM, Andrey Fesenko wrote: >>>>> >>>>> On Thu, Dec 13, 2012 at 4:32 AM, Adrian Chadd wrote: >>>>>> What's 'ifconfig wlan0' and 'ifconfig wlan0 list sta' look like? >>>>>> >>>>>> >>>>>> >>>>>> adrian >>>>>> >>>>>> >>>>>> On 12 December 2012 15:51, Andrey Fesenko wrote: >>>>>>> I have >>>>>>> # uname -a >>>>>>> FreeBSD beastie.mydomain.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 >>>>>>> r243259: Mon Nov 19 09:28:08 MSK 2012 >>>>>>> root@beastie.mydomain.local:/usr/obj/usr/src/sys/W_BOOK amd64 >>>>>>> # grep ATH /usr/src/sys/amd64/conf/W_BOOK >>>>>>> options ATH_ENABLE_11N >>>>>>> options ATH_DEBUG >>>>>>> options ATH_DIAGAPI >>>>>>> >>>>>>> pciconf >>>>>>> ath0@pci0:5:0:0: class=0x028000 card=0xe016105b chip=0x002b168c >>>>>>> rev=0x01 hdr=0x00 >>>>>>> vendor = 'Atheros Communications Inc.' >>>>>>> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >>>>>>> class = network >>>>>>> >>>>>>> >>>>>>> # ifconfig -v wlan0 list channel >>>>>>> Channel 1 : 2412 MHz 11b Channel 7 : 2442 MHz 11g ht/20 >>>>>>> Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11b >>>>>>> Channel 1 : 2412 MHz 11g ht/20 Channel 8 : 2447 MHz 11g >>>>>>> Channel 2 : 2417 MHz 11b Channel 8 : 2447 MHz 11g ht/20 >>>>>>> Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11b >>>>>>> .... >>>>>>> >>>>>>> wi-fi router have and enable n-mode (linksys e4200) >>>>>>> How to turn on or activate n-mode? >>>>> >>>>> # ifconfig wlan0 list sta >>>>> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG >>>>> 58:6d:8f:fa:d9:50 5 12 72M 27.5 0 2079 31872 EP AQEHTRS >>>>> RSN HTCAP WME WPS >>>>> # ifconfig wlan0 >>>>> wlan0: flags=8843 metric 0 mtu 1500 >>>>> ether 4c:0f:6e:4b:4e:f5 >>>>> inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255 >>>>> nd6 options=29 >>>>> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng >>>>> status: associated >>>>> ssid hometest channel 12 (2467 MHz 11g ht/20) bssid 58:6d:8f:fa:d9:50 >>>>> regdomain 101 indoor ecm authmode WPA2/802.11i privacy ON >>>>> deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 bmiss 7 >>>>> scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme >>>>> burst roaming MANUAL >>>> >>>> # ./athstats >>>> 526213 data frames received >>>> 10205 data frames transmit >>>> 79 short on-chip tx retries >>>> 103 long on-chip tx retries >>>> 16 tx failed 'cuz too many retries >>>> 220 mib overflow interrupts >>>> MCS7 current transmit rate >>>> 1 watchdog timeouts >>>> 42 beacon miss interrupts >>>> 23154 rx failed 'cuz of bad CRC >>>> 56 rx failed 'cuz of PHY err >>>> 56 illegal service >>>> 1638 periodic calibrations >>>> -0/+0 TDMA slot adjust (usecs, smoothed) >>>> 56 rssi of last ack >>>> 50 avg recv rssi >>>> -96 rx noise floor >>>> 13 phantom beacon misses >>>> 6569 tx frames through raw api >>>> 1460 A-MPDU sub-frames received >>>> 183 Half-GI frames received >>>> 183 40MHz frames received >>>> 2397 CRC errors for non-last A-MPDU subframes >>>> 3151 Frames transmitted with HT Protection >>>> 25 A-MPDU sub-frame TX attempt success >>>> 2 first step level >>>> 1 OFDM weak signal detect >>>> 268 listen time >>>> 190 ANI increased spur immunity >>>> 174 ANI decrease spur immunity >>>> 2 ANI enabled OFDM weak signal detect >>>> 3517 ANI disabled OFDM weak signal detect >>>> 3515 ANI disabled CCK weak signal threshold >>>> 4 ANI increased first step level >>>> 2 ANI decreased first step level >>>> 154772 cumulative OFDM phy error count >>>> 528256 cumulative CCK phy error count >>>> 851 ANI forced listen time to zero >>>> 26 missing ACK's >>>> 78 RTS without CTS >>>> 3135 successful RTS >>>> 65747 bad FCS >>>> 473007 beacons received >>>> 53 average rssi (beacons only) >>>> 35 average rssi (all rx'd frames) >>>> 48 average rssi (ACKs only) >>>> Antenna profile: >>>> [0] tx 10173 rx 4 >>>> [1] tx 0 rx 526209 >>>> >>>> >>>> # ./athaggrstats >>>> 17 single frames scheduled >>>> 9 aggregate frames scheduled >>>> 1217 single frames scheduled due to low HWQ depth >>>> >>>> Aggregate size profile: >>>> >>>> 0: 0 1: 0 2: 6 3: 2 >>>> 4: 0 5: 0 6: 0 7: 1 >>>> 8: 0 9: 0 10: 0 11: 0 >> >> why # ifconfig -v wlan0 list channel >> show only b and g channels? and only 13? or this restriction AR9285 >> >> though >> # iperf -i 10 -t 20 -c 192.168.1.26 -w 1024K -l 1024K >> ------------------------------------------------------------ >> Client connecting to 192.168.1.26, TCP port 5001 >> TCP window size: 1.00 MByte (WARNING: requested 1.00 MByte) >> ------------------------------------------------------------ >> [ 3] local 192.168.1.41 port 22263 connected with 192.168.1.26 port 5001 >> [ ID] Interval Transfer Bandwidth >> [ 3] 0.0-10.0 sec 54.0 MBytes 45.3 Mbits/sec Thanks I was confused that there is no mention n-mode in the output channel list