Search Linux Wireless

[PATCH] ath9k: simplify regulatory code

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

 



Now that cfg80211 has its own regulatory infrastructure we can
condense ath9k's regulatory code considerably. We only keep data
we need to provide our own regulatory_hint(), regulatory_set_custom_rd(),
reg_notifier() and information necessary for calibration.

Atheros hardware supports 12 world regulatory domains, since these
are custom we apply them through the the new regulatory_set_custom_rd().
Although we have 12 we consolidate these into 5 structures based on
frequency and apply a different set of flags that differentiate them
on a case by case basis through the reg_notifier().

Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx>
---

This patch seems to be too big (135653 bytes) for linux-wireless so
here a URL to it if you want to wget it:

http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/2009-01-13/0001-ath9k-simplify-regulatory-code.patch

This patch should be applied once the 12 patches from my series
"cfg80211/mac80211: fixes/enhancements for reg_notifier()" have been
merged as it depends on a few new cfg80211 helpers from there.

 drivers/net/wireless/ath9k/ath9k.h       |   41 +-
 drivers/net/wireless/ath9k/calib.c       |   41 +-
 drivers/net/wireless/ath9k/core.h        |    1 -
 drivers/net/wireless/ath9k/hw.c          |   63 +-
 drivers/net/wireless/ath9k/main.c        |  248 ++--
 drivers/net/wireless/ath9k/regd.c        | 1164 +++++-------------
 drivers/net/wireless/ath9k/regd.h        |  181 +---
 drivers/net/wireless/ath9k/regd_common.h | 2058 +++++-------------------------
 8 files changed, 761 insertions(+), 3036 deletions(-)
--
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