diff options
author | Daniel Drake <dsd@gentoo.org> | 2007-06-09 14:07:14 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-07-17 21:50:20 -0400 |
commit | fd8bacc98027aa077ffbf2ecb0c3e930325b01a4 (patch) | |
tree | abed7113352ddc0facd3c562b862c55ed5062905 /net/mac80211/ieee80211_i.h | |
parent | 7c8081eb8f20aa83deb5f1e95adc8a98902555a9 (diff) |
[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>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 055a2a912185..6f7bae7ef9c0 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -759,7 +759,6 @@ void ieee80211_update_default_wep_only(struct ieee80211_local *local); | |||
759 | /* ieee80211_ioctl.c */ | 759 | /* ieee80211_ioctl.c */ |
760 | int ieee80211_set_compression(struct ieee80211_local *local, | 760 | int ieee80211_set_compression(struct ieee80211_local *local, |
761 | struct net_device *dev, struct sta_info *sta); | 761 | struct net_device *dev, struct sta_info *sta); |
762 | int ieee80211_init_client(struct net_device *dev); | ||
763 | int ieee80211_set_channel(struct ieee80211_local *local, int channel, int freq); | 762 | int ieee80211_set_channel(struct ieee80211_local *local, int channel, int freq); |
764 | /* ieee80211_sta.c */ | 763 | /* ieee80211_sta.c */ |
765 | void ieee80211_sta_timer(unsigned long data); | 764 | void ieee80211_sta_timer(unsigned long data); |
@@ -798,6 +797,10 @@ void ieee80211_if_sdata_init(struct ieee80211_sub_if_data *sdata); | |||
798 | int ieee80211_if_add_mgmt(struct ieee80211_local *local); | 797 | int ieee80211_if_add_mgmt(struct ieee80211_local *local); |
799 | void ieee80211_if_del_mgmt(struct ieee80211_local *local); | 798 | void ieee80211_if_del_mgmt(struct ieee80211_local *local); |
800 | 799 | ||
800 | /* regdomain.c */ | ||
801 | void ieee80211_regdomain_init(void); | ||
802 | void ieee80211_set_default_regdomain(struct ieee80211_hw_mode *mode); | ||
803 | |||
801 | /* for wiphy privid */ | 804 | /* for wiphy privid */ |
802 | extern void *mac80211_wiphy_privid; | 805 | extern void *mac80211_wiphy_privid; |
803 | 806 | ||