diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-03-15 14:45:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-09 16:05:55 -0400 |
commit | 074d46d1d23f27488a3f314e29cae2453541f17d (patch) | |
tree | c6abb99637c808f6eb9da722c3197cc980ce1a98 /drivers/net/wireless/mwifiex/scan.c | |
parent | f69b9c79c99b607a8d6b1d9e1913861154af8c63 (diff) |
wireless: rename ht_info to ht_operation
Since some of the HT code pre-dates 802.11n-2009
some names are wrong. The one that bothers me most
is that "HT operation" is called "HT information"
in our code and that causes confusion.
Rename "HT information" to "HT operation" and also
the control_chan field to primary_chan to match
the name used in the spec.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/scan.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/scan.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c index aff9cd763f2b..5948905ff615 100644 --- a/drivers/net/wireless/mwifiex/scan.c +++ b/drivers/net/wireless/mwifiex/scan.c | |||
@@ -1221,9 +1221,9 @@ mwifiex_update_bss_desc_with_ie(struct mwifiex_adapter *adapter, | |||
1221 | sizeof(struct ieee_types_header) - | 1221 | sizeof(struct ieee_types_header) - |
1222 | bss_entry->beacon_buf); | 1222 | bss_entry->beacon_buf); |
1223 | break; | 1223 | break; |
1224 | case WLAN_EID_HT_INFORMATION: | 1224 | case WLAN_EID_HT_OPERATION: |
1225 | bss_entry->bcn_ht_info = (struct ieee80211_ht_info *) | 1225 | bss_entry->bcn_ht_oper = |
1226 | (current_ptr + | 1226 | (struct ieee80211_ht_operation *)(current_ptr + |
1227 | sizeof(struct ieee_types_header)); | 1227 | sizeof(struct ieee_types_header)); |
1228 | bss_entry->ht_info_offset = (u16) (current_ptr + | 1228 | bss_entry->ht_info_offset = (u16) (current_ptr + |
1229 | sizeof(struct ieee_types_header) - | 1229 | sizeof(struct ieee_types_header) - |
@@ -1493,7 +1493,7 @@ mwifiex_update_curr_bss_params(struct mwifiex_private *priv, u8 *bssid, | |||
1493 | priv->curr_bss_params.bss_descriptor.bcn_ht_cap = NULL; | 1493 | priv->curr_bss_params.bss_descriptor.bcn_ht_cap = NULL; |
1494 | priv->curr_bss_params.bss_descriptor.ht_cap_offset = | 1494 | priv->curr_bss_params.bss_descriptor.ht_cap_offset = |
1495 | 0; | 1495 | 0; |
1496 | priv->curr_bss_params.bss_descriptor.bcn_ht_info = NULL; | 1496 | priv->curr_bss_params.bss_descriptor.bcn_ht_oper = NULL; |
1497 | priv->curr_bss_params.bss_descriptor.ht_info_offset = | 1497 | priv->curr_bss_params.bss_descriptor.ht_info_offset = |
1498 | 0; | 1498 | 0; |
1499 | priv->curr_bss_params.bss_descriptor.bcn_bss_co_2040 = | 1499 | priv->curr_bss_params.bss_descriptor.bcn_bss_co_2040 = |
@@ -2019,8 +2019,8 @@ mwifiex_save_curr_bcn(struct mwifiex_private *priv) | |||
2019 | (curr_bss->beacon_buf + | 2019 | (curr_bss->beacon_buf + |
2020 | curr_bss->ht_cap_offset); | 2020 | curr_bss->ht_cap_offset); |
2021 | 2021 | ||
2022 | if (curr_bss->bcn_ht_info) | 2022 | if (curr_bss->bcn_ht_oper) |
2023 | curr_bss->bcn_ht_info = (struct ieee80211_ht_info *) | 2023 | curr_bss->bcn_ht_oper = (struct ieee80211_ht_operation *) |
2024 | (curr_bss->beacon_buf + | 2024 | (curr_bss->beacon_buf + |
2025 | curr_bss->ht_info_offset); | 2025 | curr_bss->ht_info_offset); |
2026 | 2026 | ||