]> err.no Git - linux-2.6/commit
[PATCH] mac80211: regulatory domain cleanup
authorDaniel Drake <dsd@gentoo.org>
Sat, 9 Jun 2007 18:07:14 +0000 (19:07 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Jul 2007 01:50:20 +0000 (21:50 -0400)
commitfd8bacc98027aa077ffbf2ecb0c3e930325b01a4
treeabed7113352ddc0facd3c562b862c55ed5062905
parent7c8081eb8f20aa83deb5f1e95adc8a98902555a9
[PATCH] mac80211: regulatory domain cleanup

Currently, a function misnamed ieee80211_init_client() is used to handle
regulatory domain control. It is called from
ieee80211_register_hwmode(), which typically runs 2 or 3 times
(802.11a/b/g), but each time it iterates over all the modes.

This patch cleans this up and removes the confusion:
ieee80211_init_client was effectively renamed to
ieee80211_set_default_regdomain and is now run on a per-mode basis
(doesn't have to deal with netdevs). I also moved the regdomain handling
code into its own file and added some documentation.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Acked-by: Jiri Benc <jbenc@suse.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/Makefile
net/mac80211/ieee80211.c
net/mac80211/ieee80211_i.h
net/mac80211/ieee80211_ioctl.c
net/mac80211/regdomain.c [new file with mode: 0644]