Search Linux Wireless

Re: Setting channel when interface is down inconsistency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2007-07-09 at 14:31 -0400, Dan Williams wrote:
> On Mon, 2007-07-09 at 10:59 -0400, Jon Smirl wrote:
> > bcm43xx and rx2x00 let me set the channel before the interface is up.
> > zd1211 requires the interface to be up before setting the channel.
> > 
> > Is there a guideline for how this is supposed to work?
> 
> In the ideal case, the driver should allow you to set any _attribute_
> when the device is down, but if you try to do an _action_ that requires
> that the interface be up (for example, associating), it should return an
> error of some kind.
> 
> So setting things like encryption key, channel, ssid, bssid, etc should
> all work when the device is down, but actually issuing the 'iwconfig
> wlan0 ssid "foobar"' can be expected to fail because in WEXT that is
> supposed to trigger an association.
> 
> Splitting up this stuff and having an explicit association request in
> nl80211/cfg80211 should make this a lot clearer.

In fact, the way it's planned now is that you can't even give it an
ssid/bssid etc. without also triggering an association, but contrary to
wext you do pass all parameters at once and when needed.

Hence, this will not actually solve the problem per se, we could make it
a requirement either way to document it (though in fact it'd be simple
to return -ENOTCONN for every configuration request when the device is
down) but setting the channel for example isn't actually any different
than with wext. Therefore, I think we still need a guideline. Do you
think setting everything when the device is down makes sense? Then we'll
have to document that drivers must accept these requests and honour them
when the device is turned on. Which is actually another thing we need to
make absolutely sure, when the netdev is down the device should be
turned off.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux