Skip to contentSkip to conversation

help

ath9k-devel Devan Rehunathan 4 participants 13 messages May 6, 2010 – May 7, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

I am trying to setup a linux wireless access point using the 5GHz spectrum.

I have the following card:

http://www.compexshop.com/product_info.php/cPath/57/products_id/290

installed on a debian machine running 2.6.32.8. I have installed the latest versions of the ath9k driver as well as the latest developmental release of hostapd (0.7.2). When I run "iw list", I see that all the 5GHz channels are either already in use or disabled. While I can manually set the channel to a 5GHz, I am unable to set the card to master mode. Using hostapd returns errors that the driver is unable to select a 5Ghz channel. I've also tried changing the CRDA settings to no avail. I see that AP mode is supported from http://wireless.kernel.org/en/users/Drivers/ath9k

I know this question has been asked before /msg01368.html. But I would like to ask if what I'm trying to do is possible with the ath9k current driver? Or do I need a patch msg00532.html? Or am I using the wrong driver?

Cheers
Devan

#1 lore raw
Quoted 4 lines · Devan Rehunathan

Hello,

I am trying to setup a linux wireless access point using the 5GHz spectrum.

Quoted 8 lines

I have the following card:

http://www.compexshop.com/product_info.php/cPath/57/products_id/290

installed on a debian machine running 2.6.32.8. I have installed the latest versions of the ath9k driver as well as the latest developmental release of hostapd (0.7.2). When I run "iw list", I see that all the 5GHz channels are either already in use

What do you mean by already in use?

Quoted 1 line

or disabled.

If it is disabled then you cannot use them.

Quoted 2 lines

While I can manually set the channel to
a 5GHz, I am unable to set the card to master mode.

Master mode thing is an old wext thing. New 802.11 drivers use nl80211 and mac80211 drivers can only use nl80211 for AP mode of operation.

Quoted 2 lines

Using hostapd
returns errors that the driver is unable to select a 5Ghz channel.

Providing logs might help, but likely this just means you cannot use AP mode of operation on that channel.

Quoted 2 lines

I've also
tried changing the CRDA settings to no avail.

You are not supposed to, the settings that already ship should be valid. If you still proceed on by changing your regulatory settings you are on your own and you will not get support. For further details see:

http://wireless.kernel.org/en/developers/Regulatory/statement

Quoted 2 lines

I see that AP mode is
supported from http://wireless.kernel.org/en/users/Drivers/ath9k

Indeed.

Quoted 1 line

I know this question has been asked before /msg01368.html.

Whatever that is.

Quoted 3 lines

But I would
like to ask if what I'm trying to do is possible with the ath9k current driver?

Its open code, you can try to make it sing if you like, but overriding regulatory settings is simply not supported. However, if you want to help regulatory compliance that is supported. So for example if you have a JP latpop that allows channel 13 and come to the US you can set the regulatory domain to US to disable channel 13, but if instead you have a US card and you go to JP channel 13 will not be enabled if it wasn't before, even if you set your regulatory domain to JP. The changing of regulatory domains on Linux then only helps regulatory compliance. The different regulatory agencies are pretty strict about these considerations, for more details on this specific topic you may want to read:

http://wireless.kernel.org/en/developers/Regulatory/CRDA#Changing_regulatory_domains

Granted, I don't particularly think this is intelligent, I think instead in the future legislation should change to shift liabilty down to the user if a user does want to indeed modify regulatory settings. But today that is not the state of affairs so we simply cannot support it.

If you're wondering why we have taken this stance then consider how you can try to get proper vendor support from 802.11 manufacturers upstream on the Linux kernel. On our second Linux wireless summit back a few years ago we tried to address all the concerns vendors had for support. Regulatory was on the top of the list. So, instead of working on proprietary crap solutions we figured we could come up with better open technologies for regulatory compliance, and at the same time get proper vendor support upstream.

http://wireless.kernel.org/en/vendors/VendorSupport

We worked on that for a few years, got it merged and now today we have proper vendor support from at least Atheros. Whether others will follow remains to be seen ;)

Quoted 1 line

Or do I need a patch msg00532.html? Or am I using the wrong driver?

Breaking regulatory rules is simply not supported. If you do have a channel that is enabled though and it does not work that is different and for that you should post logs to the respective project list.

Hope that helps.

Luis

#2 lore raw
Quoted 1 line · Luis R. Rodriguez

