Skip to contentSkip to conversation

AR5008 and RX/TX STBC

ath9k-devel Kucherenko Valeriy 3 participants 6 messages Mar 21, 2011 – Mar 23, 2011

lore
Share & tools
lore
#0 lore raw

I have a TP-Link TL-WN951N wireless PCI device (AR5008) and trying to make it work in 802.11n mode with HT and MIMO. According to specifications ( http://www.tp-link.com/products/productDetails.asp?class=&content=spe&pmodel=TL%2DWN951N ) device supports 3*3 MIMO but I'm unable to enable spatial streams because of ath9k driver. I have Ubuntu 10.10 with latest hostapd (compiled from git and configured to support 802.11n) and installed "linux-backports-modules-compat-wireless-2.6.37-2.6.35-28-generic" package (which is latest available). The output of "iw list" command prints next capabilities:

Capabilities: 0x104e
HT20/HT40
SM Power Save disabled RX HT40 SGI
No RX STBC
Max AMSDU length: 7935 bytes DSSS/CCK HT40

So there is no TX and RX STBC available. Even if I provide this options to hostapd like "[TX-STBC][RX-STBC123]" the program is not starting with error message stating that Driver does not support this modes. I'm interesting, it's possible to enable spatial stream multiplexing for my device? Is there any patch for ath9k driver or device is really does not support STBC and the information provided at TP-Links site is false?

Another problem is that when I enable HT40 mode I get connection speed 300Mbps but connection quality and speed is awful. In HT20 mode I get real 150Mbps, good connection and 5-6 mb/sec speed. I guess that the problem with HT40 is linked to absense of STBC. Any thoughts?

#1 lore raw
Quoted 10 lines · Kucherenko Valeriy

I have a TP-Link TL-WN951N wireless PCI device (AR5008) and trying to make it work in 802.11n mode with HT and MIMO. According to specifications ( http://www.tp-link.com/products/productDetails.asp?class=&content=spe&pmodel=TL%2DWN951N ) device supports 3*3 MIMO but I'm unable to enable spatial streams because of ath9k driver. I have Ubuntu 10.10 with latest hostapd (compiled from git and configured to support 802.11n) and installed "linux-backports-modules-compat-wireless-2.6.37-2.6.35-28-generic" package (which is latest available). The output of "iw list" command prints next capabilities:

Capabilities: 0x104e
? ? ? ? ? ? ? ? ? ? ? ?HT20/HT40
? ? ? ? ? ? ? ? ? ? ? ?SM Power Save disabled ? ? ? ? ? ? ? ? ? ? ? ?RX HT40 SGI
? ? ? ? ? ? ? ? ? ? ? ?No RX STBC
? ? ? ? ? ? ? ? ? ? ? ?Max AMSDU length: 7935 bytes ? ? ? ? ? ? ? ? ? ? ? ?DSSS/CCK HT40

Quoted 3 lines

So there is no TX and RX STBC available. Even if I provide this options to hostapd like "[TX-STBC][RX-STBC123]" the program is not starting with error message stating that Driver does not support this modes. I'm interesting, it's possible to enable spatial stream multiplexing for my device? Is there any patch for ath9k driver or device is really does not support STBC and the information provided at TP-Links site is false?

Another problem is that when I enable HT40 mode I get connection speed 300Mbps but connection quality and speed is awful. In HT20 mode I get real 150Mbps, good connection and 5-6 mb/sec speed. I guess that the problem with HT40 is linked to absense of STBC. Any thoughts?

STBC is not the same as spatial streams.
http://en.wikipedia.org/wiki/Space%E2%80%93time_block_code

#2 lore raw

Brian, thanks for clarification on STBC. I have the "HT TX/RX MCS rate..." in "iw list" output, but according to specs my card also should have TX and RX streams (or smth like this I guess). I have write a next patch for init.c file to enable TX and RX STBC for AR5008:

init.c 2011-03-21 23:13:32.599436007 +0200 renamed from init.c.old 2011-01-13 03:05:00.000000000 +0200 +4 -2
@@ -206,12 +206,14 @@
        ht_info->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K;
        ht_info->ampdu_density = IEEE80211_HT_MPDU_DENSITY_8;
 
-       if (AR_SREV_9300_20_OR_LATER(ah))
+       if (AR_SREV_9300_20_OR_LATER(ah)
+         || AR_SREV_5416(ah) || AR_SREV_5416_20_OR_LATER(ah))
                max_streams = 3;
        else
                max_streams = 2;
 
-       if (AR_SREV_9280_20_OR_LATER(ah)) {
+       if (AR_SREV_9280_20_OR_LATER(ah)
+         || AR_SREV_5416(ah) || AR_SREV_5416_20_OR_LATER(ah)) {
                if (max_streams >= 2)
                        ht_info->cap |= IEEE80211_HT_CAP_TX_STBC;
                ht_info->cap |= (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT);

After this patch output from "iw list" looks like:

Capabilities: 0x11ce
HT20/HT40
SM Power Save disabled
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 bytes DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 8 usec (0x06) HT RX MCS rate indexes supported: 0-15
TX unequal modulation not supported
HT TX Max spatial streams: 3
HT TX MCS rate indexes supported may differ

Now I'm able to enable [TX-STBC][RX-STBC1] options in hostapd and have good and strong connect at 150Mbps and a real download/upload speed 37Mbit/s ( by speedtest.net ). Also, I have noticed that after applying this patch I can copy multiple files over network with a little loss of speed: one file - 4-5 Mb/sec, two files (in parallel) - 3-4 Mb/sec for each file (total 7-8 Mb/sec). But, this all good for HT20. In HT40 mode I got 300Mbps connection speed and approx. 5Mbit/s real speed ( by speedtest.net ), also connection is unstable. I have tryed HT40+ and HT40- both with different channels - no good :(

Another interesting moment that I have noticed while experimenting with HT parameters in hostapd is that [MAX-AMSDU-7935] option is not work (again, with "driver does not support this option" or smth like this).

So, the main problem now for me it's how to force card to work normal in HT40 mode and get at least 10-12 Mb/sec real speed. I think it's should be possible :)

And the last moment. I have tested all this with two wireless cards that act as clients: Intel(R) Centrino(R) Advanced-N 6200 AGN and TP-Link TL-WN821N both on Windows7. The results are the same.

--- ???????? ????????? ---
?? ????: "Brian Prodoehl" <[email protected]>
????: "Kucherenko Valeriy" <[email protected]>
????: 21 ????? 2011, 23:13:44
????: Re: [ath9k-devel] AR5008 and RX/TX STBC

Quoted 32 lines · Kucherenko Valeriy
Quoted 10 lines

I have a TP-Link TL-WN951N wireless PCI device (AR5008) and trying to make it work in 802.11n mode with HT and MIMO. According to specifications ( http://www.tp-link.com/products/productDetails.asp?class=&content=spe&pmodel=TL%2DWN951N ) device supports 3*3 MIMO but I'm unable to enable spatial streams because of ath9k driver. I have Ubuntu 10.10 with latest hostapd (compiled from git and configured to support 802.11n) and installed "linux-backports-modules-compat-wireless-2.6.37-2.6.35-28-generic" package (which is latest available). The output of "iw list" command prints next capabilities:

Capabilities: 0x104e
HT20/HT40
SM Power Save disabled RX HT40 SGI
No RX STBC
Max AMSDU length: 7935 bytes DSSS/CCK HT40

Quoted 3 lines

So there is no TX and RX STBC available. Even if I provide this options to hostapd like "[TX-STBC][RX-STBC123]" the program is not starting with error message stating that Driver does not support this modes. I'm interesting, it's possible to enable spatial stream multiplexing for my device? Is there any patch for ath9k driver or device is really does not support STBC and the information provided at TP-Links site is false?

Another problem is that when I enable HT40 mode I get connection speed 300Mbps but connection quality and speed is awful. In HT20 mode I get real 150Mbps, good connection and 5-6 mb/sec speed. I guess that the problem with HT40 is linked to absense of STBC. Any thoughts?

STBC is not the same as spatial streams.
http://en.wikipedia.org/wiki/Space%E2%80%93time_block_code

From the specs of the card, it looks as though it is capable of 3x3 MIMO, but with only two spatial streams, so it should handle MCS0 through MCS15. Check the output of "iw list" for a line like the following:

HT TX/RX MCS rate indexes supported: 0-15

It is possible for a card to support multiple spatial streams without having support for space-time block coding.

-Brian

#3 lore raw

2011/3/21 Kucherenko Valeriy <[email protected]>:

Quoted 45 lines

Brian, thanks for clarification on STBC. I have the "HT TX/RX MCS rate..." in "iw list" output, but according to specs my card also should have TX and RX streams (or smth like this I guess). I have write a next patch for init.c file to enable TX and RX STBC for AR5008:

init.c ? ? ?2011-03-21 23:13:32.599436007 +0200 renamed from init.c.old ?2011-01-13 03:05:00.000000000 +0200 +2 -1
@@ -206,12 +206,14 @@
 ? ? ? ?ht_info->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K;
 ? ? ? ?ht_info->ampdu_density = IEEE80211_HT_MPDU_DENSITY_8;
 
- ? ? ? if (AR_SREV_9300_20_OR_LATER(ah))
+ ? ? ? if (AR_SREV_9300_20_OR_LATER(ah)
+ ? ? ? ? || AR_SREV_5416(ah) || AR_SREV_5416_20_OR_LATER(ah))
 ? ? ? ? ? ? ? ?max_streams = 3;

? ? ? ?else
? ? ? ? ? ? ? ?max_streams = 2;

- ? ? ? if (AR_SREV_9280_20_OR_LATER(ah)) {
+ ? ? ? if (AR_SREV_9280_20_OR_LATER(ah)
+ ? ? ? ? || AR_SREV_5416(ah) || AR_SREV_5416_20_OR_LATER(ah)) { ? ? ? ? ? ? ? ?if (max_streams >= 2)
? ? ? ? ? ? ? ? ? ? ? ?ht_info->cap |= IEEE80211_HT_CAP_TX_STBC; ? ? ? ? ? ? ? ?ht_info->cap |= (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT);

After this patch output from "iw list" looks like:

? ? ? ? ? ? ? ?Capabilities: 0x11ce
? ? ? ? ? ? ? ? ? ? ? ?HT20/HT40
? ? ? ? ? ? ? ? ? ? ? ?SM Power Save disabled
? ? ? ? ? ? ? ? ? ? ? ?RX HT40 SGI
? ? ? ? ? ? ? ? ? ? ? ?TX STBC
? ? ? ? ? ? ? ? ? ? ? ?RX STBC 1-stream
? ? ? ? ? ? ? ? ? ? ? ?Max AMSDU length: 7935 bytes
? ? ? ? ? ? ? ? ? ? ? ?DSSS/CCK HT40
? ? ? ? ? ? ? ?Maximum RX AMPDU length 65535 bytes (exponent: 0x003) ? ? ? ? ? ? ? ?Minimum RX AMPDU time spacing: 8 usec (0x06) ? ? ? ? ? ? ? ?HT RX MCS rate indexes supported: 0-15
? ? ? ? ? ? ? ?TX unequal modulation not supported
? ? ? ? ? ? ? ?HT TX Max spatial streams: 3
? ? ? ? ? ? ? ?HT TX MCS rate indexes supported may differ

Now I'm able to enable [TX-STBC][RX-STBC1] options in hostapd and have good and strong connect at 150Mbps and a real download/upload speed 37Mbit/s ( by speedtest.net ). Also, I have noticed that after applying this patch I can copy multiple files over network with a little loss of speed: one file - 4-5 Mb/sec, two files (in parallel) - 3-4 Mb/sec for each file (total 7-8 Mb/sec). But, this all good for HT20. In HT40 mode I got 300Mbps connection speed and approx. 5Mbit/s real speed ( by speedtest.net ), also connection is unstable. I have tryed HT40+ and HT40- both with different channels - no good :(

Another interesting moment that I have noticed while experimenting with HT parameters in hostapd is that [MAX-AMSDU-7935] option is not work (again, with "driver does not support this option" or smth like this).

So, the main problem now for me it's how to force card to work normal in HT40 mode and get at least 10-12 Mb/sec real speed. I think it's should be possible ?:)

Quoted 41 lines

And the last moment. I have tested all this with two wireless cards that act as clients: Intel(R) Centrino(R) Advanced-N 6200 AGN and TP-Link TL-WN821N both on Windows7. The results are the same.

--- ???????? ????????? ---
??? ????: "Brian Prodoehl" <[email protected]>
?????: "Kucherenko Valeriy" <[email protected]>
?????: 21 ????? 2011, 23:13:44
?????: Re: [ath9k-devel] AR5008 and RX/TX STBC

Quoted 30 lines · Kucherenko Valeriy
Quoted 10 lines

I have a TP-Link TL-WN951N wireless PCI device (AR5008) and trying to make it work in 802.11n mode with HT and MIMO. According to specifications ( http://www.tp-link.com/products/productDetails.asp?class=&content=spe&pmodel=TL%2DWN951N ) device supports 3*3 MIMO but I'm unable to enable spatial streams because of ath9k driver. I have Ubuntu 10.10 with latest hostapd (compiled from git and configured to support 802.11n) and installed "linux-backports-modules-compat-wireless-2.6.37-2.6.35-28-generic" package (which is latest available). The output of "iw list" command prints next capabilities:

Capabilities: 0x104e
? ? ? ? ? ? ? ? ? ? ? ?HT20/HT40
? ? ? ? ? ? ? ? ? ? ? ?SM Power Save disabled ? ? ? ? ? ? ? ? ? ? ? ?RX HT40 SGI
? ? ? ? ? ? ? ? ? ? ? ?No RX STBC
? ? ? ? ? ? ? ? ? ? ? ?Max AMSDU length: 7935 bytes ? ? ? ? ? ? ? ? ? ? ? ?DSSS/CCK HT40

Quoted 3 lines

So there is no TX and RX STBC available. Even if I provide this options to hostapd like "[TX-STBC][RX-STBC123]" the program is not starting with error message stating that Driver does not support this modes. I'm interesting, it's possible to enable spatial stream multiplexing for my device? Is there any patch for ath9k driver or device is really does not support STBC and the information provided at TP-Links site is false?

Another problem is that when I enable HT40 mode I get connection speed 300Mbps but connection quality and speed is awful. In HT20 mode I get real 150Mbps, good connection and 5-6 mb/sec speed. I guess that the problem with HT40 is linked to absense of STBC. Any thoughts?

STBC is not the same as spatial streams.
http://en.wikipedia.org/wiki/Space%E2%80%93time_block_code

From the specs of the card, it looks as though it is capable of 3x3 MIMO, but with only two spatial streams, so it should handle MCS0 through MCS15. Check the output of "iw list" for a line like the following:

HT TX/RX MCS rate indexes supported: 0-15

It is possible for a card to support multiple spatial streams without having support for space-time block coding.

-Brian

Your card does not support STBC on RX or TX, and it only supports two spatial streams. The driver is correct on both of those things. I wouldn't hack the driver the way you did. If "iw list" is reporting support of MCS0-15 before your hacks, then you're good. STBC is a special feature that was not present in AR5008.

As for HT40, I have also seen degraded performance going from HT20 to HT40, even in conducted setups (where a crowded band isn't a possibility). I've heard other reports of HT40 not working very well on the list, as well. So, there's probably a real bug there with HT40.

-Brian

#4 lore raw
Quoted 94 lines

2011/3/21 Kucherenko Valeriy <[email protected]>:

Quoted 45 lines

Brian, thanks for clarification on STBC. I have the "HT TX/RX MCS rate..." in "iw list" output, but according to specs my card also should have TX and RX streams (or smth like this I guess). I have write a next patch for init.c file to enable TX and RX STBC for AR5008:

init.c 2011-03-21 23:13:32.599436007 +0200 renamed from init.c.old 2011-01-13 03:05:00.000000000 +0200 +4 -2
@@ -206,12 +206,14 @@
       ht_info->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K;
       ht_info->ampdu_density = IEEE80211_HT_MPDU_DENSITY_8;
 
-       if (AR_SREV_9300_20_OR_LATER(ah))
+       if (AR_SREV_9300_20_OR_LATER(ah)
+         || AR_SREV_5416(ah) || AR_SREV_5416_20_OR_LATER(ah))
               max_streams = 3;
       else
               max_streams = 2;
 
-       if (AR_SREV_9280_20_OR_LATER(ah)) {
+       if (AR_SREV_9280_20_OR_LATER(ah)
+         || AR_SREV_5416(ah) || AR_SREV_5416_20_OR_LATER(ah)) {
               if (max_streams >= 2)
                       ht_info->cap |= IEEE80211_HT_CAP_TX_STBC;
               ht_info->cap |= (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT);

After this patch output from "iw list" looks like:

Capabilities: 0x11ce
HT20/HT40
SM Power Save disabled
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 bytes DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 8 usec (0x06) HT RX MCS rate indexes supported: 0-15
TX unequal modulation not supported
HT TX Max spatial streams: 3
HT TX MCS rate indexes supported may differ

Now I'm able to enable [TX-STBC][RX-STBC1] options in hostapd and have good and strong connect at 150Mbps and a real download/upload speed 37Mbit/s ( by speedtest.net ). Also, I have noticed that after applying this patch I can copy multiple files over network with a little loss of speed: one file - 4-5 Mb/sec, two files (in parallel) - 3-4 Mb/sec for each file (total 7-8 Mb/sec). But, this all good for HT20. In HT40 mode I got 300Mbps connection speed and approx. 5Mbit/s real speed ( by speedtest.net ), also connection is unstable. I have tryed HT40+ and HT40- both with different channels - no good :(

Another interesting moment that I have noticed while experimenting with HT parameters in hostapd is that [MAX-AMSDU-7935] option is not work (again, with "driver does not support this option" or smth like this).

So, the main problem now for me it's how to force card to work normal in HT40 mode and get at least 10-12 Mb/sec real speed. I think it's should be possible :)

Quoted 41 lines

And the last moment. I have tested all this with two wireless cards that act as clients: Intel(R) Centrino(R) Advanced-N 6200 AGN and TP-Link TL-WN821N both on Windows7. The results are the same.

--- ???????? ????????? ---
?? ????: "Brian Prodoehl" <[email protected]>
????: "Kucherenko Valeriy" <[email protected]>
????: 21 ????? 2011, 23:13:44
????: Re: [ath9k-devel] AR5008 and RX/TX STBC

Quoted 30 lines · Kucherenko Valeriy
Quoted 10 lines

I have a TP-Link TL-WN951N wireless PCI device (AR5008) and trying to make it work in 802.11n mode with HT and MIMO. According to specifications ( http://www.tp-link.com/products/productDetails.asp?class=&content=spe&pmodel=TL%2DWN951N ) device supports 3*3 MIMO but I'm unable to enable spatial streams because of ath9k driver. I have Ubuntu 10.10 with latest hostapd (compiled from git and configured to support 802.11n) and installed "linux-backports-modules-compat-wireless-2.6.37-2.6.35-28-generic" package (which is latest available). The output of "iw list" command prints next capabilities:

Capabilities: 0x104e
HT20/HT40
SM Power Save disabled RX HT40 SGI
No RX STBC
Max AMSDU length: 7935 bytes DSSS/CCK HT40

Quoted 3 lines

So there is no TX and RX STBC available. Even if I provide this options to hostapd like "[TX-STBC][RX-STBC123]" the program is not starting with error message stating that Driver does not support this modes. I'm interesting, it's possible to enable spatial stream multiplexing for my device? Is there any patch for ath9k driver or device is really does not support STBC and the information provided at TP-Links site is false?

Another problem is that when I enable HT40 mode I get connection speed 300Mbps but connection quality and speed is awful. In HT20 mode I get real 150Mbps, good connection and 5-6 mb/sec speed. I guess that the problem with HT40 is linked to absense of STBC. Any thoughts?

STBC is not the same as spatial streams.
http://en.wikipedia.org/wiki/Space%E2%80%93time_block_code

From the specs of the card, it looks as though it is capable of 3x3 MIMO, but with only two spatial streams, so it should handle MCS0 through MCS15. Check the output of "iw list" for a line like the following:

HT TX/RX MCS rate indexes supported: 0-15

It is possible for a card to support multiple spatial streams without having support for space-time block coding.

-Brian

Your card does not support STBC on RX or TX, and it only supports two spatial streams. The driver is correct on both of those things. I wouldn't hack the driver the way you did. If "iw list" is reporting support of MCS0-15 before your hacks, then you're good. STBC is a special feature that was not present in AR5008.

Quoted 9 lines

As for HT40, I have also seen degraded performance going from HT20 to HT40, even in conducted setups (where a crowded band isn't a possibility). I've heard other reports of HT40 not working very well on the list, as well. So, there's probably a real bug there with HT40.

-Brian

Brian, I'm now understand that STBC and spatial streams is a different things :) but this is strange that after enabling STBC for AP, my other wifi-G card (embedded in old notebook) begin to work at normal G-speed (2.5 Mb/sec). I just noticed that after enabling N-mode for AP, old 802.11g clients get low speed (approx. 1 - 1.6 Mb/sec) before patch. Mystic...

Brian, don't you know is the degraded performance in HT40 mode is a cause of ath9k driver or this is a problem of hostapd?

Is [MAX-AMSDU-7935] option supported by the driver? The "iw list" output shows that it supported but I get error when starting hostapd with this parameter specified.

#5 lore raw

How about trying each of those patches one a time, to see exactly what "fixes" performance for you?

Once that's established, you can start working on trying to identify what's different in the AP<->STA negotiation, then see if the radio is being tickled differently, etc.

The trouble with doing so many modifications and tests at once is that it's difficult to untangle what affected what. The easiest way to represent it is a matrix with changes down the rows, and effects across the columns.

I'd suggest just plainly ignoring HT/40 for now until you've sorted out the rest of it.

(This is what I'm doing to try and untangle the 11n bugs/behaviour on Atheros cards under FreeBSD.)

Adrian

2011/3/22 Kucherenko Valeriy <[email protected]>

Quoted 147 lines
Quoted 2 lines

2011/3/21 Kucherenko Valeriy <[email protected]>:

Quoted 1 line

Brian, thanks for clarification on STBC. I have the "HT TX/RX MCS

rate..." in "iw list" output, but according to specs my card also should have TX and RX streams (or smth like this I guess). I have write a next patch for init.c file to enable TX and RX STBC for AR5008:

Quoted 38 lines
Quoted 38 lines
init.c 2011-03-21 23:13:32.599436007 +0200 renamed from init.c.old 2011-01-13 03:05:00.000000000 +0200 +4 -2
@@ -206,12 +206,14 @@
       ht_info->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K;
       ht_info->ampdu_density = IEEE80211_HT_MPDU_DENSITY_8;
 
-       if (AR_SREV_9300_20_OR_LATER(ah))
+       if (AR_SREV_9300_20_OR_LATER(ah)
+         || AR_SREV_5416(ah) || AR_SREV_5416_20_OR_LATER(ah))
               max_streams = 3;
       else
               max_streams = 2;
 
-       if (AR_SREV_9280_20_OR_LATER(ah)) {
+       if (AR_SREV_9280_20_OR_LATER(ah)
+         || AR_SREV_5416(ah) || AR_SREV_5416_20_OR_LATER(ah)) {
               if (max_streams >= 2)
                       ht_info->cap |= IEEE80211_HT_CAP_TX_STBC;
               ht_info->cap |= (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT);

After this patch output from "iw list" looks like:

Capabilities: 0x11ce
HT20/HT40
SM Power Save disabled
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 bytes DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 8 usec (0x06) HT RX MCS rate indexes supported: 0-15
TX unequal modulation not supported
HT TX Max spatial streams: 3
HT TX MCS rate indexes supported may differ

Quoted 1 line
Quoted 1 line

Now I'm able to enable [TX-STBC][RX-STBC1] options in hostapd and have

good and strong connect at 150Mbps and a real download/upload speed 37Mbit/s ( by speedtest.net ). Also, I have noticed that after applying this patch I can copy multiple files over network with a little loss of speed: one file
- 4-5 Mb/sec, two files (in parallel) - 3-4 Mb/sec for each file (total 7-8 Mb/sec). But, this all good for HT20. In HT40 mode I got 300Mbps connection speed and approx. 5Mbit/s real speed ( by speedtest.net ), also connection is unstable. I have tryed HT40+ and HT40- both with different channels - no good :(

Quoted 2 lines
Quoted 2 lines

Another interesting moment that I have noticed while experimenting with

HT parameters in hostapd is that [MAX-AMSDU-7935] option is not work (again, with "driver does not support this option" or smth like this).

Quoted 2 lines
Quoted 2 lines

So, the main problem now for me it's how to force card to work normal

in HT40 mode and get at least 10-12 Mb/sec real speed. I think it's should be possible :)

Quoted 2 lines
Quoted 2 lines

And the last moment. I have tested all this with two wireless cards

that act as clients: Intel(R) Centrino(R) Advanced-N 6200 AGN and TP-Link TL-WN821N both on Windows7. The results are the same.

Quoted 11 lines
Quoted 11 lines

--- ???????? ????????? ---
?? ????: "Brian Prodoehl" <[email protected]>
????: "Kucherenko Valeriy" <[email protected]>
????: 21 ????? 2011, 23:13:44
????: Re: [ath9k-devel] AR5008 and RX/TX STBC

Quoted 1 line

On Mon, Mar 21, 2011 at 3:57 PM, Kucherenko Valeriy <

Quoted 1 line · darkside_ua at ukr.net> wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line

I have a TP-Link TL-WN951N wireless PCI device (AR5008) and trying

to make it work in 802.11n mode with HT and MIMO. According to
specifications (
http://www.tp-link.com/products/productDetails.asp?class=&content=spe&pmodel=TL%2DWN951N) device supports 3*3 MIMO but I'm unable to enable spatial streams because of ath9k driver. I have Ubuntu 10.10 with latest hostapd (compiled from git
and configured to support 802.11n) and installed
"linux-backports-modules-compat-wireless-2.6.37-2.6.35-28-generic" package
(which is latest available). The output of "iw list" command prints next
capabilities:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

Capabilities: 0x104e
HT20/HT40
SM Power Save disabled RX HT40 SGI
No RX STBC
Max AMSDU length: 7935 bytes DSSS/CCK HT40

So there is no TX and RX STBC available. Even if I provide this

options to hostapd like "[TX-STBC][RX-STBC123]" the program is not starting with error message stating that Driver does not support this modes. I'm interesting, it's possible to enable spatial stream multiplexing for my device? Is there any patch for ath9k driver or device is really does not support STBC and the information provided at TP-Links site is false?

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Another problem is that when I enable HT40 mode I get connection

speed 300Mbps but connection quality and speed is awful. In HT20 mode I get real 150Mbps, good connection and 5-6 mb/sec speed. I guess that the problem with HT40 is linked to absense of STBC. Any thoughts?

Quoted 23 lines
Quoted 10 lines
Quoted 10 lines

STBC is not the same as spatial streams.
http://en.wikipedia.org/wiki/Space%E2%80%93time_block_code

From the specs of the card, it looks as though it is capable of 3x3 MIMO, but with only two spatial streams, so it should handle MCS0 through MCS15. Check the output of "iw list" for a line like the following:

Quoted 6 lines
Quoted 6 lines

HT TX/RX MCS rate indexes supported: 0-15

It is possible for a card to support multiple spatial streams without having support for space-time block coding.

-Brian

Your card does not support STBC on RX or TX, and it only supports two spatial streams. The driver is correct on both of those things. I wouldn't hack the driver the way you did. If "iw list" is reporting support of MCS0-15 before your hacks, then you're good. STBC is a special feature that was not present in AR5008.

Quoted 9 lines

As for HT40, I have also seen degraded performance going from HT20 to HT40, even in conducted setups (where a crowded band isn't a possibility). I've heard other reports of HT40 not working very well on the list, as well. So, there's probably a real bug there with HT40.

-Brian

Brian, I'm now understand that STBC and spatial streams is a different things :) but this is strange that after enabling STBC for AP, my other wifi-G card (embedded in old notebook) begin to work at normal G-speed (2.5 Mb/sec). I just noticed that after enabling N-mode for AP, old 802.11g clients get low speed (approx. 1 - 1.6 Mb/sec) before patch. Mystic...

Brian, don't you know is the degraded performance in HT40 mode is a cause of ath9k driver or this is a problem of hostapd?

Quoted 8 lines

Is [MAX-AMSDU-7935] option supported by the driver? The "iw list" output shows that it supported but I get error when starting hostapd with this parameter specified.
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110324/9ae07c69/attachment.htm