From: Kucherenko Valeriy Date: Tue, 22 Mar 2011 15:04:21 +0200 Subject: [ath9k-devel] AR5008 and RX/TX STBC In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org > 2011/3/21 Kucherenko Valeriy : > > 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.old 2011-01-13 03:05:00.000000000 +0200 > > +++ init.c 2011-03-21 23:13:32.599436007 +0200 > > @@ -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" > > ????: "Kucherenko Valeriy" > > ????: 21 ????? 2011, 23:13:44 > > ????: Re: [ath9k-devel] AR5008 and RX/TX STBC > > > > > > > >> On Mon, Mar 21, 2011 at 3:57 PM, Kucherenko Valeriy wrote: > >> > 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? > >> > >> > >> 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 > > 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.