On Fri, Nov 28, 2014 at 02:46:27PM +0100, Johannes Berg wrote: > On Thu, 2014-11-27 at 09:44 +0200, Arik Nemtsov wrote: > > If a wiphy-idx is specified, the kernel will return the wiphy specific > > regdomain, if such exists. Otherwise return the global regdom. > > > > When no wiphy-idx is specified, return the global regdomain as well as > > all wiphy-specific regulatory domains in the system, via a new nested > > list of attributes. > > Is that really a good idea? Seems rather easy to overrun the message > size with that, in which case your current code will not return anything > at all... that'll cause strange errors if somebody plugs in a few > devices or has hwsim open as well or so ... Good point, perhaps require 'iw reg get --all' for all listing then? This would mean requiring an new optional flag passed on reg get too then. > > Add a new attribute for each wiphy-specific regdomain, for usermode to > > identify it as such. > > Shouldn't userspace also *request* this for backward compatibility? > Otherwise older userspace might assume that a returned regd applies to > everything, when it doesn't really? If the flag --all is used and passed then I see no issue. Luis -- 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