From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 23 14:22:59 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 012FB757 for ; Tue, 23 Jul 2013 14:22:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7B5582147 for ; Tue, 23 Jul 2013 14:22:58 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id q55so3186746wes.16 for ; Tue, 23 Jul 2013 07:22:56 -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=JMikyeQPvJkn8VWHPYKA85SvokodOlBMiXteqPtyv4g=; b=fzQyxnX1rn/3c3vEBxJgGRaj98hkLwNBD6v8FAFe3NezddJlOQjgbL7EmnxHMflNdx QDn/j8VMy2qcf9kohjXLS3pRSSK/aj5J3llkksSYQ2qSmaTtfWpu66ZEHSlNKsxZqQVI 2m564WnbjzakPpe5RlRwwLVW48o6+EpUPLMr5ygz+Z06rlXPfyprJVgdNCX+Mciqr7Tl 4SPDcWDlnjzR1uXWA9Xsdm07J0vIjif+mamO/V7pqDHoKY84GLXHMTUzo/3/Re1nz7n0 +sg6wgY9QMpl4n1Kh3que1TwamAw8ZuyDrj4An4kCEt1COUDoiooKO5CIUG0wHhx4snO Cwnw== MIME-Version: 1.0 X-Received: by 10.180.160.165 with SMTP id xl5mr33173181wib.46.1374589376675; Tue, 23 Jul 2013 07:22:56 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.94.132 with HTTP; Tue, 23 Jul 2013 07:22:56 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 Jul 2013 07:22:56 -0700 X-Google-Sender-Auth: smFhm4mk48Taz4XOgE9bhGPKpWw Message-ID: Subject: Re: wifi hostap Atheros AR938x From: Adrian Chadd To: "Sam Fourman Jr." Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 14:22:59 -0000 I don't think so. The handbook chapter(s) on wireless need updating. :( -adrian On 20 July 2013 20:49, Sam Fourman Jr. wrote: > hello wifi list, > > I want to test out 802.11n in hostap mode on FreeBSD, my aim is to provide > the developers with as much feedback as I can.. > > is there a wiki somewhere, that says how to put up a ath device in hostap > and specifically use 802.11n (2.4 band) > I want to know things like, what lines specifically do I put in my > /etc/rc.conf so that it starts up on boot. > > What lines do I use in rc.conf to get a client to connect via 802.11n (in > FreeBSD HEAD) > I know ath has a manpage, but it doesn't specify any 802.11n stuff, even if > you build -HEAD > > > I have read this page, https://wiki.freebsd.org/dev/ath%284%29/80211n and > built a kernel with the correct options.. > as you can see from the output below, using a command similar to: > # ifconfig wlan0 channel 6:ht/40 > > > i am new to the whole 802.11n thing, if I have 2.4gz 11n stuff that means > it is ht/20 only correct? > > I just need a bit of a primer on this whole thing, and that is why I am > asking about a wiki page... > > > here is some random output from commands I typed that should give some more > background as to the hardware I have. > > root@Border:~ # dmesg | more > > Copyright (c) 1992-2013 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 10.0-CURRENT #1 r253505: Sat Jul 20 17:46:47 UTC 2013 > root@Border:/usr/obj/usr/src/sys/BORDER amd64 > FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 > WARNING: WITNESS option enabled, expect reduced performance. > CPU: Intel(R) Core(TM)2 Quad CPU @ 2.40GHz (2400.03-MHz K8-class > CPU) > Origin = "GenuineIntel" Id = 0x6f7 Family = 0x6 Model = 0xf Stepping > = 7 > > Features=0xbfebfbff > Features2=0xe3bd > AMD Features=0x20100800 > AMD Features2=0x1 > TSC: P-state invariant, performance statistics > real memory = 8589934592 (8192 MB) > avail memory = 7970045952 (7600 MB) > Event timer "LAPIC" quality 400 > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > FreeBSD/SMP: 1 package(s) x 4 core(s) > ................... > > > root@Border:~ # dmesg | grep ath > ath0: mem 0xefac0000-0xefadffff irq 16 at device 0.0 on > pci4 > ath0: RX status length: 48 > ath0: RX buffer size: 4096 > ath0: TX descriptor length: 128 > ath0: TX status length: 36 > ath0: TX buffers per descriptor: 4 > ath0: ath_edma_setup_rxfifo: type=0, FIFO depth = 16 entries > ath0: ath_edma_setup_rxfifo: type=1, FIFO depth = 128 entries > ath0: [HT] enabling HT modes > ath0: [HT] enabling short-GI in 20MHz mode > ath0: [HT] 1 stream STBC receive enabled > ath0: [HT] 1 stream STBC transmit enabled > ath0: [HT] 3 RX streams; 3 TX streams > ath0: AR9380 mac 448.3 RF5110 phy 0.0 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 > ath0: stuck beacon; resetting (bmiss count 4) > ath0: stuck beacon; resetting (bmiss count 0) > ath0: stuck beacon; resetting (bmiss count 0) > ath0: stuck beacon; resetting (bmiss count 0) > ath0: stuck beacon; resetting (bmiss count 0) > > > > root@Border:~ # ifconfig wlan0 create wlandev ath0 wlanmode hostap ssid > FreeBSD-WIFI mode 11n up > ifconfig: SIOCSIFMEDIA (media): Device not configured > root@Border:~ # ifconfig wlan0 > wlan0: flags=8843 metric 0 mtu 1500 > ether 7c:c3:a1:b3:fc:af > inet6 fe80::7ec3:a1ff:feb3:fcaf%wlan0 prefixlen 64 scopeid 0x8 > nd6 options=21 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11na > status: running > ssid FreeBSD-WIFI channel 52 (5260 MHz 11a ht/40+) bssid > 7c:c3:a1:b3:fc:af > regdomain 100 indoor ecm authmode OPEN privacy OFF txpower 30 > mcastrate 6 mgmtrate 6 scanvalid 60 ampdulimit 64k ampdudensity 8 > shortgi wme burst dtimperiod 1 -dfs > root@Border:~ # > > root@Border:~ # ifconfig wlan0 destroy > > root@Border:~ # ifconfig -v wlan0 list chan > Channel 1 : 2412 MHz 11b Channel 40 : 5200 MHz 11a > > Channel 1 : 2412 MHz 11g Channel 40 : 5200 MHz 11a > ht/20 > Channel 1 : 2412 MHz 11g ht/20 Channel 40 : 5200 MHz 11a > ht/40- > Channel 2 : 2417 MHz 11b Channel 44 : 5220 MHz 11a > > Channel 2 : 2417 MHz 11g Channel 44 : 5220 MHz 11a > ht/20 > Channel 2 : 2417 MHz 11g ht/20 Channel 44 : 5220 MHz 11a > ht/40+ > Channel 3 : 2422 MHz 11b Channel 48 : 5240 MHz 11a > > Channel 3 : 2422 MHz 11g Channel 48 : 5240 MHz 11a > ht/20 > Channel 3 : 2422 MHz 11g ht/20 Channel 48 : 5240 MHz 11a > ht/40- > Channel 4 : 2427 MHz 11b Channel 52 : 5260 MHz 11a > > Channel 4 : 2427 MHz 11g Channel 52 : 5260 MHz 11a > ht/20 > Channel 4 : 2427 MHz 11g ht/20 Channel 52 : 5260 MHz 11a > ht/40+ > Channel 5 : 2432 MHz 11b Channel 56 : 5280 MHz 11a > > Channel 5 : 2432 MHz 11g Channel 56 : 5280 MHz 11a > ht/20 > Channel 5 : 2432 MHz 11g ht/20 Channel 56 : 5280 MHz 11a > ht/40- > Channel 6 : 2437 MHz 11b Channel 60 : 5300 MHz 11a > > Channel 6 : 2437 MHz 11g Channel 60 : 5300 MHz 11a > ht/20 > Channel 6 : 2437 MHz 11g ht/20 Channel 60 : 5300 MHz 11a > ht/40+ > Channel 7 : 2442 MHz 11b Channel 64 : 5320 MHz 11a > > Channel 7 : 2442 MHz 11g Channel 64 : 5320 MHz 11a > ht/20 > Channel 7 : 2442 MHz 11g ht/20 Channel 64 : 5320 MHz 11a > ht/40- > Channel 8 : 2447 MHz 11b Channel 149 : 5745 MHz 11a > > Channel 8 : 2447 MHz 11g Channel 149 : 5745 MHz 11a > ht/20 > Channel 8 : 2447 MHz 11g ht/20 Channel 149 : 5745 MHz 11a > ht/40+ > Channel 9 : 2452 MHz 11b Channel 153 : 5765 MHz 11a > > Channel 9 : 2452 MHz 11g Channel 153 : 5765 MHz 11a > ht/20 > Channel 9 : 2452 MHz 11g ht/20 Channel 153 : 5765 MHz 11a > ht/40- > Channel 10 : 2457 MHz 11b Channel 157 : 5785 MHz 11a > > Channel 10 : 2457 MHz 11g Channel 157 : 5785 MHz 11a > ht/20 > Channel 10 : 2457 MHz 11g ht/20 Channel 157 : 5785 MHz 11a > ht/40+ > Channel 11 : 2462 MHz 11b Channel 161 : 5805 MHz 11a > > Channel 11 : 2462 MHz 11g Channel 161 : 5805 MHz 11a > ht/20 > Channel 11 : 2462 MHz 11g ht/20 Channel 161 : 5805 MHz 11a > ht/40- > Channel 36 : 5180 MHz 11a Channel 165 : 5825* MHz 11a > > Channel 36 : 5180 MHz 11a ht/20 Channel 165 : 5825* MHz 11a > ht/20 > Channel 36 : 5180 MHz 11a ht/40+ > root@Border:~ # > > -- > > Sam Fourman Jr. > _______________________________________________ > 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"