Linux wireless drivers development
 help / color / mirror / Atom feed
* mac80211: ibss.c, missing regdom check?
@ 2011-07-26 15:55 Alexander Simon
  2011-08-08 13:03 ` Johannes Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Simon @ 2011-07-26 15:55 UTC (permalink / raw)
  To: linux-wireless

Hey,

while developing my IBSS HT mode, I think found a missing check:

When we want to join an IBSS, we first fire a scan. When a network is
found, then we join it.
This happens in ieee80211_sta_find_ibss when we call
ieee80211_sta_join_ibss.

But in both functions there is no check if we are allowed to do IBSS on
that channel.
Is this intended?
I could join an existing network on channel 8 with a modified crda
having the NO-IBSS flag on all 2.4GHz channels.

Alex


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mac80211: ibss.c, missing regdom check?
  2011-07-26 15:55 mac80211: ibss.c, missing regdom check? Alexander Simon
@ 2011-08-08 13:03 ` Johannes Berg
  2011-08-10  0:01   ` Luis R. Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2011-08-08 13:03 UTC (permalink / raw)
  To: Alexander Simon; +Cc: linux-wireless, Luis R. Rodriguez

On Tue, 2011-07-26 at 17:55 +0200, Alexander Simon wrote:

> When we want to join an IBSS, we first fire a scan. When a network is
> found, then we join it.
> This happens in ieee80211_sta_find_ibss when we call
> ieee80211_sta_join_ibss.
> 
> But in both functions there is no check if we are allowed to do IBSS on
> that channel.
> Is this intended?
> I could join an existing network on channel 8 with a modified crda
> having the NO-IBSS flag on all 2.4GHz channels.

Sounds like there ought to be a check -- but what do we do in that case?
Just create the network elsewhere and hope the other one merges? Luis?

johannes


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mac80211: ibss.c, missing regdom check?
  2011-08-08 13:03 ` Johannes Berg
@ 2011-08-10  0:01   ` Luis R. Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Luis R. Rodriguez @ 2011-08-10  0:01 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Alexander Simon, linux-wireless

On Mon, Aug 8, 2011 at 6:03 AM, Johannes Berg <johannes@sipsolutions.net> wrote:
> On Tue, 2011-07-26 at 17:55 +0200, Alexander Simon wrote:
>
>> When we want to join an IBSS, we first fire a scan. When a network is
>> found, then we join it.
>> This happens in ieee80211_sta_find_ibss when we call
>> ieee80211_sta_join_ibss.
>>
>> But in both functions there is no check if we are allowed to do IBSS on
>> that channel.
>> Is this intended?
>> I could join an existing network on channel 8 with a modified crda
>> having the NO-IBSS flag on all 2.4GHz channels.
>
> Sounds like there ought to be a check -- but what do we do in that case?
> Just create the network elsewhere and hope the other one merges? Luis?

Indeed, additionally based on the htcaps we must also ensure that we
follow the exisitng regulatory rules. A base example is provided
through ieee80211_enable_ht(). A similar check will be implemented to
start Mesh for example. This must also ensure that when you set the
channel type with iw, say, iw dev wlan0 set freq 2412 HT20 that you
switch to using only HT20 and not HT40. If you do not set HT20 or HT40
then you should not use HT on an IBSS.

Let me know if you are up to try the changes otherwise I can work on them.

  Luis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-10  0:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26 15:55 mac80211: ibss.c, missing regdom check? Alexander Simon
2011-08-08 13:03 ` Johannes Berg
2011-08-10  0:01   ` Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox