lkml.org 
[lkml]   [2006]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: wireless: recap of current issues (configuration)
Stefan Rompf wrote:
> Am Freitag 13 Januar 2006 23:32 schrieb Johannes Berg:
>
>> [Changing mode of virtual devices]
>>
>> IMHO there's not much point in allowing changes. I have a feeling that
>> might create icky issues you don't want to have to tackle when the
>> solution is easy by just not allowing it. Part of my thinking is that
>> different virtual types have different structures associated, so
>> changing it needs re-creating structures anyway. And different virtual
>> device types might even be provided by different kernel modules so you
>> don't carry around AP mode if you don't need it.
>
> Even though it is a bit more work on kernel side, we should allow changing the
> mode of virtual devices. Let's face it, even though we find multi-BSS
> capabilities very interesting, 999 of 1000 users won't care due to the two
> facts that IPW firmware IMHO doesn't allow it and virtual interfaces are
> limited to one channel anyway. These users rightfully expect to have one
> interface and be able to do all configurations on it.

My experience is that once you can create+destroy virtual devices you'll
never want mode changing. From a usability standpoint when you switch
modes you typically have to reconfigure lots of settings and doing
destroy old followed by create new is easier. Depending on how things
tie into hotplug you may also find things getting complicated.

Within the kernel having the operating mode of a virtual device not
change is very good. First it lets you isolate the rules for mix+match
of different virtual devices at create. Second you can partition code
so, for example, only code required to support an ap is loaded when an
ap mode virtual device exists. There are other less obvious reasons
such as firmware-based devices can load firmware based on the operating
mode at create time but if you allow mode switching then you need to
unload+load on the fly. All these things can be handled with switching
modes but the complexity is significant and the gain is minimal.

The big stumbling block I found to going with virtual devices is that it
affects user apps. I looked at doing things like auto-create a station
device for backwards compatibility but decided against it. If you
really want this behaviour it can be done by user code.

Sam


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-01-15 20:43    [W:0.446 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site