Re: How do I enable 802.11n in HOSTAPD for Atheros 9280?

2017-06-03 Thread Adrian Chadd
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 0xfe40-0xfe40 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: 0x; 5GHz radio: 0x00c0
> ath1:  mem 0xfe80-0xfe80 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: 0x; 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=XXe
> 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"


How do I enable 802.11n in HOSTAPD for Atheros 9280?

2017-06-03 Thread Pietro Sammarco via freebsd-wireless

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 0xfe40-0xfe40 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: 0x; 5GHz radio: 0x00c0
ath1:  mem 0xfe80-0xfe80 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: 0x; 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=XXe
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"