* configuring while interface is down
@ 2009-03-11 12:36 Johannes Berg
2009-03-11 13:43 ` Alina Friedrichsen
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Johannes Berg @ 2009-03-11 12:36 UTC (permalink / raw)
To: linux-wireless; +Cc: Jouni Malinen, Samuel Ortiz, Alina Friedrichsen
[-- Attachment #1: Type: text/plain, Size: 470 bytes --]
Hi,
Alina raised an interesting point -- wext allows you to configure an
interface while it is down, at least by convention. Some parameters for
cfg80211 we reject while an interface is down, e.g. adding new stations,
partly for technical reasons and partly because that doesn't make sense
when the mode of interface isn't fixed.
For cfg80211's assoc/ibss calls, I think we should reject them outright
when the interface is down, any objections?
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: configuring while interface is down
2009-03-11 12:36 configuring while interface is down Johannes Berg
@ 2009-03-11 13:43 ` Alina Friedrichsen
2009-03-11 13:48 ` Johannes Berg
2009-03-11 13:46 ` John W. Linville
2009-03-11 13:49 ` Dan Williams
2 siblings, 1 reply; 9+ messages in thread
From: Alina Friedrichsen @ 2009-03-11 13:43 UTC (permalink / raw)
To: Johannes Berg, linux-wireless; +Cc: samuel, j
Hello!
> For cfg80211's assoc/ibss calls, I think we should reject them outrig=
ht
> when the interface is down, any objections?
How should assoc in cfg80211 work?
=46or WEXT I like collecting all changes while the interface is down an=
d the if it's up again apply them in one step. That is the reason why I=
want call "*_commit()" on interface up.
Regards
Alina
--=20
Nur bis 16.03.! DSL-Komplettanschluss inkl. WLAN-Modem f=FCr nur=20
17,95 =BF/mtl. + 1 Monat gratis!* http://dsl.gmx.de/?ac=3DOM.AD.PD003K1=
1308T4569a
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: configuring while interface is down
2009-03-11 13:43 ` Alina Friedrichsen
@ 2009-03-11 13:48 ` Johannes Berg
2009-03-11 14:52 ` Samuel Ortiz
2009-03-11 15:58 ` Alina Friedrichsen
0 siblings, 2 replies; 9+ messages in thread
From: Johannes Berg @ 2009-03-11 13:48 UTC (permalink / raw)
To: Alina Friedrichsen; +Cc: linux-wireless, samuel, j
[-- Attachment #1: Type: text/plain, Size: 646 bytes --]
On Wed, 2009-03-11 at 14:43 +0100, Alina Friedrichsen wrote:
> Hello!
>
> > For cfg80211's assoc/ibss calls, I think we should reject them outright
> > when the interface is down, any objections?
>
> How should assoc in cfg80211 work?
see Jouni's patches.
> For WEXT I like collecting all changes while the interface is down and
> the if it's up again apply them in one step. That is the reason why I
> want call "*_commit()" on interface up.
which is what we'll continue doing in cfg80211, but I think we shouldn't
bother the driver/mac80211 with it until the netdev is up, and thus
reject things from nl80211.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: configuring while interface is down
2009-03-11 13:48 ` Johannes Berg
@ 2009-03-11 14:52 ` Samuel Ortiz
2009-03-14 6:24 ` Kalle Valo
2009-03-11 15:58 ` Alina Friedrichsen
1 sibling, 1 reply; 9+ messages in thread
From: Samuel Ortiz @ 2009-03-11 14:52 UTC (permalink / raw)
To: Johannes Berg; +Cc: Alina Friedrichsen, linux-wireless, j
On Wed, Mar 11, 2009 at 02:48:34PM +0100, Johannes Berg wrote:
> On Wed, 2009-03-11 at 14:43 +0100, Alina Friedrichsen wrote:
> > Hello!
> >
> > > For cfg80211's assoc/ibss calls, I think we should reject them outright
> > > when the interface is down, any objections?
> >
> > How should assoc in cfg80211 work?
>
> see Jouni's patches.
>
> > For WEXT I like collecting all changes while the interface is down and
> > the if it's up again apply them in one step. That is the reason why I
> > want call "*_commit()" on interface up.
>
> which is what we'll continue doing in cfg80211, but I think we shouldn't
> bother the driver/mac80211 with it until the netdev is up, and thus
> reject things from nl80211.
That is quite reasonable, please go for it.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: configuring while interface is down
2009-03-11 14:52 ` Samuel Ortiz
@ 2009-03-14 6:24 ` Kalle Valo
0 siblings, 0 replies; 9+ messages in thread
From: Kalle Valo @ 2009-03-14 6:24 UTC (permalink / raw)
To: Samuel Ortiz; +Cc: Johannes Berg, Alina Friedrichsen, linux-wireless, j
Samuel Ortiz <samuel@sortiz.org> writes:
>> which is what we'll continue doing in cfg80211, but I think we shouldn't
>> bother the driver/mac80211 with it until the netdev is up, and thus
>> reject things from nl80211.
>
> That is quite reasonable, please go for it.
I fully agree. It's good to enforce this in cfg80211.
--
Kalle Valo
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: configuring while interface is down
2009-03-11 13:48 ` Johannes Berg
2009-03-11 14:52 ` Samuel Ortiz
@ 2009-03-11 15:58 ` Alina Friedrichsen
2009-03-11 16:05 ` Johannes Berg
1 sibling, 1 reply; 9+ messages in thread
From: Alina Friedrichsen @ 2009-03-11 15:58 UTC (permalink / raw)
To: Johannes Berg; +Cc: j, samuel, linux-wireless
Hello Johannes!
> which is what we'll continue doing in cfg80211, but I think we should=
n't
> bother the driver/mac80211 with it until the netdev is up, and thus
> reject things from nl80211.
Do you think WEXT should only be a wrapper around cfg80211? If yes, I w=
ould agree.
Regards
Alina
--=20
Nur bis 16.03.! DSL-Komplettanschluss inkl. WLAN-Modem f=FCr nur=20
17,95 =BF/mtl. + 1 Monat gratis!* http://dsl.gmx.de/?ac=3DOM.AD.PD003K1=
1308T4569a
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: configuring while interface is down
2009-03-11 15:58 ` Alina Friedrichsen
@ 2009-03-11 16:05 ` Johannes Berg
0 siblings, 0 replies; 9+ messages in thread
From: Johannes Berg @ 2009-03-11 16:05 UTC (permalink / raw)
To: Alina Friedrichsen; +Cc: j, samuel, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
On Wed, 2009-03-11 at 16:58 +0100, Alina Friedrichsen wrote:
> Hello Johannes!
>
> > which is what we'll continue doing in cfg80211, but I think we shouldn't
> > bother the driver/mac80211 with it until the netdev is up, and thus
> > reject things from nl80211.
>
> Do you think WEXT should only be a wrapper around cfg80211? If yes, I would agree.
Yes, of course.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: configuring while interface is down
2009-03-11 12:36 configuring while interface is down Johannes Berg
2009-03-11 13:43 ` Alina Friedrichsen
@ 2009-03-11 13:46 ` John W. Linville
2009-03-11 13:49 ` Dan Williams
2 siblings, 0 replies; 9+ messages in thread
From: John W. Linville @ 2009-03-11 13:46 UTC (permalink / raw)
To: Johannes Berg
Cc: linux-wireless, Jouni Malinen, Samuel Ortiz, Alina Friedrichsen
On Wed, Mar 11, 2009 at 01:36:13PM +0100, Johannes Berg wrote:
> Hi,
>
> Alina raised an interesting point -- wext allows you to configure an
> interface while it is down, at least by convention. Some parameters for
> cfg80211 we reject while an interface is down, e.g. adding new stations,
> partly for technical reasons and partly because that doesn't make sense
> when the mode of interface isn't fixed.
>
> For cfg80211's assoc/ibss calls, I think we should reject them outright
> when the interface is down, any objections?
I think that makes perfect sense.
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: configuring while interface is down
2009-03-11 12:36 configuring while interface is down Johannes Berg
2009-03-11 13:43 ` Alina Friedrichsen
2009-03-11 13:46 ` John W. Linville
@ 2009-03-11 13:49 ` Dan Williams
2 siblings, 0 replies; 9+ messages in thread
From: Dan Williams @ 2009-03-11 13:49 UTC (permalink / raw)
To: Johannes Berg
Cc: linux-wireless, Jouni Malinen, Samuel Ortiz, Alina Friedrichsen
On Wed, 2009-03-11 at 13:36 +0100, Johannes Berg wrote:
> Hi,
>
> Alina raised an interesting point -- wext allows you to configure an
> interface while it is down, at least by convention. Some parameters for
> cfg80211 we reject while an interface is down, e.g. adding new stations,
> partly for technical reasons and partly because that doesn't make sense
> when the mode of interface isn't fixed.
>
> For cfg80211's assoc/ibss calls, I think we should reject them outright
> when the interface is down, any objections?
wext *allows* that, but drivers never consistently implemented that
(prism54 for example). With most soft-mac style adapters you can't scan
while the interface is down either. Anything meaningful use of the
interface happens when the firmware (if any) is loaded and the device is
operational. The only reason for setting parameters while the device
was down was to allow "commit-style" handling of the parameters; set
them all up while down, bring the interface up, and it uses all the
params you've set/locked on the interface. With cfg80211, that's
already handled in a much better manner, thus +1 from me.
Dan
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-03-14 6:24 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 12:36 configuring while interface is down Johannes Berg
2009-03-11 13:43 ` Alina Friedrichsen
2009-03-11 13:48 ` Johannes Berg
2009-03-11 14:52 ` Samuel Ortiz
2009-03-14 6:24 ` Kalle Valo
2009-03-11 15:58 ` Alina Friedrichsen
2009-03-11 16:05 ` Johannes Berg
2009-03-11 13:46 ` John W. Linville
2009-03-11 13:49 ` Dan Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).