On Wed, Jul 2, 2014 at 5:23 AM, Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxxxxx> wrote: > On Tue, Jul 01, 2014 at 04:07:03PM +0300, Arik Nemtsov wrote: >> On Tue, Jul 1, 2014 at 1:03 AM, Luis R. Rodriguez >> <mcgrof@xxxxxxxxxxxxxxxx> wrote: >> >> This feature is also primarily designed for systems which are not >> >> extensible, so you can't really add another device. >> >> I guess we'll have to solve this when the need arises. >> > >> > The patch in question does not address denying wiphy registration >> > if two drivers have get_regd() implemented, that's essentially what >> > this *should* be trying to do but: >> > >> > 1) Its not documented above >> > 2) The limitation of the patch in no way is part of matching the >> > requirement you mention. That is, the requirement to have Intel's >> > driver as "dictator" has nothing to do with allowing or not >> > multiple similar drivers that can help with compliance by providing >> > their own regulatory dynamically. >> > 3) You are putting the requirement of implmenting support for >> > multiple drivers with get_regd() on the next user of get_regd() >> > which wants to integrate support for an intel card with theirs, >> > that's unfair and far sighted for an implementation. >> > >> > The requirement you have has nothing to do with the limitation >> > you have so this patch is unacceptable. I also provided recommendations >> > on how you can lift this limitation, so it shouldn't be hard. >> >> I already prevent the registration of a second "get_regd" callback. I >> just re-read your previous email and I'm not sure what's the >> recommendation here. The 2-card scenario where one of the cards >> doesn't use "get_regd" should be fine - it will just use the >> regulatory settings from the "get_regd" one. Only the >> 2-cards-using-"get_regd" scenario is not supported, and AFAICT it >> doesn't exist in practice, and also requires complicated treatment >> (perhaps the two "dictators" differ in their definition of the >> regdomains?) > > The recommendation is to add support for more than one driver > that has the get_regd() callback, if your driver does not want > to allow others to register more than 1 driver on a system with > the reg_regd() callback add a flag and then the blame will be > put on you to justify this. Then customers who buy your products > won't use your devices in undesired combinations and I expect > tons of bug reports might end up being filed if another vendor > ends up going down the get_regd() path. Not sure I'm getting you. You're suggesting a new regulatory flag that ensures a single get_regd registration, and fails others? So that even if someone extends get_regd() to multiple devices, we'll always remain the single one? I'm ok with this. About your other comments - let's continue the discussion at the "cfg80211: accept world/same regdom from driver/user hints" patch. I don't think the PROBE_DEFER thing really covers the use-case we've had in mind. Arik -- 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