2009-04-19 14:33:44

by Johannes Berg

[permalink] [raw]
Subject: Re: [RFC/RFT] cfg80211/nl80211: add IBSS API

[resend with list]

On Sun, 2009-04-19 at 16:26 +0200, Alina Friedrichsen wrote:
> > Hmm, I forgot one thing -- you may want to create an IBSS on a specific
> > channel, but still allow it scan for other IBSSes. I guess we need a
> > flag for that and not make "channel set" imply fixed channel.
>
> In cfg80211 an indication for channel auto select is needed for IBSS
> and _STA_ mode, to implement with it the old wext interface. If not
> set the channel shouldn't be changed. If you not want store this flag
> in cfg80211, you must store it in the channel functions of wext to
> have the same behavior like now.

That's not what I was referring to -- and wext doesn't actually allow
what I'm referring to afaik.

When you want to create an IBSS on channel 5, what do you do?

I think you have to
iwconfig wlan0 essid test
iwconfig wlan0 channel 5
iwconfig wlan0 ap off # clear fixed channel bit

which is ... weird. OTOH with mac80211 you can also say
iconfig wlan0 channel -1

but that's even more strange.

johannes


Attachments:
signature.asc (836.00 B)
This is a digitally signed message part

2009-04-19 14:37:44

by Johannes Berg

[permalink] [raw]
Subject: Re: [RFC/RFT] cfg80211/nl80211: add IBSS API

On Sun, 2009-04-19 at 16:33 +0200, Johannes Berg wrote:

> When you want to create an IBSS on channel 5, what do you do?
>
> I think you have to
> iwconfig wlan0 essid test
> iwconfig wlan0 channel 5
> iwconfig wlan0 ap off # clear fixed channel bit
>
> which is ... weird. OTOH with mac80211 you can also say
> iconfig wlan0 channel -1

Ah, there's "iwconfig wlan0 channel auto" as an alias for this, I guess
that's an acceptable way to do it.

johannes


Attachments:
signature.asc (836.00 B)
This is a digitally signed message part

2009-04-19 14:49:06

by Alina Friedrichsen

[permalink] [raw]
Subject: Re: [RFC/RFT] cfg80211/nl80211: add IBSS API

Hello Johannes!

> Ah, there's "iwconfig wlan0 channel auto" as an alias for this, I gue=
ss
> that's an acceptable way to do it.

Yes, if you want join/assoc to a network regardless of the channel. If =
the channel is set to a different value then auto you only join/assoc n=
etworks on the same channel.

Something is needed to implement it with cfg80211.

Regards
Alina

--=20
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonansc=
hluss f=FCr nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surf=
flat/?ac=3DOM.AD.PD003K11308T4569a