On Mon, 2017-01-09 at 12:02 +0100, Arend Van Spriel wrote: > > However, with the OF, I argued (succesfully it seems :P) that the > > sensible thing to do was to register with the DISABLED flag and > > thereby > > "permanently" disable the channels that OF didn't think were > > usable, > > but in this case now the driver has to adhere to the cfg80211 logic > > of > > preserving orig_flags forever. > > By adhere you mean we should not enable channes for which orig_flags > indicate DISABLED? Well, the regulatory code will "OR" in all the orig_flags after modifications. If you don't use any of the others before registering, and you don't use any other helpers other than the OF one that we know sets only DISABLED, then keeping only the DISABLED flag would be OK - however, it should *also* be OK to always keep *all* of the orig_flags, just like the normal regulatory code would? johannes