From: Daniel Drake Date: Sat, 9 Jun 2007 18:07:14 +0000 (+0100) Subject: [PATCH] mac80211: regulatory domain cleanup X-Git-Tag: v2.6.23-rc1~265^2~16^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd8bacc98027aa077ffbf2ecb0c3e930325b01a4;p=pandora-kernel.git [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 Acked-by: Jiri Benc Signed-off-by: John W. Linville --- Reading git-diff-tree failed