RE: [ipw3945-devel] chaning mode only when interface down?



On Thu, 2007-08-02 at 14:34 +0200, Johannes Berg wrote:
> On Thu, 2007-08-02 at 15:17 +0300, Winkler, Tomas wrote:
> 
> > There is a definitely a known issue in the driver that we still need to
> > resolve, but I agree with Johannes that there is a problem in design of
> > the configuration as well. 
> 
> Nono, you cannot solve it in the driver. The whole design of mac80211
> mandates that assumption and I think it is a valid one to make. If
> userspace breaks because of that it's their fault.

Well, to be honest none of the drivers before mac80211 required you to
down the device to change modes.  But they were mostly fullmac, or
half-mac like ipw2x00.  Since mac80211 has only just become useful in
the past couple of months for most people, it's not really fair to
expect versions of NM that were out before mac80211 landed to play nice
with what mac80211 expects, which is different from what other drivers
implement.

Not to say NM shouldn't be fixed for this.  The other problem is that
there's really not a good way to determine whether the driver is
actually _ready_ after down it and bringing it back up.  You basically
have to spin & block until the interface gets IFF_UP set on it again,
and even then that's not entirely reliable.

Dan





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