Jiri Benc wrote:
On Sun, 18 Feb 2007 00:31:33 -0500, Michael Wu wrote:
This patch allows drivers to configure the default set of channels if the
device reports its default regulatory domain.
How is a driver supposed to handle this? By walking through the channel
list and based on some value obtained from its EEPROM (or firmware or
whatever) set appropriate flags?
Yes.
That sounds like a need for duplicate code in drivers.
Unfortunately it is vendor and device specific. I think we can
generalize things to provide helper functions and macros such that each
driver does it roughly the same way, but the stack itself can't do it.
> Shouldn't the stack accept a regdomain code (defined
as an enum of integers or so) instead?
The hardware needs to tell the stack all the channels it supports and
the restrictions on those channels. The stack can then further restrict
the set of channels based on the user input to a "standard" set of
countries.
"regdomains" are not static maps; they evolve over time as governments
change their regulations. The channels and features supported by
hardware is static based on what the device was certified for.
James
-
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