From owner-freebsd-wireless@freebsd.org Sat Jun 3 20:53:05 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 D951BBF8FA3 for ; Sat, 3 Jun 2017 20:53:05 +0000 (UTC) (envelope-from pietro.sammarco@googlemail.com) Received: from mail-wr0-x231.google.com (mail-wr0-x231.google.com [IPv6:2a00:1450:400c:c0c::231]) (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 6BB6A7DD48 for ; Sat, 3 Jun 2017 20:53:05 +0000 (UTC) (envelope-from pietro.sammarco@googlemail.com) Received: by mail-wr0-x231.google.com with SMTP id v104so21298040wrb.0 for ; Sat, 03 Jun 2017 13:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=E3h3SK5eOgUgzJpt4BuGsl/XBSXCSGttZL8H8R/b32I=; b=Vebv2sNeLr09+SkIOVXBkWtGk8/YgbFV5hZJ7t2JVLuqNQN2kVaSWh7rGXpFdX4G6i q2ho0JMgkutX87fuziS8tkZbkO7xLUZGG8vuoVsaXE2FOQb/RgE/ssU7u9gVu8RvtTgy eeC76ZXdfGlq2sMpTMiGEzIyOOTSfoIxgE1N0w9irIDi4yT9Glpfrbq8gvXhYjWEvi5d vV4gCIc/2D4b+O8+9ulMAAvGje53hMN7Jh8pZfHgfVSmV++GHuLCaaUwRqGxvJik/OIk fgOqQJ1UYG6y/HaZyMH+NnUVGyAbvXfNMOf0na8UYMtdMUcxj9YoCjzMD2K8BQbTqHoA WRvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=E3h3SK5eOgUgzJpt4BuGsl/XBSXCSGttZL8H8R/b32I=; b=gYsA3SBcfobZzkSUByTZf+eYcFvbNuZLG3Ral75r6Ch976pQiCoeddWy7sCN+rE+9+ 8dQhe9xYafdItx4EzacjPFZvsRK+IW5DpjV/x13AP+T9Jtxfzsb4ZXC6GvJse+ahcOGs Ix8QNkDRZN3ghm/+OA1GtcrMEW2VZsV9DIgMgPuvEBKcMhwnPghAF6ENtHYIGC97T2fd 7BEimfPzjzzqTr2hQrbpmBU7POw0AutVxG5YjJG3E6BvezXnVYtFAGkp/Vy3e1ttyLwJ 8ieBn87FCU0XG5yqVC/VaQsI309zS9lPKkmREuJP/xONPwiANydDZmE36Y4WCzDgggXd DFbQ== X-Gm-Message-State: AODbwcCcWFULkJ7ug2ww9stk0TREThFOt7NIGY6KSRellMx1wXHdle5L 9xITG8tf8y29YzNBnxU= X-Received: by 10.223.134.46 with SMTP id 43mr10625465wrv.123.1496523183742; Sat, 03 Jun 2017 13:53:03 -0700 (PDT) Received: from [10.1.0.55] ([189.216.190.202]) by smtp.gmail.com with ESMTPSA id 140sm6876536wmu.23.2017.06.03.13.53.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Jun 2017 13:53:03 -0700 (PDT) To: "freebsd-wireless@freebsd.org" From: Pietro Sammarco Subject: How do I enable 802.11n in HOSTAPD for Atheros 9280? Message-ID: <3ddb68d1-f1a0-6e11-7d31-7413559d17cb@googlemail.com> Date: Sat, 3 Jun 2017 15:52:59 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 20:53:05 -0000 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 **