Re: softmac: semantics of SIOCSIWFREQ

2006-04-17 Thread Johannes Berg
On Mon, 2006-04-17 at 13:01 -0700, Jean Tourrilhes wrote: > Who sent the beacon is different from who created the IBSS. If > you don't like this proposal, here is another one : if in ad-hoc mode > the actual IBSS freq is the same as what the user set, then set the > 'fixed' flag, otherwise r

Re: softmac: semantics of SIOCSIWFREQ

2006-04-17 Thread Jean Tourrilhes
On Mon, Apr 17, 2006 at 09:27:09PM +0200, Johannes Berg wrote: > On Mon, 2006-04-17 at 12:06 -0700, Jean Tourrilhes wrote: > > > Definitely. I was just pointing out that scanning behaviour is > > not dictated by current setting of the drivers (except when the > > hardware does it, cf. Ornoco).

Re: softmac: semantics of SIOCSIWFREQ

2006-04-17 Thread Johannes Berg
On Mon, 2006-04-17 at 12:06 -0700, Jean Tourrilhes wrote: > Definitely. I was just pointing out that scanning behaviour is > not dictated by current setting of the drivers (except when the > hardware does it, cf. Ornoco). Yeah, I was just repeating it for Ulrich :) > For freq, it's s

Re: softmac: semantics of SIOCSIWFREQ

2006-04-17 Thread Jean Tourrilhes
On Mon, Apr 17, 2006 at 08:48:10PM +0200, Johannes Berg wrote: > On Mon, 2006-04-17 at 09:37 -0700, Jean Tourrilhes wrote: > > > Usually no, but... > > If you are in managed mode, SIOCSIWFREQ usually should return > > an error, because it is not allowed. > > Ok. > > > If you are in a

Re: softmac: semantics of SIOCSIWFREQ

2006-04-17 Thread Johannes Berg
On Mon, 2006-04-17 at 09:37 -0700, Jean Tourrilhes wrote: > Usually no, but... > If you are in managed mode, SIOCSIWFREQ usually should return > an error, because it is not allowed. Ok. > If you are in ad-hoc mode, SIOCSIWFREQ is used if a IBSS needs > to be created. After scan

Re: softmac: semantics of SIOCSIWFREQ

2006-04-17 Thread Jean Tourrilhes
On Sun, Apr 16, 2006 at 02:34:48PM +0200, Johannes Berg wrote: > [breaking out to a new thread so discussion on this doesn't get too > hidden, CC Jean since he designed this] > > > - Is SIOCSIWFREQ allowed while associated? > > No idea. Usually no, but... If you are in managed mo

Re: softmac: semantics of SIOCSIWFREQ

2006-04-16 Thread Ulrich Kunitz
On Sun, 16 Apr 2006, Johannes Berg wrote: > > - If the flag IW_FREQ_FIXED is set, should all activitity > > including scanning only be allowed on this frequency? (Actually > > a better would even be to work with channel/frequency sets. > > These sets would make a lot of sense for parallel sc

softmac: semantics of SIOCSIWFREQ

2006-04-16 Thread Johannes Berg
[breaking out to a new thread so discussion on this doesn't get too hidden, CC Jean since he designed this] > - Is SIOCSIWFREQ allowed while associated? No idea. > - If the flag IW_FREQ_FIXED is set, should all activitity > including scanning only be allowed on this frequency? (Actually > a

softmac: semantics of SIOCSIWFREQ

2006-04-16 Thread Ulrich Kunitz
Hi, I'm just reviewing the zd1211 code and I'm wondering about the semantics of SIOCSIWFREQ and actually, what is good for. It looks like that softmac's set_channel can be called at any time and will ignore any settings of SIOCSIWFREQ even it is has been given the flag IW_FREQ_FIXED. Following q