and now today we have proper vendor support from at least Atheros.

I haven't seen much of that.

Yes, there is certainly some support, and I completely agree that Atheros is being far more supportive than most if not all other vendors, but I think the support has a long way to go before it can be called "proper".

//Peter

#3 lore raw
Quoted 4 lines · Peter Stuge
Quoted 1 line · Luis R. Rodriguez

and now today we have proper vendor support from at least Atheros.

I haven't seen much of that.

Oh? You must not read the kernel git log then. Atheros is the top 802.11 kernel contributor.

Quoted 1 line

Yes, there is certainly some support,

There is support. Where we cannot support devices due to resources we enable the community through documentation/code/etc, even firmware open code.

Quoted 4 lines

and I completely agree that
Atheros is being far more supportive than most if not all other vendors, but I think the support has a long way to go before it can be called "proper".

What would you like? Can you point out an issue Atheros has failed to address for their new chipsets? Take into account Atheros started supported upstream for their new AR9280 chipsets. Everything older is essentially coordination and working with the community.

Luis

#4 lore raw
In reply to Luis R. Rodriguez

Hello Luis,

first of all thank you for the swift reply and taking the time to explain to me the
details regarding the regulatory regulations. I admit it was not the first thing on
my mind.

Quoted 14 lines · Luis R. Rodriguez
Quoted 4 lines · Devan Rehunathan

Hello,

I am trying to setup a linux wireless access point using the 5GHz spectrum.

Quoted 8 lines

I have the following card:

http://www.compexshop.com/product_info.php/cPath/57/products_id/290

installed on a debian machine running 2.6.32.8. I have installed the latest versions of the ath9k driver as well as the latest developmental release of hostapd (0.7.2). When I run "iw list", I see that all the 5GHz channels are either already in use

Quoted 6 lines

What do you mean by already in use?

Quoted 1 line

or disabled.

If it is disabled then you cannot use them.

When I run "iw list". The 5GHz channels are either disabled or already in use for passive scanning. I've tried setting it to the correct country code (GB).

I have since managed to find a patch for the ath driver that allows all channels.
While I suppose I could always regulate myself and use the correct channels, I'd rather not have to modify driver code.

Do you have any suggestions on what I'm possibly doing wrong?

Cheers
Devan

#5 lore raw
Quoted 7 lines · Devan Rehunathan

Hello Luis,

first of all thank you for the swift reply and taking the time to explain to me the
details regarding the regulatory regulations. I admit it was not the first thing on
my mind.

No problem.

Quoted 22 lines · Luis R. Rodriguez
Quoted 14 lines · Devan Rehunathan
Quoted 4 lines

Hello,

I am trying to setup a linux wireless access point using the 5GHz spectrum.

Quoted 8 lines

I have the following card:

http://www.compexshop.com/product_info.php/cPath/57/products_id/290

installed on a debian machine running 2.6.32.8. I have installed the latest versions of the ath9k driver as well as the latest developmental release of hostapd (0.7.2). When I run "iw list", I see that all the 5GHz channels are either already in use

Quoted 6 lines

What do you mean by already in use?

Quoted 1 line

or disabled.

If it is disabled then you cannot use them.

Quoted 7 lines

When I run "iw list". The 5GHz channels are either disabled or already in use for passive scanning. I've tried setting it to the correct country code (GB).

I have since managed to find a patch for the ath driver that allows all channels.
While I suppose I could always regulate myself and use the correct channels, I'd rather not have to modify driver code.

I have outlined why this is not supported, good luck.

Quoted 1 line

Do you have any suggestions on what I'm possibly doing wrong?

I choose to not support you for the reasons already outlined.

Luis

#6 lore raw

Hello Luis,

Quoted 8 lines
Quoted 7 lines

When I run "iw list". The 5GHz channels are either disabled or already in use for passive scanning. I've tried setting it to the correct country code (GB).

I have since managed to find a patch for the ath driver that allows all channels.
While I suppose I could always regulate myself and use the correct channels, I'd rather not have to modify driver code.

Quoted 5 lines

I have outlined why this is not supported, good luck.

Quoted 1 line

Do you have any suggestions on what I'm possibly doing wrong?

I choose to not support you for the reasons already outlined.

I'm afraid you've misunderstood me. I do not want to use modified driver code. I understand and fully agree with you reasons, hence my decision to get the driver
working properly.

Cheers
Devan

#7 lore raw
Quoted 12 lines · Devan Rehunathan

