Skip to contentSkip to conversation

AR9285 in 2.6.35 HT40 issue

ath9k-devel virtan 2 participants 6 messages Feb 2, 2011 – Feb 4, 2011 1 message not in the archive

lore
Share & tools
lore

virtan

author
#0 lore raw

Hello.

I have TP-Link WN781ND 802.11n Wi-Fi card with AR9285 chipset.
It looks like that: http://fourpair.com/ccp6_09/media/ccp0/prodlg/TL-WN781ND.jpg

I have 10.10 Ubuntu with 2.6.35-25 kernel which supports my Wi-Fi card (according to http://wireless.kernel.org/en/users/Drivers/ath9k).

And it does. I set hostapd up and my card is working as access point. But only in HT20 mode with maximum raw bitrate of 65Mbps.

The problem that I can't set either HT40+ or HT40- mode and it looks like the problem is in ath9k driver.

What I have to think so:

1. Chipset supports HT40 mode according to:
[root at booster ~] iw list
Wiphy phy0
Band 1:
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

and website of producer:
http://www.atheros.com/technology/technology.php?nav1=47&product=79

and posts of other owners.

2. hostapd works only if HT40+ or HT40- option not specified:

working hostapd.conf contains ht_capab=[SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]

if I add HT40+ or HT40- option:
ht_capab=[HT40-][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]

with channel=7, I get

Could not set channel for kernel driver

error from hostapd.

3. Setting HT40+ or HT40- option explicitly with iw gives (client is connected to wlan0):

# iw wlan0 set channel 7 HT40+
command failed: Invalid argument (-22)
# iw wlan0 set channel 7 HT40-
command failed: Invalid argument (-22)

while

# iw wlan0 set channel 7 HT20

gives no error.

4. "iw wlan0 station dump" during active client connection gives

tx bitrate: 65 Mbit/s MCS 7

Can you help me to set HT40 mode on ?

Signature · 1 line
virtan / virtan at virtan.com / http://www.virtan.com
#1 lore raw
Quoted 38 lines · virtan

Hello.

I have TP-Link WN781ND 802.11n Wi-Fi card with AR9285 chipset.
It looks like that: http://fourpair.com/ccp6_09/media/ccp0/prodlg/TL-WN781ND.jpg

I have 10.10 Ubuntu with 2.6.35-25 kernel which supports my Wi-Fi card (according to http://wireless.kernel.org/en/users/Drivers/ath9k).

And it does. I set hostapd up and my card is working as access point. But only in HT20 mode with maximum raw bitrate of 65Mbps.

The problem that I can't set either HT40+ or HT40- mode and it looks like the problem is in ath9k driver.

What I have to think so:

1. Chipset supports HT40 mode according to:
[root at booster ~] iw list
Wiphy phy0
? ? ? ?Band 1:
? ? ? ? ? ? ? ?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

and website of producer:
http://www.atheros.com/technology/technology.php?nav1=47&product=79

and posts of other owners.

2. hostapd works only if HT40+ or HT40- option not specified:

working hostapd.conf contains ht_capab=[SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]

Quoted 8 lines

if I add HT40+ or HT40- option:
ht_capab=[HT40-][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]

with channel=7, I get

Could not set channel for kernel driver

error from hostapd.

Please git clone the latest hostapd there were some changes recently in src/drivers/hw_features.c
hope it helps

Quoted 31 lines

3. Setting HT40+ or HT40- option explicitly with iw gives (client is connected to wlan0):

# iw wlan0 set channel 7 HT40+
command failed: Invalid argument (-22)
# iw wlan0 set channel 7 HT40-
command failed: Invalid argument (-22)

while

# iw wlan0 set channel 7 HT20

gives no error.

4. "iw wlan0 station dump" during active client connection gives

tx bitrate: ? 65 Mbit/s MCS 7

Can you help me to set HT40 mode on ?

--
virtan / virtan at virtan.com / http://www.virtan.com

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 11 lines · virtan
Quoted 9 lines · Mohammed Shafi
Quoted 4 lines

Could not set channel for kernel driver

error from hostapd.

Please git clone the latest hostapd there were some changes recently in src/drivers/hw_features.c
hope it helps

Quoted 6 lines

It doesn't help, but cleared situation a bit: now I have the following error

20/40 MHz operation not permitted on channel pri=7 sec=3 based on overlapping BSSes

Can I bypass it ?

Yes please try with different combination and this result is obtained on scan check.

Quoted 4 lines

--
virtan / virtan at virtan.com / http://www.virtan.com

author
#4 lore raw
Quoted 14 lines · Mohammed Shafi
Quoted 13 lines · virtan
Quoted 9 lines · Mohammed Shafi
Quoted 4 lines

Could not set channel for kernel driver

error from hostapd.

Please git clone the latest hostapd there were some changes recently in src/drivers/hw_features.c
hope it helps

It doesn't help, but cleared situation a bit: now I have the following error

Quoted 7 lines
Quoted 4 lines

20/40 MHz operation not permitted on channel pri=7 sec=3 based on overlapping BSSes

Can I bypass it ?

Yes please try with different combination and this result is obtained on scan check.

I've tried any possible combination of primary and secondary channels, but none have helped me. 50% on 50% I get error about overlapping BSSes or "Could not set channel for kernel driver".

I contacted with technical person in Atheros and they said:

"HT40 mode in the 2.4Ghz band is automatically controlled and cannot be forced per the 11n specification. If no interference or legacy networks are seen by the driver then HT40 will be enabled. The AR9285 support HT40 mode in this manner only"

and

"HostAPD is confirming that legacy WLAN is being detected and preventing HT40 operation. In HT20 AP mode you should see throughput of around 30-40 mbps in an open or WPA config. 11n rates are not supported using WEP per 11n spec so if WEP is used you'll shift to 11g rates."

So, it seems that I have no way to use higher rates in my environment (except going to 5GHz).

Quoted 5 lines
Quoted 5 lines

--
virtan / virtan at virtan.com / http://www.virtan.com

Signature · 1 line
virtan / virtan at virtan.com / http://www.virtan.com
#5 lore raw
Quoted 30 lines · virtan
Quoted 14 lines · Mohammed Shafi
Quoted 13 lines · virtan
Quoted 9 lines · Mohammed Shafi
Quoted 4 lines

Could not set channel for kernel driver

error from hostapd.

Please git clone the latest hostapd there were some changes recently in src/drivers/hw_features.c
hope it helps

It doesn't help, but cleared situation a bit: now I have the following error

Quoted 7 lines
Quoted 4 lines

20/40 MHz operation not permitted on channel pri=7 sec=3 based on overlapping BSSes

Can I bypass it ?

Yes please try with different combination and this result is obtained on scan check.

I've tried any possible combination of primary and secondary channels, but none have helped me. 50% on 50% I get error about overlapping BSSes or "Could not set channel for kernel driver".

I contacted with technical person in Atheros and they said:

Quoted 8 lines

"HT40 mode in the 2.4Ghz band is automatically controlled and cannot be forced per the 11n specification. If no interference or legacy networks are seen by the driver then HT40 will be enabled. The AR9285 support HT40 mode in this manner only"

and

"HostAPD is confirming that legacy WLAN is being detected and preventing HT40 operation. In HT20 AP mode you should see throughput of around 30-40 mbps in an open or WPA config. 11n rates are not supported using WEP per 11n spec so if WEP is used you'll shift to 11g rates."

So, it seems that I have no way to use higher rates in my environment (except going to 5GHz).

AR9285 does not supports 5GHZ either :( . we need to find some workaround or some thing ..

Quoted 11 lines
Quoted 6 lines
Quoted 6 lines

--
virtan / virtan at virtan.com / http://www.virtan.com

--
virtan / virtan at virtan.com / http://www.virtan.com

author
#6 lore raw
Quoted 33 lines · Mohammed Shafi
Quoted 32 lines · virtan
Quoted 14 lines · Mohammed Shafi
Quoted 13 lines · virtan
Quoted 9 lines · Mohammed Shafi
Quoted 4 lines

Could not set channel for kernel driver

error from hostapd.

Please git clone the latest hostapd there were some changes recently in src/drivers/hw_features.c
hope it helps

It doesn't help, but cleared situation a bit: now I have the following error

Quoted 7 lines
Quoted 4 lines

20/40 MHz operation not permitted on channel pri=7 sec=3 based on overlapping BSSes

Can I bypass it ?

Yes please try with different combination and this result is obtained on scan check.

I've tried any possible combination of primary and secondary channels, but none have helped me. 50% on 50% I get error about overlapping BSSes or "Could not set channel for kernel driver".

I contacted with technical person in Atheros and they said:

"HT40 mode in the 2.4Ghz band is automatically controlled and cannot be forced per the 11n specification. If no interference or legacy networks are seen by the driver then HT40 will be enabled. The AR9285 support HT40 mode in this manner only"

Quoted 8 lines
Quoted 6 lines

and

"HostAPD is confirming that legacy WLAN is being detected and preventing HT40 operation. In HT20 AP mode you should see throughput of around 30-40 mbps in an open or WPA config. 11n rates are not supported using WEP per 11n spec so if WEP is used you'll shift to 11g rates."

So, it seems that I have no way to use higher rates in my environment (except going to 5GHz).

AR9285 does not supports 5GHZ either :( . we need to find some workaround or some thing ..

I didn't mean staying with AR9285.
I don't know what workaround can we find with options we have :)

Quoted 11 lines
Quoted 11 lines
Quoted 6 lines
Quoted 6 lines

--
virtan / virtan at virtan.com / http://www.virtan.com

--
virtan / virtan at virtan.com / http://www.virtan.com

Signature · 1 line
virtan / virtan at virtan.com / http://www.virtan.com