On Wed, 2014-01-22 at 10:40 +0100, Michal Kazior wrote: > > Can't we just prohibit that though? That seems pretty much useless, > > although if the interfaces actually have different beacon intervals (if > > such a thing is permitted?) then it would be necessary to do more > > difficult calculations ... > > Not really sure what extra calculation would be necessary here beyond > just waiting until last interfaces finishes sending CSA beacons? If we wanted to enforce that they all switch at (roughly) the same time, and they have different beacon intervals, we'd have to do some calculations. > > Isn't it under RTNL anyway though? > > No, it isn't. This is eventually called from a worker. I don't think > you can use RTNL in a per-interface worker, can you? Ah ok. No, you can't. > > That's true, so maybe you just need to explain this chandef thing > > better? I don't really see the utility (admittedly without actually > > checking carefully in the code where you need it) > > Since you can CSA multiple interfaces you can have different chandefs > for those interfaces. This means you need to know the chandef for the > final channel switch. > > You could probably cache this to local->csa_chandef when processing > the channel switch request itself, but that means you explicitly limit > yourself to single CSA against a given hw/driver. > > At one point I was contemplating having a dedicated structure for > channel switches, and have a list of channel switch structures in > ieee80211_local, but perhaps that's just an overkill. But if we bind all interfaces against a 'pending' chanctx, then that's all implicit in that chanctx calculating/binding, no? johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html