All of lore.kernel.org
 help / color / mirror / Atom feed
* Anyone have a working hostapd conf file for AC?
@ 2014-02-25 22:00 Ben Greear
  2014-02-26  0:19 ` Avery Pennarun
  2014-02-26 17:37 ` Kalle Valo
  0 siblings, 2 replies; 11+ messages in thread
From: Ben Greear @ 2014-02-25 22:00 UTC (permalink / raw)
  To: ath10k

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

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Anyone have a working hostapd conf file for AC?
  2014-02-25 22:00 Anyone have a working hostapd conf file for AC? Ben Greear
@ 2014-02-26  0:19 ` Avery Pennarun
  2014-02-26  0:51   ` Ben Greear
  2014-02-26  6:23   ` Bartosz Markowski
  2014-02-26 17:37 ` Kalle Valo
  1 sibling, 2 replies; 11+ messages in thread
From: Avery Pennarun @ 2014-02-26  0:19 UTC (permalink / raw)
  To: Ben Greear; +Cc: ath10k

On Tue, Feb 25, 2014 at 2:00 PM, Ben Greear <greearb@candelatech.com> wrote:
> 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
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Anyone have a working hostapd conf file for AC?
  2014-02-26  0:19 ` Avery Pennarun
@ 2014-02-26  0:51   ` Ben Greear
  2014-02-26  1:08     ` Avery Pennarun
  2014-02-26  6:23   ` Bartosz Markowski
  1 sibling, 1 reply; 11+ messages in thread
From: Ben Greear @ 2014-02-26  0:51 UTC (permalink / raw)
  To: Avery Pennarun; +Cc: ath10k

On 02/25/2014 04:19 PM, Avery Pennarun wrote:
> On Tue, Feb 25, 2014 at 2:00 PM, Ben Greear <greearb@candelatech.com> wrote:
>> 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

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Anyone have a working hostapd conf file for AC?
  2014-02-26  0:51   ` Ben Greear
@ 2014-02-26  1:08     ` Avery Pennarun
  0 siblings, 0 replies; 11+ messages in thread
From: Avery Pennarun @ 2014-02-26  1:08 UTC (permalink / raw)
  To: Ben Greear; +Cc: ath10k

On Tue, Feb 25, 2014 at 4:51 PM, Ben Greear <greearb@candelatech.com> wrote:
> On 02/25/2014 04:19 PM, Avery Pennarun wrote:
>> On Tue, Feb 25, 2014 at 2:00 PM, Ben Greear <greearb@candelatech.com> wrote:
>>> 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.

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.

> 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
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Anyone have a working hostapd conf file for AC?
  2014-02-26  0:19 ` Avery Pennarun
  2014-02-26  0:51   ` Ben Greear
@ 2014-02-26  6:23   ` Bartosz Markowski
  1 sibling, 0 replies; 11+ messages in thread
From: Bartosz Markowski @ 2014-02-26  6:23 UTC (permalink / raw)
  To: Avery Pennarun; +Cc: Ben Greear, ath10k

On 26 February 2014 01:19, Avery Pennarun <apenwarr@gmail.com> wrote:
> On Tue, Feb 25, 2014 at 2:00 PM, Ben Greear <greearb@candelatech.com> wrote:
>> 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

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

-- 
Bartosz

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Anyone have a working hostapd conf file for AC?
  2014-02-25 22:00 Anyone have a working hostapd conf file for AC? Ben Greear
  2014-02-26  0:19 ` Avery Pennarun
@ 2014-02-26 17:37 ` Kalle Valo
  2014-02-26 17:46   ` Ben Greear
  1 sibling, 1 reply; 11+ messages in thread
From: Kalle Valo @ 2014-02-26 17:37 UTC (permalink / raw)
  To: Ben Greear; +Cc: ath10k

Ben Greear <greearb@candelatech.com> writes:

> 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.

-- 
Kalle Valo

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Anyone have a working hostapd conf file for AC?
  2014-02-26 17:37 ` Kalle Valo
@ 2014-02-26 17:46   ` Ben Greear
  2014-02-26 22:42     ` Ben Greear
  0 siblings, 1 reply; 11+ messages in thread
From: Ben Greear @ 2014-02-26 17:46 UTC (permalink / raw)
  To: Kalle Valo; +Cc: ath10k

On 02/26/2014 09:37 AM, Kalle Valo wrote:
> Ben Greear <greearb@candelatech.com> writes:
> 
>> 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.

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

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Anyone have a working hostapd conf file for AC?
  2014-02-26 17:46   ` Ben Greear
@ 2014-02-26 22:42     ` Ben Greear
  2014-02-27 13:42       ` Yeoh Chun-Yeow
  0 siblings, 1 reply; 11+ messages in thread
From: Ben Greear @ 2014-02-26 22:42 UTC (permalink / raw)
  To: Kalle Valo; +Cc: ath10k

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

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Anyone have a working hostapd conf file for AC?
  2014-02-26 22:42     ` Ben Greear
@ 2014-02-27 13:42       ` Yeoh Chun-Yeow
  2014-02-27 13:53         ` Kalle Valo
  2014-02-27 16:51         ` Ben Greear
  0 siblings, 2 replies; 11+ messages in thread
From: Yeoh Chun-Yeow @ 2014-02-27 13:42 UTC (permalink / raw)
  To: Ben Greear; +Cc: Kalle Valo, ath10k

> 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
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Anyone have a working hostapd conf file for AC?
  2014-02-27 13:42       ` Yeoh Chun-Yeow
@ 2014-02-27 13:53         ` Kalle Valo
  2014-02-27 16:51         ` Ben Greear
  1 sibling, 0 replies; 11+ messages in thread
From: Kalle Valo @ 2014-02-27 13:53 UTC (permalink / raw)
  To: Yeoh Chun-Yeow; +Cc: Ben Greear, ath10k

Yeoh Chun-Yeow <yeohchunyeow@gmail.com> writes:

>> 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.

-- 
Kalle Valo

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Anyone have a working hostapd conf file for AC?
  2014-02-27 13:42       ` Yeoh Chun-Yeow
  2014-02-27 13:53         ` Kalle Valo
@ 2014-02-27 16:51         ` Ben Greear
  1 sibling, 0 replies; 11+ messages in thread
From: Ben Greear @ 2014-02-27 16:51 UTC (permalink / raw)
  To: Yeoh Chun-Yeow; +Cc: Kalle Valo, ath10k

On 02/27/2014 05:42 AM, Yeoh Chun-Yeow wrote:
>> 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

> 
> ----
> Chun-Yeow
> 
> _______________________________________________
> ath10k mailing list
> ath10k@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/ath10k
> 


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-02-27 16:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-25 22:00 Anyone have a working hostapd conf file for AC? Ben Greear
2014-02-26  0:19 ` Avery Pennarun
2014-02-26  0:51   ` Ben Greear
2014-02-26  1:08     ` Avery Pennarun
2014-02-26  6:23   ` Bartosz Markowski
2014-02-26 17:37 ` Kalle Valo
2014-02-26 17:46   ` Ben Greear
2014-02-26 22:42     ` Ben Greear
2014-02-27 13:42       ` Yeoh Chun-Yeow
2014-02-27 13:53         ` Kalle Valo
2014-02-27 16:51         ` Ben Greear

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.