Search Linux Wireless

Re: [PATCH] d80211: Allow drivers to configure default regulatory domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux