linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vladi <fix@stekloprom.ru>
To: linux-wireless@vger.kernel.org
Subject: dwa-552 in master mode 802.11n
Date: Mon, 20 Sep 2010 02:09:19 +0700	[thread overview]
Message-ID: <4C965FDF.1090509@stekloprom.ru> (raw)

Hello!
I have an ubuntu 10.04 machine with dwa-552 + ath9k + hostapd. DWA-552 
works in master mode as AP in G mode quite good, transfer rate is 
~21mbit/sec (measured with iperf). But it won't go to 802.11n in master 
mode. I can't understand why, iwconfig on dwa-552 says:
wlan0     IEEE 802.11bgn  Mode:Master  Frequency:2.412 GHz  Tx-Power=27 dBm
           Retry  long limit:7   RTS thr:off   Fragment thr:off
           Power Management:off

I tried connecting with intel 4965agn from the same notebook but under 
different oses - MS Vista and Backtrack 4 RC1, both connect in G mode 
and give ~21mbit/sec. Under Vista I tried to turn off/on 802.11n mode in 
device manager, nothing changed, only G mode.
version of hostapd 0.6.9, from ubuntu repo, I compiled and ran 0.7.3 
from hostap.epitest.fi/hostapd, same picture - G mode works, N mode 
shows up but does not work.
I've noticed one curious thing when playing with "ht_capab" in 
hostapd.conf - when I have [HT40-] or [HT40+] in that line transfer rate 
is very low, it's around 4-6mbit/sec. When the line is commented out or 
has [HT20] speed rate is 21mbit/sec.

here's some info on the system:

uname -a:
Linux ubuntu 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:17:33 UTC 
2010 i686 GNU/Linux

lspci -v:
01:07.0 Network controller: Atheros Communications Inc. AR5008 Wireless 
Network Adapter (rev 01)
         Subsystem: D-Link System Inc Device 3a6d
         Flags: bus master, 66MHz, medium devsel, latency 168, IRQ 19
         Memory at dfff0000 (32-bit, non-prefetchable) [size=64K]
         Capabilities: [40] #80 [0000]
         Kernel driver in use: ath9k
         Kernel modules: ath9k

lines from dmesg:
[   16.443999] phy0: Atheros AR5416 MAC/BB Rev:2 AR2133 RF Rev:81: 
mem=0xdc9c0000, irq=19
[   16.447697] cfg80211: Calling CRDA for country: CO
[   16.482455] cfg80211: Regulatory domain changed to country: CO
[   16.482460]  (start_freq - end_freq @ bandwidth), (max_antenna_gain, 
max_eirp)
[   16.482464]  (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[   16.482468]  (5170000 KHz - 5250000 KHz @ 20000 KHz), (300 mBi, 1700 mBm)
[   16.482471]  (5250000 KHz - 5330000 KHz @ 20000 KHz), (300 mBi, 2300 mBm)
[   16.482474]  (5735000 KHz - 5835000 KHz @ 20000 KHz), (300 mBi, 3000 mBm)

/etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
ssid=softap-3
hw_mode=g
ht_capab=[HT40-][SHORT-GI-40][DSSS_CCK-40]
channel=7
wpa=3
wpa_key_mgmt=WPA-PSK
wpa_passphrase=pass
wpa_pairwise=CCMP
ieee80211n=1

iw list:
Wiphy phy0
         Band 1:
                 Capabilities: 0x104e
                         HT20/HT40
                         SM Power Save disabled
                         RX HT40 SGI
                         No RX STBC
                         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 TX/RX MCS rate indexes supported: 0-15
                 Frequencies:
                         * 2412 MHz [1] (27.0 dBm)
                         * 2417 MHz [2] (27.0 dBm)
                         * 2422 MHz [3] (27.0 dBm)
                         * 2427 MHz [4] (27.0 dBm)
                         * 2432 MHz [5] (27.0 dBm)
                         * 2437 MHz [6] (27.0 dBm)
                         * 2442 MHz [7] (27.0 dBm)
                         * 2447 MHz [8] (27.0 dBm)
                         * 2452 MHz [9] (27.0 dBm)
                         * 2457 MHz [10] (27.0 dBm)
                         * 2462 MHz [11] (27.0 dBm)
                         * 2467 MHz [12] (disabled)
                         * 2472 MHz [13] (disabled)
                         * 2484 MHz [14] (disabled)
                 Bitrates (non-HT):
                         * 1.0 Mbps
                         * 2.0 Mbps (short preamble supported)
                         * 5.5 Mbps (short preamble supported)
                         * 11.0 Mbps (short preamble supported)
                         * 6.0 Mbps
                         * 9.0 Mbps
                         * 12.0 Mbps
                         * 18.0 Mbps
                         * 24.0 Mbps
                         * 36.0 Mbps
                         * 48.0 Mbps
                         * 54.0 Mbps
         max # scan SSIDs: 4
         Supported interface modes:
                  * IBSS
                  * managed
                  * AP
                  * AP/VLAN
                  * monitor
                  * mesh point
         Supported commands:
                  * new_interface
                  * set_interface
                  * new_key
                  * new_beacon
                  * new_station
                  * new_mpath
                  * set_mesh_params
                  * set_bss
                  * authenticate
                  * associate
                  * deauthenticate
                  * disassociate
                  * join_ibss
                  * set_wiphy_netns
                  * connect
                  * disconnect

iw dev wlan0 station dump:
Station 1c:4b:d6:d6:60:7e (on wlan0)
         inactive time:  8 ms
         rx bytes:       160983
         rx packets:     691
         tx bytes:       59479
         tx packets:     469
         signal:         -74 dBm
         tx bitrate:     54.0 MBit/

Vladi

                 reply	other threads:[~2010-09-19 19:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C965FDF.1090509@stekloprom.ru \
    --to=fix@stekloprom.ru \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).