Skip to contentSkip to conversation

Anyone have a working hostapd conf file for AC?

DISCUSSION Ben Greear 5 participants 11 messages Feb 25, 2014 – Feb 27, 2014 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore

Ben Greear

author
#0 lore raw

I'm working on making a WLE900VX into an AP to do some additional testing. Not having the best of luck yet, but maybe it's my config file....

Does anyone have a working hostapd config file for ath10k?

Thanks,
Ben

Signature · 8 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
#1 lore raw
Quoted 2 lines · Ben Greear

Does anyone have a working hostapd config file for ath10k?

Here's mine (20/40/80 MHz all supported):

interface=wlan0
bridge=br0
ssid=TestWifi
auth_algs=1
wpa=2
wpa_passphrase=1234567890 wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
hw_mode=a
channel=36
country_code=US
ieee80211d=1
ieee80211h=1
ieee80211n=1
ieee80211ac=1
ht_capab=[HT40+]
vht_oper_chwidth=1
# Wifi channel numbers define the center of a 20 MHz

# channel.  40 MHz channels are defined as one channel plus
# the next one 4 up.  80 MHz channels go back to defining by
# center.  If you think about it long enough, you eventually
# discover that the center is 6 channels up from the base 20
# MHz channel, although this isn't very intuitive.
vht_oper_centr_freq_seg0_idx=42

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

author
#2 lore raw
Quoted 5 lines · Avery Pennarun
Quoted 2 lines · Ben Greear

Does anyone have a working hostapd config file for ath10k?

Here's mine (20/40/80 MHz all supported):

Thanks...I managed to get something similar working (open authentication in my case).

I also had to update the regulatory.bin, which enabled HT80.

But, when using ath10k as AP, with both my firmware and the official 10.1.467 firmware, my stations (always ath10k with my hacked firmware) can associate but do not receive any DHCP responses.

When I use my ath10k stations against a Netgear AC AP, then they associate and get DHCP and pass traffic to each other... The reported rx encoding rate is never reaches much above 200Mbps, though..seems like it would train up higher.

My ath10k stations also work fine against an ath9k /n AP.

Hard to know what to blame though...

Thanks,
Ben

Signature · 8 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
#3 lore raw
Quoted 10 lines · Ben Greear
Quoted 5 lines · Avery Pennarun
Quoted 2 lines · Ben Greear

Does anyone have a working hostapd config file for ath10k?

Here's mine (20/40/80 MHz all supported):

Thanks...I managed to get something similar working (open authentication in my case).

Quoted 6 lines

I also had to update the regulatory.bin, which enabled HT80.

But, when using ath10k as AP, with both my firmware and the official 10.1.467 firmware, my stations (always ath10k with my hacked firmware) can associate but do not receive any DHCP responses.

I've seen some similar symptoms but I'm confused about which symptoms occurred when, and don't have good reproduction steps yet. I think killing hostapd, then unloading/reloading the driver, then restarting hostapd, generally fixes it.

Of course check the obvious things, like delete any bridge= line from hostapd.conf, make sure you do 'ip link set wlan0 up', make sure dhcpd is running on the right device, etc.

You might want to try a static IP configuration and then tcpdump to see which direction(s) the data is going in. My experience is it jams in one direction or the other, but I can't remember which direction.

Quoted 4 lines

When I use my ath10k stations against a Netgear AC AP, then they associate and get DHCP and pass traffic to each other... The reported rx encoding rate is never reaches much above 200Mbps, though..seems like it would train up higher.

I've done better than 200 Mbps, but haven't attemped to max out the speeds on my device yet.

Have fun,

Avery

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

#4 lore raw
In reply to Avery Pennarun
Quoted 24 lines · Avery Pennarun
Quoted 2 lines · Ben Greear

Does anyone have a working hostapd config file for ath10k?

Here's mine (20/40/80 MHz all supported):

interface=wlan0
bridge=br0
ssid=TestWifi
auth_algs=1
wpa=2
wpa_passphrase=1234567890 wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
hw_mode=a
channel=36
country_code=US
ieee80211d=1
ieee80211h=1
ieee80211n=1
ieee80211ac=1
ht_capab=[HT40+]
vht_oper_chwidth=1
# Wifi channel numbers define the center of a 20 MHz

Quoted 6 lines
# channel.  40 MHz channels are defined as one channel plus
# the next one 4 up.  80 MHz channels go back to defining by
# center.  If you think about it long enough, you eventually
# discover that the center is 6 channels up from the base 20
# MHz channel, although this isn't very intuitive.
vht_oper_centr_freq_seg0_idx=42

I would suggest to expand the vht capabs in the hostapd config, at least like:
vht_capab=[MAX-MPDU-11454][SHORT-GI-80][MAX-A-MPDU-LEN-EXP0]

MAX-A-MPDU-LEN-EXP0 is translated in hostapd to VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT
(I think it should be EXP7 actually there, I was going to send a patch some time ago for this)

Without this I also got no more than ~200Mbps in ath10k-AP RX.

-Bartosz

