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
<freebsd-wireless@freebsd.org> 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: <Atheros 9280> 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: <Atheros 9280> 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<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0
> mtu 1500
>     ether 04:f0:21:2e:54:4a
>     nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>     media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
>     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<STA,FF,IBSS,PMGT,HOSTAP,AHDEMO,TXPMGT,SHSLOT,SHPREAMBLE,MONITOR,MBSS,WPA1,WPA2,BURST,WME,WDS,TXFRAG>
> cryptocaps=1f<WEP,TKIP,AES,AES_CCM,TKIPMIC>
> htcaps=701ce<CHWIDTH40,SHORTGI40,TXSTBC>
>
> $ 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-unsubscr...@freebsd.org"
_______________________________________________
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

Reply via email to