Denis Vlasenko wrote:
>My position is that wifi drivers must start up in an "OFF" mode.
>Do not send anything. Do not join APs or start IBSS.
>Thus, no need to load fw in early boot.
This should be an option for the user if that is the desired behavior.
We support that with the ipw2100 and ipw2200 projects via module
parameters to disable the radio during module load. Having a standard
module parameter for wireless drivers would be nice.
My approach is to make the driver so it supports as many usage models as
possible, leaving policy to other components of the system. If the user
wants it to scan and associate immediately, that should be supported.
Likewise if they want the module to be loaded w/ the radio off, they can
do that as well.
Since most (if not all) laptops support an RF kill switch, I tend to
defer to the physical switch as the user's point of control and set the
driver defaults to try and use the radio if it is enabled.