diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2007-11-26 09:14:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:05:41 -0500 |
commit | 9e0cc6de99792151b16dbd622b11ba6607a85b72 (patch) | |
tree | dff37e09f69fe28ab770bfafe9984b6079320c0c | |
parent | 923effd8d231ac480c6007e2a377c001a343a0ba (diff) |
iwlwifi: 802.11n new framework structures preperation
This patch removes unnecessary or duplicate 802.11n data from structures
in the code, and prepares them for new mac80211's 802.11n framework
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-rs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.h | 28 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 2 |
3 files changed, 12 insertions, 20 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c index 218c5a355ddb..b4edadf96ecf 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c | |||
@@ -2123,7 +2123,7 @@ static void rs_rate_init(void *priv_rate, void *priv_sta, | |||
2123 | if (local->hw.conf.phymode == MODE_IEEE80211A) | 2123 | if (local->hw.conf.phymode == MODE_IEEE80211A) |
2124 | sta->last_txrate += IWL_FIRST_OFDM_RATE; | 2124 | sta->last_txrate += IWL_FIRST_OFDM_RATE; |
2125 | 2125 | ||
2126 | crl->is_dup = priv->is_dup; | 2126 | crl->is_dup = 0; |
2127 | crl->valid_antenna = priv->valid_antenna; | 2127 | crl->valid_antenna = priv->valid_antenna; |
2128 | crl->antenna = priv->antenna; | 2128 | crl->antenna = priv->antenna; |
2129 | crl->is_green = rs_use_green(priv); | 2129 | crl->is_green = rs_use_green(priv); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h index dda2bfbcb059..c0e9747ca49c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965.h | |||
@@ -510,22 +510,23 @@ union iwl4965_ht_rate_supp { | |||
510 | #define CFG_HT_MPDU_DENSITY_2USEC (0x5) | 510 | #define CFG_HT_MPDU_DENSITY_2USEC (0x5) |
511 | #define CFG_HT_MPDU_DENSITY_DEF CFG_HT_MPDU_DENSITY_2USEC | 511 | #define CFG_HT_MPDU_DENSITY_DEF CFG_HT_MPDU_DENSITY_2USEC |
512 | 512 | ||
513 | struct sta_ht_info { | 513 | struct iwl_ht_info { |
514 | /* self configuration data */ | ||
514 | u8 is_ht; | 515 | u8 is_ht; |
515 | u16 rx_mimo_ps_mode; | 516 | u8 supported_chan_width; |
516 | u16 tx_mimo_ps_mode; | 517 | u16 tx_mimo_ps_mode; |
517 | u16 control_channel; | 518 | u8 is_green_field; |
519 | u8 sgf; | ||
518 | u8 max_amsdu_size; | 520 | u8 max_amsdu_size; |
519 | u8 ampdu_factor; | 521 | u8 ampdu_factor; |
520 | u8 mpdu_density; | 522 | u8 mpdu_density; |
521 | u8 operating_mode; | 523 | u8 supp_mcs_set[16]; |
522 | u8 supported_chan_width; | 524 | /* BSS related data */ |
525 | u8 control_channel; | ||
523 | u8 extension_chan_offset; | 526 | u8 extension_chan_offset; |
524 | u8 is_green_field; | ||
525 | u8 sgf; /* HT_SHORT_GI_* short guard interval */ | ||
526 | u8 supp_rates[16]; | ||
527 | u8 tx_chan_width; | 527 | u8 tx_chan_width; |
528 | u8 chan_width_cap; | 528 | u8 ht_protection; |
529 | u8 non_GF_STA_present; | ||
529 | }; | 530 | }; |
530 | #endif /*CONFIG_IWL4965_HT */ | 531 | #endif /*CONFIG_IWL4965_HT */ |
531 | 532 | ||
@@ -1142,12 +1143,6 @@ struct iwl4965_priv { | |||
1142 | u8 call_post_assoc_from_beacon; | 1143 | u8 call_post_assoc_from_beacon; |
1143 | u8 assoc_station_added; | 1144 | u8 assoc_station_added; |
1144 | u8 use_ant_b_for_management_frame; /* Tx antenna selection */ | 1145 | u8 use_ant_b_for_management_frame; /* Tx antenna selection */ |
1145 | |||
1146 | /* High Throughput (HT) variables */ | ||
1147 | u8 is_dup; | ||
1148 | u8 is_ht_enabled; | ||
1149 | u8 channel_width; /* 0=20MHZ, 1=40MHZ supported */ | ||
1150 | u8 current_channel_width; | ||
1151 | u8 valid_antenna; /* Bit mask of antennas actually connected */ | 1146 | u8 valid_antenna; /* Bit mask of antennas actually connected */ |
1152 | #ifdef CONFIG_IWL4965_SENSITIVITY | 1147 | #ifdef CONFIG_IWL4965_SENSITIVITY |
1153 | struct iwl4965_sensitivity_data sensitivity_data; | 1148 | struct iwl4965_sensitivity_data sensitivity_data; |
@@ -1157,9 +1152,8 @@ struct iwl4965_priv { | |||
1157 | #endif /*CONFIG_IWL4965_SENSITIVITY*/ | 1152 | #endif /*CONFIG_IWL4965_SENSITIVITY*/ |
1158 | 1153 | ||
1159 | #ifdef CONFIG_IWL4965_HT | 1154 | #ifdef CONFIG_IWL4965_HT |
1160 | struct sta_ht_info current_assoc_ht; | 1155 | struct iwl_ht_info current_ht_config; |
1161 | #endif | 1156 | #endif |
1162 | u8 active_rate_ht[2]; | ||
1163 | u8 last_phy_res[100]; | 1157 | u8 last_phy_res[100]; |
1164 | 1158 | ||
1165 | /* Rate scaling data */ | 1159 | /* Rate scaling data */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 8bc2634bb407..4561933acb1d 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -9296,8 +9296,6 @@ static int iwl4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
9296 | 9296 | ||
9297 | priv->ps_mode = 0; | 9297 | priv->ps_mode = 0; |
9298 | priv->use_ant_b_for_management_frame = 1; /* start with ant B */ | 9298 | priv->use_ant_b_for_management_frame = 1; /* start with ant B */ |
9299 | priv->is_ht_enabled = 1; | ||
9300 | priv->channel_width = IWL_CHANNEL_WIDTH_40MHZ; | ||
9301 | priv->valid_antenna = 0x7; /* assume all 3 connected */ | 9299 | priv->valid_antenna = 0x7; /* assume all 3 connected */ |
9302 | priv->ps_mode = IWL_MIMO_PS_NONE; | 9300 | priv->ps_mode = IWL_MIMO_PS_NONE; |
9303 | 9301 | ||