On Wed, Mar 18, 2015 at 9:28 PM, Arend van Spriel <arend@xxxxxxxxxxxx> wrote: > On 03/18/15 20:18, Johannes Berg wrote: >> >> Hi Arend, >> >>> Is it ok to update the wiphy band information after registration. >> >> >> I believe this will cause issues. >> >>> In >>> brcmfmac the firmware is queried to obtain the supported channels. >>> However, it returns the channels for the current country set in >>> firmware. So after probe/registration iw shows: >> >> >>> Looks fine apart from the power levels so it made me wonder if what I am >>> doing is allowed. Any opinion on this? >> >> >> I think the regulatory flags will also break, since some are >> pre-processed during wiphy registration. >> >>> I assume the supported band info is intended to show what hardware can >>> do regardless of the configured country, but I have no way to pull that >>> info from the device. >> >> >> I'd recommend finding (and hard-coding) a superset of all the channels >> that the hardware could supported, and then dynamically setting the >> disabled flag on those channels that the (current) regulatory >> information cannot do. > > > Depending on your reply that was the plan. btw, this is what's done in iwlwifi (iwlmvm) - all supported channels are registered with regulatory flags=0. Later on when specific countries are set, some channels are disabled/limited. 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