diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-01-22 18:05:49 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:16 -0500 |
commit | 2a44f911d8bac3e6c97a25cc612e4324dfbdfdc4 (patch) | |
tree | 2fdfd049107d8a38adceabbe727508374e7f20fc | |
parent | e74b1e7fb2f12db36f25af2158ee6e2940e4f138 (diff) |
cfg80211: rename fw_handles_regulatory to custom_regulatory
Drivers without firmware can also have custom regulatory maps
which do not map to a specific ISO / IEC alpha2 country code.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 2 | ||||
-rw-r--r-- | include/net/wireless.h | 6 | ||||
-rw-r--r-- | net/wireless/reg.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index f24d3b40e8e4..9f284ebb6c28 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -811,7 +811,7 @@ int iwl_setup_mac(struct iwl_priv *priv) | |||
811 | BIT(NL80211_IFTYPE_STATION) | | 811 | BIT(NL80211_IFTYPE_STATION) | |
812 | BIT(NL80211_IFTYPE_ADHOC); | 812 | BIT(NL80211_IFTYPE_ADHOC); |
813 | 813 | ||
814 | hw->wiphy->fw_handles_regulatory = true; | 814 | hw->wiphy->custom_regulatory = true; |
815 | 815 | ||
816 | /* Default value; 4 EDCA QOS priorities */ | 816 | /* Default value; 4 EDCA QOS priorities */ |
817 | hw->queues = 4; | 817 | hw->queues = 4; |
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index d520bfe2db99..de8c8d7ca0fe 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -7011,7 +7011,7 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
7011 | BIT(NL80211_IFTYPE_STATION) | | 7011 | BIT(NL80211_IFTYPE_STATION) | |
7012 | BIT(NL80211_IFTYPE_ADHOC); | 7012 | BIT(NL80211_IFTYPE_ADHOC); |
7013 | 7013 | ||
7014 | hw->wiphy->fw_handles_regulatory = true; | 7014 | hw->wiphy->custom_regulatory = true; |
7015 | 7015 | ||
7016 | /* 4 EDCA QOS priorities */ | 7016 | /* 4 EDCA QOS priorities */ |
7017 | hw->queues = 4; | 7017 | hw->queues = 4; |
diff --git a/include/net/wireless.h b/include/net/wireless.h index f68602eb4160..c3f6e462ec2d 100644 --- a/include/net/wireless.h +++ b/include/net/wireless.h | |||
@@ -181,8 +181,8 @@ struct ieee80211_supported_band { | |||
181 | * struct wiphy - wireless hardware description | 181 | * struct wiphy - wireless hardware description |
182 | * @idx: the wiphy index assigned to this item | 182 | * @idx: the wiphy index assigned to this item |
183 | * @class_dev: the class device representing /sys/class/ieee80211/<wiphy-name> | 183 | * @class_dev: the class device representing /sys/class/ieee80211/<wiphy-name> |
184 | * @fw_handles_regulatory: tells us the firmware for this device | 184 | * @custom_regulatory: tells us the driver for this device |
185 | * has its own regulatory solution and cannot identify the | 185 | * has its own custom regulatory domain and cannot identify the |
186 | * ISO / IEC 3166 alpha2 it belongs to. When this is enabled | 186 | * ISO / IEC 3166 alpha2 it belongs to. When this is enabled |
187 | * we will disregard the first regulatory hint (when the | 187 | * we will disregard the first regulatory hint (when the |
188 | * initiator is %REGDOM_SET_BY_CORE). | 188 | * initiator is %REGDOM_SET_BY_CORE). |
@@ -201,7 +201,7 @@ struct wiphy { | |||
201 | /* Supported interface modes, OR together BIT(NL80211_IFTYPE_...) */ | 201 | /* Supported interface modes, OR together BIT(NL80211_IFTYPE_...) */ |
202 | u16 interface_modes; | 202 | u16 interface_modes; |
203 | 203 | ||
204 | bool fw_handles_regulatory; | 204 | bool custom_regulatory; |
205 | 205 | ||
206 | /* If multiple wiphys are registered and you're handed e.g. | 206 | /* If multiple wiphys are registered and you're handed e.g. |
207 | * a regular netdev with assigned ieee80211_ptr, you won't | 207 | * a regular netdev with assigned ieee80211_ptr, you won't |
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index c201abd38ad1..5db02a3d9c02 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -927,7 +927,7 @@ static bool ignore_reg_update(struct wiphy *wiphy, enum reg_set_by setby) | |||
927 | if (!last_request) | 927 | if (!last_request) |
928 | return true; | 928 | return true; |
929 | if (setby == REGDOM_SET_BY_CORE && | 929 | if (setby == REGDOM_SET_BY_CORE && |
930 | wiphy->fw_handles_regulatory) | 930 | wiphy->custom_regulatory) |
931 | return true; | 931 | return true; |
932 | return false; | 932 | return false; |
933 | } | 933 | } |