diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 2cac09405afe..e6695e80fb53 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -552,7 +552,7 @@ static int iwl4965_send_beacon_cmd(struct iwl_priv *priv) | |||
552 | static void iwl4965_ht_conf(struct iwl_priv *priv, | 552 | static void iwl4965_ht_conf(struct iwl_priv *priv, |
553 | struct ieee80211_bss_conf *bss_conf) | 553 | struct ieee80211_bss_conf *bss_conf) |
554 | { | 554 | { |
555 | struct ieee80211_ht_info *ht_conf = bss_conf->ht_conf; | 555 | struct ieee80211_sta_ht_cap *ht_conf = bss_conf->ht_cap; |
556 | struct ieee80211_ht_bss_info *ht_bss_conf = bss_conf->ht_bss_conf; | 556 | struct ieee80211_ht_bss_info *ht_bss_conf = bss_conf->ht_bss_conf; |
557 | struct iwl_ht_info *iwl_conf = &priv->current_ht_config; | 557 | struct iwl_ht_info *iwl_conf = &priv->current_ht_config; |
558 | 558 | ||
@@ -573,27 +573,27 @@ static void iwl4965_ht_conf(struct iwl_priv *priv, | |||
573 | !!(ht_conf->cap & IEEE80211_HT_CAP_MAX_AMSDU); | 573 | !!(ht_conf->cap & IEEE80211_HT_CAP_MAX_AMSDU); |
574 | 574 | ||
575 | iwl_conf->supported_chan_width = | 575 | iwl_conf->supported_chan_width = |
576 | !!(ht_conf->cap & IEEE80211_HT_CAP_SUP_WIDTH); | 576 | !!(ht_conf->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40); |
577 | iwl_conf->extension_chan_offset = | 577 | iwl_conf->extension_chan_offset = |
578 | ht_bss_conf->bss_cap & IEEE80211_HT_IE_CHA_SEC_OFFSET; | 578 | ht_bss_conf->bss_cap & IEEE80211_HT_PARAM_CHA_SEC_OFFSET; |
579 | /* If no above or below channel supplied disable FAT channel */ | 579 | /* If no above or below channel supplied disable FAT channel */ |
580 | if (iwl_conf->extension_chan_offset != IEEE80211_HT_IE_CHA_SEC_ABOVE && | 580 | if (iwl_conf->extension_chan_offset != IEEE80211_HT_PARAM_CHA_SEC_ABOVE && |
581 | iwl_conf->extension_chan_offset != IEEE80211_HT_IE_CHA_SEC_BELOW) { | 581 | iwl_conf->extension_chan_offset != IEEE80211_HT_PARAM_CHA_SEC_BELOW) { |
582 | iwl_conf->extension_chan_offset = IEEE80211_HT_IE_CHA_SEC_NONE; | 582 | iwl_conf->extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_NONE; |
583 | iwl_conf->supported_chan_width = 0; | 583 | iwl_conf->supported_chan_width = 0; |
584 | } | 584 | } |
585 | 585 | ||
586 | iwl_conf->sm_ps = (u8)((ht_conf->cap & IEEE80211_HT_CAP_SM_PS) >> 2); | 586 | iwl_conf->sm_ps = (u8)((ht_conf->cap & IEEE80211_HT_CAP_SM_PS) >> 2); |
587 | 587 | ||
588 | memcpy(iwl_conf->supp_mcs_set, ht_conf->supp_mcs_set, 16); | 588 | memcpy(&iwl_conf->mcs, &ht_conf->mcs, 16); |
589 | 589 | ||
590 | iwl_conf->control_channel = ht_bss_conf->primary_channel; | 590 | iwl_conf->control_channel = ht_bss_conf->primary_channel; |
591 | iwl_conf->tx_chan_width = | 591 | iwl_conf->tx_chan_width = |
592 | !!(ht_bss_conf->bss_cap & IEEE80211_HT_IE_CHA_WIDTH); | 592 | !!(ht_bss_conf->bss_cap & IEEE80211_HT_PARAM_CHAN_WIDTH_ANY); |
593 | iwl_conf->ht_protection = | 593 | iwl_conf->ht_protection = |
594 | ht_bss_conf->bss_op_mode & IEEE80211_HT_IE_HT_PROTECTION; | 594 | ht_bss_conf->bss_op_mode & IEEE80211_HT_OP_MODE_PROTECTION; |
595 | iwl_conf->non_GF_STA_present = | 595 | iwl_conf->non_GF_STA_present = |
596 | !!(ht_bss_conf->bss_op_mode & IEEE80211_HT_IE_NON_GF_STA_PRSNT); | 596 | !!(ht_bss_conf->bss_op_mode & IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT); |
597 | 597 | ||
598 | IWL_DEBUG_MAC80211("control channel %d\n", iwl_conf->control_channel); | 598 | IWL_DEBUG_MAC80211("control channel %d\n", iwl_conf->control_channel); |
599 | IWL_DEBUG_MAC80211("leave\n"); | 599 | IWL_DEBUG_MAC80211("leave\n"); |