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.

This is something that needs to be handled throughout the code since
regulatory information can already change, but adding/removing channels
is something I'd really recommend against.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to