From owner-freebsd-wireless@freebsd.org Sat Jun 3 21:50:10 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5CD5BF9A2E for ; Sat, 3 Jun 2017 21:50:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wr0-x22a.google.com (mail-wr0-x22a.google.com [IPv6:2a00:1450:400c:c0c::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BF7E7EFF5 for ; Sat, 3 Jun 2017 21:50:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wr0-x22a.google.com with SMTP id g76so21596460wrd.1 for ; Sat, 03 Jun 2017 14:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=i/aOpnSoI+gzhsHhpoVhdF/WwwgzXkhL3nsUQDPLgVo=; b=N7e/Fbirn5O4vdOMzxWJnokR0BMbdIpXv0JTXan8bViiyEnODHJoFOd2N8CyQIvsSo v8ugse/ZG5NVHY+KZj6weHb7azxSLWTwbGdVdTp6ZvD0w1MLNgmXmnxwKeiwyhNKgNlg b0hdiXL8Qwr5j6tTe0v4bHDHuzh2Xp9+OibBLBNUNwovCGpisX30r/nWYmKs/Kcdgi+g lDB5BRGL6V+llmCm1z2buken7c8HM7huiIdh4UXlV7ovcTqZkqqEPXNKGWQnYzjoroIw 72hgv/VK/YO+MLMQu2N7xO9WITtlPLSr04MCJgJgbuA3tzJALsX90HeK34aqwlZDi+zs HneA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=i/aOpnSoI+gzhsHhpoVhdF/WwwgzXkhL3nsUQDPLgVo=; b=BvMJe9MEEDUYkSL6AwvwZNeVX2BpeU6NyBhSyJtx/gkQ8sBamt0B+1rljThugrkaAv kCnWy5CFRfITc+aIM8NFlYDkhLlG/u1qvUVc8jUUBWe/0SVqVsS56gv2WWW30fK2TEWA 0hnWwqI0iF5r3l3qrvfTBdoi6uij1AaqRo83l9G7V0N+O63W20EYHgT+WBkGAmzpo+pt Na9eIRwC13ICyay8T9wsgbACeDiQN6bGsDRMOkxB8WzqKvFnR2SDU1ddwQg5z+CDAaIp 0fWhP0oUYrtjotP2erdCyAOPMcRHlX+NDnLfsGwc+F5rpMcx3MWcvo6ZqLXl7D2EY4ie xJIw== X-Gm-Message-State: AODbwcDw+foPC7kTP5gMx84YumNsRee4/8dfO0nNvzbj0+13LBdDUTAj v2V02m3oGSYSJ0Ksxg9V+fGt3R/iTC4Q X-Received: by 10.223.171.24 with SMTP id q24mr4604262wrc.89.1496526608586; Sat, 03 Jun 2017 14:50:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.193.134 with HTTP; Sat, 3 Jun 2017 14:50:07 -0700 (PDT) In-Reply-To: <3ddb68d1-f1a0-6e11-7d31-7413559d17cb@googlemail.com> References: <3ddb68d1-f1a0-6e11-7d31-7413559d17cb@googlemail.com> From: Adrian Chadd Date: Sat, 3 Jun 2017 14:50:07 -0700 Message-ID: Subject: Re: How do I enable 802.11n in HOSTAPD for Atheros 9280? To: Pietro Sammarco Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 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, 03 Jun 2017 21:50:10 -0000 hi, you should just be able to configure the channel as 11:ht/20 before you start hostapd. -a On 3 June 2017 at 13:52, Pietro Sammarco via freebsd-wireless wrote: > Hello folks. > > I am here once again trying to figure out how to enable 802.11n in HOSTAPD > for the Atheros 9280 wireless chip on FreeBSD 11. > > Although "ieee80211n" is not recognized by FreeBSD's HOSTAPD, If I am not > mistaken I was told that it would handle 802.11n tx/rx automatically on > supported interfaces, and based on > https://wiki.freebsd.org/dev/ath(4)/80211n mine appear to be supported. > Still, the antennas are transferring in G mode. > > Do I need to build a custom kernel with "options ATH_ENABLE_11N" enabled? > Also, do I need to be on -HEAD for this to work? I have downloaded 11-STABLE > branch sources and "options ATH_ENABLE_11N" seems to be enabled by default > with GENERIC kernel, I could be wrong though. Right now I am on FreeBSD > 11-RELEASE p9. > > $ sudo dmesg |grep ath > Password: > ath0: mem 0xfe400000-0xfe40ffff at device 0.0 on pci1 > [ath] enabling AN_TOP2_FIXUP > ath0: [HT] enabling HT modes > ath0: [HT] 1 stream STBC receive enabled > ath0: [HT] 1 stream STBC transmit enabled > ath0: [HT] 2 RX streams; 2 TX streams > ath0: AR9280 mac 128.2 RF5133 phy 13.0 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 > ath1: mem 0xfe800000-0xfe80ffff at device 0.0 on pci5 > [ath] enabling AN_TOP2_FIXUP > ath1: [HT] enabling HT modes > ath1: [HT] 1 stream STBC receive enabled > ath1: [HT] 1 stream STBC transmit enabled > ath1: [HT] 2 RX streams; 2 TX streams > ath1: AR9280 mac 128.2 RF5133 phy 13.0 > ath1: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 > > $ ifconfig wlan0 && ifconfig wlan0 list caps > wlan0: flags=8943 metric 0 > mtu 1500 > ether 04:f0:21:2e:54:4a > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: running > ssid WirelessFreedom channel 11 (2462 MHz 11g) bssid 04:f0:21:2e:54:4a > regdomain FCC country US ecm authmode WPA2/802.11i privacy MIXED > deftxkey 3 TKIP 2:128-bit TKIP 3:128-bit txpower 30 scanvalid 60 > protmode CTS wme burst dtimperiod 1 -dfs > groups: wlan > drivercaps=4f8def41 > cryptocaps=1f > htcaps=701ce > > $ cat /etc/hostapd-wlan0.conf > interface=wlan0 > bssid=04:f0:21:2e:54:4a > channel=11 > country_code=US # the country code > ctrl_interface=/var/run/hostapd > ctrl_interface_group=0 > logger_syslog=-1 > logger_syslog_level=2 > ssid=WirelessFreedom > wpa=2 > max_num_sta=255 > beacon_int=100 > #wmm_enabled=1 > # spaces between beginning and end of the password will be counted as part > of it!!! > wpa_passphrase=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXe > wpa_key_mgmt=WPA-PSK > wpa_pairwise=TKIP CCMP > > $ cat /etc/rc.conf |grep wlan0 > wlans_ath0="wlan0" > create_args_wlan0="wlanmode hostap" > ifconfig_wlan0="up" > > $ cat /boot/loader.conf |grep ath > if_ath_load="YES" > > Thanks for your help > > Regards, > Pietro > ** > > > > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"