Signature · 6 lines
Bartosz

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
#5 lore raw
In reply to Ben Greear
Quoted 6 lines · Ben Greear

I'm working on making a WLE900VX into an AP to do some additional testing. Not having the best of luck yet, but maybe it's my config file....

Does anyone have a working hostapd config file for ath10k?

There's a simple configuration file in the wiki:

http://wireless.kernel.org/en/users/Drivers/ath10k/configuration#Configuring_hostapd

But we should also add a full configuration with all bells and whistles.

Signature · 6 lines
Kalle Valo

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
author
#6 lore raw
Quoted 6 lines · Kalle Valo
Quoted 4 lines · Ben Greear

I'm working on making a WLE900VX into an AP to do some additional testing. Not having the best of luck yet, but maybe it's my config file....

Quoted 8 lines
Quoted 2 lines

Does anyone have a working hostapd config file for ath10k?

There's a simple configuration file in the wiki:

http://wireless.kernel.org/en/users/Drivers/ath10k/configuration#Configuring_hostapd

But we should also add a full configuration with all bells and whistles.

That would be nice.

Also, might be nice to document which channel & center frequency index combinations are supposed to work...the first few I tried did not work, but perhaps it was other issues.

Thanks,
Ben

Signature · 8 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
author
#7 lore raw

For completeness, I'm adding the config that works for me below.

With this I can get around 380Mbps TCP throughput downloading, over the air, using the .467 firmware. I have not yet tried to do any significant tuning to improve this throughput.

Part of my earlier problems was that I had a patch to ath10k that enabled raw rx mode, and that at least partially breaks AP mode (I think standard firmware probably cannot deal with tx mode of different type from rx mode).
I just fixed my code to not enable that feature on standard firmware.

interface=vap1
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2 dump_file=/home/lanforge/wifi/hostapd_vap1.dump ctrl_interface=/var/run/hostapd ctrl_interface_group=0
ssid=ben-ath10k
bssid=00:2e:ec:56:6c:95
country_code=US
ieee80211d=0
hw_mode=a
ieee80211n=1
ieee80211ac=1
beacon_int=240
dtim_period=2
max_num_sta=2007
rts_threshold=2347
fragm_threshold=2346
preamble=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
# Enable HT modes if you want 300Mbps+ throughput. #ht_capab=[HT20][HT40-][HT40+][GF][SHORT-GI-20][SHORT-GI-40]
# [TX-STBC][RX-STBC123][MAX-AMSDU-7935][DSSS_CCK-40][PSMP][LSIG-TXOP-PROT]
ht_capab=[HT20][HT40+][SHORT-GI-40][SHORT-GI-20] vht_capab=[MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP0][SHORT-GI-80] wmm_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0
channel=36
vht_oper_centr_freq_seg0_idx=42
vht_oper_chwidth=1
ieee8021x=0
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=127.0.0.1

# Error emulation settings.
ignore_probe_probability=0.000000
ignore_auth_probability=0.000000
ignore_assoc_probability=0.000000
ignore_reassoc_probability=0.000000
corrupt_gtk_rekey_mic_probability=0.000000

Thanks,
Ben

Signature · 8 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
#8 lore raw
Quoted 3 lines

With this I can get around 380Mbps TCP throughput downloading, over the air, using the .467 firmware. I have not yet tried to do any significant tuning to improve this throughput.

Quite impressive. Is this tested using iperf? I saw that even though the rx rate is MCS9 NSS 3 SGI 80MHz. I only get about 98Mbps TCP throughput using IPerf.

----
Chun-Yeow

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

#9 lore raw
Quoted 7 lines · Yeoh Chun-Yeow
Quoted 3 lines

With this I can get around 380Mbps TCP throughput downloading, over the air, using the .467 firmware. I have not yet tried to do any significant tuning to improve this throughput.

Quite impressive. Is this tested using iperf? I saw that even though the rx rate is MCS9 NSS 3 SGI 80MHz. I only get about 98Mbps TCP throughput using IPerf.

Huh, that's really bad. I haven't done any throughput tests for months, but when I did I was able to easily get over 500 Mbps with iperf TCP OTA tests (can't remember if TX or RX was better). This was on an x86 laptop.

When running throughput tests make sure to disable all possible kernel debugging you have. Starting from CONFIG_ATH10K_DEBUG all the way to slub debugging etc.

Signature · 6 lines
Kalle Valo

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
author
#10 lore raw
In reply to Yeoh Chun-Yeow
Quoted 7 lines · Yeoh Chun-Yeow
Quoted 3 lines

With this I can get around 380Mbps TCP throughput downloading, over the air, using the .467 firmware. I have not yet tried to do any significant tuning to improve this throughput.

Quite impressive. Is this tested using iperf? I saw that even though the rx rate is MCS9 NSS 3 SGI 80MHz. I only get about 98Mbps TCP throughput using IPerf.

It was our own traffic generator, but iperf should work fine. Try using multiple streams, larger send/receive buffers, 64k or so write sizes, etc.

Thanks,
Ben

Quoted 9 lines

----
Chun-Yeow

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

Signature · 8 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k