diff options
author | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-10-04 21:07:24 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-10-09 03:37:57 -0400 |
commit | 789fd03331aa1ec45cb58168e2d82525c97c7351 (patch) | |
tree | 4cfa6169c8f4b457c99b5b522ff59bc8fa621623 | |
parent | fe1811438a2a229e93beaefa69481d72652795e5 (diff) |
cfg80211: rename regulatory_hint_11d() to regulatory_hint_country_ie()
It is incorrect to refer to this as 11d as 802.11d was just a
proposed amendment, 802.11d was merged to the standard so
use proper terminology.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | include/uapi/linux/nl80211.h | 2 | ||||
-rw-r--r-- | net/wireless/reg.c | 4 | ||||
-rw-r--r-- | net/wireless/reg.h | 4 | ||||
-rw-r--r-- | net/wireless/sme.c | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index a58ea652cc24..8c0417c222c6 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h | |||
@@ -988,7 +988,7 @@ enum nl80211_commands { | |||
988 | * to query the CRDA to retrieve one regulatory domain. This attribute can | 988 | * to query the CRDA to retrieve one regulatory domain. This attribute can |
989 | * also be used by userspace to query the kernel for the currently set | 989 | * also be used by userspace to query the kernel for the currently set |
990 | * regulatory domain. We chose an alpha2 as that is also used by the | 990 | * regulatory domain. We chose an alpha2 as that is also used by the |
991 | * IEEE-802.11d country information element to identify a country. | 991 | * IEEE-802.11 country information element to identify a country. |
992 | * Users can also simply ask the wireless core to set regulatory domain | 992 | * Users can also simply ask the wireless core to set regulatory domain |
993 | * to a specific alpha2. | 993 | * to a specific alpha2. |
994 | * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory | 994 | * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory |
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index d62cb1e91475..8fbe664fdcf8 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1699,8 +1699,8 @@ int regulatory_hint(struct wiphy *wiphy, const char *alpha2) | |||
1699 | } | 1699 | } |
1700 | EXPORT_SYMBOL(regulatory_hint); | 1700 | EXPORT_SYMBOL(regulatory_hint); |
1701 | 1701 | ||
1702 | void regulatory_hint_11d(struct wiphy *wiphy, enum ieee80211_band band, | 1702 | void regulatory_hint_country_ie(struct wiphy *wiphy, enum ieee80211_band band, |
1703 | const u8 *country_ie, u8 country_ie_len) | 1703 | const u8 *country_ie, u8 country_ie_len) |
1704 | { | 1704 | { |
1705 | char alpha2[2]; | 1705 | char alpha2[2]; |
1706 | enum environment_cap env = ENVIRON_ANY; | 1706 | enum environment_cap env = ENVIRON_ANY; |
diff --git a/net/wireless/reg.h b/net/wireless/reg.h index af2d5f8a5d82..9677e3c13da9 100644 --- a/net/wireless/reg.h +++ b/net/wireless/reg.h | |||
@@ -58,7 +58,7 @@ int regulatory_hint_found_beacon(struct wiphy *wiphy, | |||
58 | gfp_t gfp); | 58 | gfp_t gfp); |
59 | 59 | ||
60 | /** | 60 | /** |
61 | * regulatory_hint_11d - hints a country IE as a regulatory domain | 61 | * regulatory_hint_country_ie - hints a country IE as a regulatory domain |
62 | * @wiphy: the wireless device giving the hint (used only for reporting | 62 | * @wiphy: the wireless device giving the hint (used only for reporting |
63 | * conflicts) | 63 | * conflicts) |
64 | * @band: the band on which the country IE was received on. This determines | 64 | * @band: the band on which the country IE was received on. This determines |
@@ -78,7 +78,7 @@ int regulatory_hint_found_beacon(struct wiphy *wiphy, | |||
78 | * not observed. For this reason if a triplet is seen with channel | 78 | * not observed. For this reason if a triplet is seen with channel |
79 | * information for a band the BSS is not present in it will be ignored. | 79 | * information for a band the BSS is not present in it will be ignored. |
80 | */ | 80 | */ |
81 | void regulatory_hint_11d(struct wiphy *wiphy, | 81 | void regulatory_hint_country_ie(struct wiphy *wiphy, |
82 | enum ieee80211_band band, | 82 | enum ieee80211_band band, |
83 | const u8 *country_ie, | 83 | const u8 *country_ie, |
84 | u8 country_ie_len); | 84 | u8 country_ie_len); |
diff --git a/net/wireless/sme.c b/net/wireless/sme.c index 20e86a95dc4e..65f800890d70 100644 --- a/net/wireless/sme.c +++ b/net/wireless/sme.c | |||
@@ -682,8 +682,8 @@ void __cfg80211_connect_result(struct net_device *dev, const u8 *bssid, | |||
682 | * - country_ie + 2, the start of the country ie data, and | 682 | * - country_ie + 2, the start of the country ie data, and |
683 | * - and country_ie[1] which is the IE length | 683 | * - and country_ie[1] which is the IE length |
684 | */ | 684 | */ |
685 | regulatory_hint_11d(wdev->wiphy, bss->channel->band, | 685 | regulatory_hint_country_ie(wdev->wiphy, bss->channel->band, |
686 | country_ie + 2, country_ie[1]); | 686 | country_ie + 2, country_ie[1]); |
687 | kfree(country_ie); | 687 | kfree(country_ie); |
688 | } | 688 | } |
689 | 689 | ||