aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-02-05 19:37:18 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-02-29 15:37:01 -0500
commit78330fddec4e326af5e6aede0fc97824c690ba1d (patch)
tree9786f968f45b35340432d9ee159dda4ca36a95fc /drivers/net/wireless/iwlwifi/iwl-4965.c
parentb86af631b8482b908979b61d06ae7d14e5966885 (diff)
iwlwifi: Fix HT compilation breakage caused by cfg80211 API for channels/bitrates patch
This patch fixes compilation breakage caused by 'cfg80211 API for channels/bitrates' patch. however it doesn't fix the driver's functional problems caused by that patch. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 886a4b86605c..cc141f8ba616 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -3459,14 +3459,15 @@ static int parse_elems(u8 *start, size_t len, struct ieee802_11_elems *elems)
3459 return 0; 3459 return 0;
3460} 3460}
3461 3461
3462void iwl4965_init_ht_hw_capab(struct ieee80211_ht_info *ht_info, int mode) 3462void iwl4965_init_ht_hw_capab(struct ieee80211_ht_info *ht_info,
3463 enum ieee80211_band band)
3463{ 3464{
3464 ht_info->cap = 0; 3465 ht_info->cap = 0;
3465 memset(ht_info->supp_mcs_set, 0, 16); 3466 memset(ht_info->supp_mcs_set, 0, 16);
3466 3467
3467 ht_info->ht_supported = 1; 3468 ht_info->ht_supported = 1;
3468 3469
3469 if (mode == MODE_IEEE80211A) { 3470 if (band == IEEE80211_BAND_5GHZ) {
3470 ht_info->cap |= (u16)IEEE80211_HT_CAP_SUP_WIDTH; 3471 ht_info->cap |= (u16)IEEE80211_HT_CAP_SUP_WIDTH;
3471 ht_info->cap |= (u16)IEEE80211_HT_CAP_SGI_40; 3472 ht_info->cap |= (u16)IEEE80211_HT_CAP_SGI_40;
3472 ht_info->supp_mcs_set[4] = 0x01; 3473 ht_info->supp_mcs_set[4] = 0x01;
@@ -3896,7 +3897,9 @@ static int iwl4965_tx_status_reply_compressed_ba(struct iwl4965_priv *priv,
3896 tx_status->flags |= IEEE80211_TX_STATUS_AMPDU; 3897 tx_status->flags |= IEEE80211_TX_STATUS_AMPDU;
3897 tx_status->ampdu_ack_map = successes; 3898 tx_status->ampdu_ack_map = successes;
3898 tx_status->ampdu_ack_len = agg->frame_count; 3899 tx_status->ampdu_ack_len = agg->frame_count;
3900 /* FIXME Wrong rate
3899 tx_status->control.tx_rate = agg->rate_n_flags; 3901 tx_status->control.tx_rate = agg->rate_n_flags;
3902 */
3900 3903
3901 IWL_DEBUG_TX_REPLY("Bitmap %llx\n", bitmap); 3904 IWL_DEBUG_TX_REPLY("Bitmap %llx\n", bitmap);
3902 3905
@@ -4218,7 +4221,7 @@ void iwl4965_add_station(struct iwl4965_priv *priv, const u8 *addr, int is_ap)
4218 4221
4219static u8 iwl4965_is_channel_extension(struct iwl4965_priv *priv, 4222static u8 iwl4965_is_channel_extension(struct iwl4965_priv *priv,
4220 enum ieee80211_band band, 4223 enum ieee80211_band band,
4221 u16 channel, u8 extension_chan_offset) 4224 u16 channel, u8 extension_chan_offset)
4222{ 4225{
4223 const struct iwl4965_channel_info *ch_info; 4226 const struct iwl4965_channel_info *ch_info;
4224 4227
@@ -4252,7 +4255,7 @@ static u8 iwl4965_is_fat_tx_allowed(struct iwl4965_priv *priv,
4252 return 0; 4255 return 0;
4253 } 4256 }
4254 4257
4255 return (iwl4965_is_channel_extension(priv, priv->phymode, 4258 return (iwl4965_is_channel_extension(priv, priv->band,
4256 iwl_ht_conf->control_channel, 4259 iwl_ht_conf->control_channel,
4257 iwl_ht_conf->extension_chan_offset)); 4260 iwl_ht_conf->extension_chan_offset));
4258} 4261}