Hello Luis,

Quoted 10 lines
Quoted 7 lines

When I run "iw list". The 5GHz channels are either disabled or already in use for passive scanning. I've tried setting it to the correct country code (GB).

I have since managed to find a patch for the ath driver that allows all channels.
While I suppose I could always regulate myself and use the correct channels, I'd rather not have to modify driver code.

I have outlined why this is not supported, good luck.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Do you have any suggestions on what I'm possibly doing wrong?

I choose to not support you for the reasons already outlined.

I'm afraid you've misunderstood me. I do not want to use modified driver code. I understand and fully agree with you reasons, hence my decision to get the driver
working properly.

Ah OK, thanks for your clarification. So you are using a vanilla kernel from upstream? If so what kernel release is that and what exactly is your issue? If you are trying to start AP mode of operation on a channel with passive scan then please realize it will not work *unless* you have a card which is world roaming (for Atheros cards this consists of cards with a regulatory domain which has 0x60 set) and only if the card finds another AP nearby on the passive scan channels.

The world roaming AP-find thingy is an enhancements specifically designed to enable beaconing technologies, not just AP mode of operation. So you should also then be able to use IBSS and Mesh.

For more information regarding Atheros' world roaming stuff you can read:

http://wireless.kernel.org/en/users/Drivers/ath

Luis

#8 lore raw
Quoted 31 lines · Luis R. Rodriguez
Quoted 12 lines · Devan Rehunathan

Hello Luis,

Quoted 10 lines
Quoted 7 lines

When I run "iw list". The 5GHz channels are either disabled or already in use for passive scanning. I've tried setting it to the correct country code (GB).

I have since managed to find a patch for the ath driver that allows all channels.
While I suppose I could always regulate myself and use the correct channels, I'd rather not have to modify driver code.

I have outlined why this is not supported, good luck.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Do you have any suggestions on what I'm possibly doing wrong?

I choose to not support you for the reasons already outlined.

I'm afraid you've misunderstood me. I do not want to use modified driver code. I understand and fully agree with you reasons, hence my decision to get the driver
working properly.

Ah OK, thanks for your clarification. So you are using a vanilla kernel from upstream? If so what kernel release is that and what exactly is your issue? If you are trying to start AP mode of operation on a channel with passive scan then please realize it will not work *unless* you have a card which is world roaming (for Atheros cards this consists of cards with a regulatory domain which has 0x60 set) and only if the card finds another AP nearby on the passive scan channels.

Quoted 7 lines

The world roaming AP-find thingy is an enhancements specifically designed to enable beaconing technologies, not just AP mode of operation. So you should also then be able to use IBSS and Mesh.

For more information regarding Atheros' world roaming stuff you can read:

http://wireless.kernel.org/en/users/Drivers/ath

Oh and if you are world roaming do not set the regulatory domain to keep the world roaming enhancements in place. Setting the regulatory domain may lift the passive scan flags as passive scan flags are an invention to help with world roaming. Countries have specific rules so passive scanning makes no sense when you do know you are in a specific country.

I should also note that the passive scan enhancements AP beacon find thingy also only works for non DFS channels since we do not yet have DFS master mode implementation. If we had DFS support for AP mode of operation then we could enable this too.

Luis

#9 lore raw
In reply to Luis R. Rodriguez
Quoted 17 lines · Luis R. Rodriguez
Quoted 16 lines · Devan Rehunathan

Hello Luis,

Quoted 13 lines
Quoted 7 lines

When I run "iw list". The 5GHz channels are either disabled or already in use for passive scanning. I've tried setting it to the correct country code (GB).

I have since managed to find a patch for the ath driver that allows all channels.
While I suppose I could always regulate myself and use the correct channels, I'd rather not have to modify driver code.

I have outlined why this is not supported, good luck.

Quoted 1 line

Do you have any suggestions on what I'm possibly doing wrong?

I choose to not support you for the reasons already outlined.

Quoted 8 lines
Quoted 4 lines

I'm afraid you've misunderstood me. I do not want to use modified driver code. I understand and fully agree with you reasons, hence my decision to get the driver
working properly.

Ah OK, thanks for your clarification. So you are using a vanilla kernel from upstream? If so what kernel release is that and what exactly is your issue?

I'm using Linux 2.6.32.8 kernel modified to enable NEMO/Mobile IP.

If you are trying to start AP mode of operation

Quoted 6 lines

on a channel with passive scan then please realize it will not work *unless* you have a card which is world roaming (for Atheros cards this consists of cards with a regulatory domain which has 0x60 set) and only if the card finds another AP nearby on the passive scan channels.

Quoted 8 lines

The world roaming AP-find thingy is an enhancements specifically designed to enable beaconing technologies, not just AP mode of operation. So you should also then be able to use IBSS and Mesh.

For more information regarding Atheros' world roaming stuff you can read:

http://wireless.kernel.org/en/users/Drivers/ath

Currently, the card I have defaults to the US domain. When I use CRDA to chose GB, I get the correct selection of channels.

Ok, so basically with the card I have I won't be able to set up wireless AP. I need a card which is "world roaming", correct?

Cheers
Devan

#10 lore raw
Quoted 43 lines · Devan Rehunathan
Quoted 17 lines · Luis R. Rodriguez
Quoted 16 lines · Devan Rehunathan

Hello Luis,

Quoted 13 lines
Quoted 7 lines

When I run "iw list". The 5GHz channels are either disabled or already in use for passive scanning. I've tried setting it to the correct country code (GB).

I have since managed to find a patch for the ath driver that allows all channels.
While I suppose I could always regulate myself and use the correct channels, I'd rather not have to modify driver code.

I have outlined why this is not supported, good luck.

Quoted 1 line

Do you have any suggestions on what I'm possibly doing wrong?

I choose to not support you for the reasons already outlined.

Quoted 8 lines
Quoted 4 lines

I'm afraid you've misunderstood me. I do not want to use modified driver code. I understand and fully agree with you reasons, hence my decision to get the driver
working properly.

Ah OK, thanks for your clarification. So you are using a vanilla kernel from upstream? If so what kernel release is that and what exactly is your issue?

I'm using Linux 2.6.32.8 kernel modified to enable NEMO/Mobile IP.

If you are trying to start AP mode of operation

Quoted 12 lines

on a channel with passive scan then please realize it will not work *unless* you have a card which is world roaming (for Atheros cards this consists of cards with a regulatory domain which has 0x60 set) and only if the card finds another AP nearby on the passive scan channels.

The world roaming AP-find thingy is an enhancements specifically designed to enable beaconing technologies, not just AP mode of operation. So you should also then be able to use IBSS and Mesh.

For more information regarding Atheros' world roaming stuff you can read:

Quoted 8 lines
Quoted 2 lines

http://wireless.kernel.org/en/users/Drivers/ath

Currently, the card I have defaults to the US domain. When I use CRDA to chose GB, I get the correct selection of channels.

Ok, so basically with the card I have I won't be able to set up wireless AP. I need a card which is "world roaming", correct?

You can only use AP mode of operation on a card configured for a country (not world roaming) if the channel is enabled and it does not have flags which disable IBSS (the no-IBSS flag really needs to be relabeled as no-beaconing) or have set the passive scan flag. But since country regulatory domains do not have no-ibss and passive scan flags you can only use AP mode of operation on channels which are clearly enabled. DFS is not yet supported so those channels won't work yet either.

Luis

#11 lore raw
Quoted 53 lines · Luis R. Rodriguez
Quoted 43 lines · Devan Rehunathan
Quoted 17 lines · Luis R. Rodriguez
Quoted 16 lines · Devan Rehunathan

Hello Luis,

Quoted 13 lines
Quoted 7 lines

When I run "iw list". The 5GHz channels are either disabled or already in use for passive scanning. I've tried setting it to the correct country code (GB).

I have since managed to find a patch for the ath driver that allows all channels.
While I suppose I could always regulate myself and use the correct channels, I'd rather not have to modify driver code.

I have outlined why this is not supported, good luck.

Quoted 1 line

Do you have any suggestions on what I'm possibly doing wrong?

I choose to not support you for the reasons already outlined.

Quoted 8 lines
Quoted 4 lines

I'm afraid you've misunderstood me. I do not want to use modified driver code. I understand and fully agree with you reasons, hence my decision to get the driver
working properly.

Ah OK, thanks for your clarification. So you are using a vanilla kernel from upstream? If so what kernel release is that and what exactly is your issue?

I'm using Linux 2.6.32.8 kernel modified to enable NEMO/Mobile IP.

If you are trying to start AP mode of operation

Quoted 12 lines

on a channel with passive scan then please realize it will not work *unless* you have a card which is world roaming (for Atheros cards this consists of cards with a regulatory domain which has 0x60 set) and only if the card finds another AP nearby on the passive scan channels.

The world roaming AP-find thingy is an enhancements specifically designed to enable beaconing technologies, not just AP mode of operation. So you should also then be able to use IBSS and Mesh.

For more information regarding Atheros' world roaming stuff you can read:

Quoted 8 lines
Quoted 2 lines

http://wireless.kernel.org/en/users/Drivers/ath

Currently, the card I have defaults to the US domain. When I use CRDA to chose GB, I get the correct selection of channels.

Ok, so basically with the card I have I won't be able to set up wireless AP. I need a card which is "world roaming", correct?

Quoted 8 lines

You can only use AP mode of operation on a card configured for a country (not world roaming) if the channel is enabled and it does not have flags which disable IBSS (the no-IBSS flag really needs to be relabeled as no-beaconing) or have set the passive scan flag. But since country regulatory domains do not have no-ibss and passive scan flags you can only use AP mode of operation on channels which are clearly enabled. DFS is not yet supported so those channels won't work yet either.

Ok this and <//article.gmane.org/gmane.linux.kernel.wireless.general/38410> explains my problem I think. So basically I need to get in touch with the card manufacturer
to see if there is a regulatory.bin file for GB? With this, I will be able to configure my card
appropriately and use it as an AP on the "free" channels?

Cheers
Devan

#12 lore raw
Quoted 63 lines · Devan Rehunathan
Quoted 53 lines · Luis R. Rodriguez
Quoted 43 lines · Devan Rehunathan
Quoted 17 lines · Luis R. Rodriguez
Quoted 16 lines · Devan Rehunathan

Hello Luis,

Quoted 13 lines
Quoted 7 lines

When I run "iw list". The 5GHz channels are either disabled or already in use for passive scanning. I've tried setting it to the correct country code (GB).

I have since managed to find a patch for the ath driver that allows all channels.
While I suppose I could always regulate myself and use the correct channels, I'd rather not have to modify driver code.

I have outlined why this is not supported, good luck.

Quoted 1 line

Do you have any suggestions on what I'm possibly doing wrong?

I choose to not support you for the reasons already outlined.

Quoted 8 lines
Quoted 4 lines

I'm afraid you've misunderstood me. I do not want to use modified driver code. I understand and fully agree with you reasons, hence my decision to get the driver
working properly.

Ah OK, thanks for your clarification. So you are using a vanilla kernel from upstream? If so what kernel release is that and what exactly is your issue?

I'm using Linux 2.6.32.8 kernel modified to enable NEMO/Mobile IP.

If you are trying to start AP mode of operation

Quoted 12 lines

on a channel with passive scan then please realize it will not work *unless* you have a card which is world roaming (for Atheros cards this consists of cards with a regulatory domain which has 0x60 set) and only if the card finds another AP nearby on the passive scan channels.

The world roaming AP-find thingy is an enhancements specifically designed to enable beaconing technologies, not just AP mode of operation. So you should also then be able to use IBSS and Mesh.

For more information regarding Atheros' world roaming stuff you can read:

Quoted 8 lines
Quoted 2 lines

http://wireless.kernel.org/en/users/Drivers/ath

Currently, the card I have defaults to the US domain. When I use CRDA to chose GB, I get the correct selection of channels.

Ok, so basically with the card I have I won't be able to set up wireless AP. I need a card which is "world roaming", correct?

Quoted 8 lines

You can only use AP mode of operation on a card configured for a country (not world roaming) if the channel is enabled and it does not have flags which disable IBSS (the no-IBSS flag really needs to be relabeled as no-beaconing) or have set the passive scan flag. But since country regulatory domains do not have no-ibss and passive scan flags you can only use AP mode of operation on channels which are clearly enabled. DFS is not yet supported so those channels won't work yet either.

Quoted 6 lines

Ok this and <//article.gmane.org/gmane.linux.kernel.wireless.general/38410> explains my problem I think. So basically I need to get in touch with the card manufacturer
to see if there is a regulatory.bin file for GB? With this, I will be able to configure my card
appropriately and use it as an AP on the "free" channels?

No, GB is already defined. See:

http://wireless.kernel.org/en/developers/Regulatory/Database

Only if you have a custom card and the manufacturer claimed for your card to work with some wierd strange odd regulatory domains should you have to talk to them. They would then sign off on what they claimed :)

Luis