aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-mac80211.c
diff options
context:
space:
mode:
authorDon Fry <donald.h.fry@intel.com>2011-12-16 10:07:36 -0500
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2011-12-16 10:22:16 -0500
commit3862241945026a8fa165ab73c57739df77b8e1fb (patch)
tree2a093cfd34c285e2510bc91e02a9fa4793fd9b6f /drivers/net/wireless/iwlwifi/iwl-mac80211.c
parent5bd5e9a6ae5137a61d0b5c277eac61892d89fc4f (diff)
iwlwifi: move iwl_cfg from iwl_priv to iwl_shared
Move the configuration pointer from the upper level iwl_priv to the lower level iwl_shared structure, with associated code fixes. Signed-off-by: Don Fry <donald.h.fry@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-mac80211.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-mac80211.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-mac80211.c b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
index e3944f4e4fd6..4aedd728c55b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-mac80211.c
+++ b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
@@ -160,7 +160,7 @@ int iwlagn_mac_setup_register(struct iwl_priv *priv,
160 hw->flags |= IEEE80211_HW_SUPPORTS_PS | 160 hw->flags |= IEEE80211_HW_SUPPORTS_PS |
161 IEEE80211_HW_SUPPORTS_DYNAMIC_PS; 161 IEEE80211_HW_SUPPORTS_DYNAMIC_PS;
162 162
163 if (priv->cfg->sku & EEPROM_SKU_CAP_11N_ENABLE) 163 if (cfg(priv)->sku & EEPROM_SKU_CAP_11N_ENABLE)
164 hw->flags |= IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS | 164 hw->flags |= IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS |
165 IEEE80211_HW_SUPPORTS_STATIC_SMPS; 165 IEEE80211_HW_SUPPORTS_STATIC_SMPS;
166 166
@@ -616,7 +616,7 @@ static int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw,
616 IWL_DEBUG_HT(priv, "A-MPDU action on addr %pM tid %d\n", 616 IWL_DEBUG_HT(priv, "A-MPDU action on addr %pM tid %d\n",
617 sta->addr, tid); 617 sta->addr, tid);
618 618
619 if (!(priv->cfg->sku & EEPROM_SKU_CAP_11N_ENABLE)) 619 if (!(cfg(priv)->sku & EEPROM_SKU_CAP_11N_ENABLE))
620 return -EACCES; 620 return -EACCES;
621 621
622 IWL_DEBUG_MAC80211(priv, "enter\n"); 622 IWL_DEBUG_MAC80211(priv, "enter\n");
@@ -647,8 +647,8 @@ static int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw,
647 } 647 }
648 if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status)) 648 if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status))
649 ret = 0; 649 ret = 0;
650 if (!priv->agg_tids_count && priv->cfg->ht_params && 650 if (!priv->agg_tids_count && cfg(priv)->ht_params &&
651 priv->cfg->ht_params->use_rts_for_aggregation) { 651 cfg(priv)->ht_params->use_rts_for_aggregation) {
652 /* 652 /*
653 * switch off RTS/CTS if it was previously enabled 653 * switch off RTS/CTS if it was previously enabled
654 */ 654 */
@@ -684,8 +684,8 @@ static int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw,
684 sta_priv->max_agg_bufsize = 684 sta_priv->max_agg_bufsize =
685 min(sta_priv->max_agg_bufsize, buf_size); 685 min(sta_priv->max_agg_bufsize, buf_size);
686 686
687 if (priv->cfg->ht_params && 687 if (cfg(priv)->ht_params &&
688 priv->cfg->ht_params->use_rts_for_aggregation) { 688 cfg(priv)->ht_params->use_rts_for_aggregation) {
689 /* 689 /*
690 * switch to RTS/CTS if it is the prefer protection 690 * switch to RTS/CTS if it is the prefer protection
691 * method for HT traffic 691 * method for HT traffic
@@ -792,7 +792,7 @@ static void iwlagn_mac_channel_switch(struct ieee80211_hw *hw,
792 if (!iwl_is_associated_ctx(ctx)) 792 if (!iwl_is_associated_ctx(ctx))
793 goto out; 793 goto out;
794 794
795 if (!priv->cfg->lib->set_channel_switch) 795 if (!cfg(priv)->lib->set_channel_switch)
796 goto out; 796 goto out;
797 797
798 ch = channel->hw_value; 798 ch = channel->hw_value;
@@ -832,7 +832,7 @@ static void iwlagn_mac_channel_switch(struct ieee80211_hw *hw,
832 */ 832 */
833 set_bit(STATUS_CHANNEL_SWITCH_PENDING, &priv->shrd->status); 833 set_bit(STATUS_CHANNEL_SWITCH_PENDING, &priv->shrd->status);
834 priv->switch_channel = cpu_to_le16(ch); 834 priv->switch_channel = cpu_to_le16(ch);
835 if (priv->cfg->lib->set_channel_switch(priv, ch_switch)) { 835 if (cfg(priv)->lib->set_channel_switch(priv, ch_switch)) {
836 clear_bit(STATUS_CHANNEL_SWITCH_PENDING, &priv->shrd->status); 836 clear_bit(STATUS_CHANNEL_SWITCH_PENDING, &priv->shrd->status);
837 priv->switch_channel = 0; 837 priv->switch_channel = 0;
838 ieee80211_chswitch_done(ctx->vif, false); 838 ieee80211_chswitch_done(ctx->vif, false);
@@ -1125,8 +1125,8 @@ static void iwlagn_mac_rssi_callback(struct ieee80211_hw *hw,
1125 IWL_DEBUG_MAC80211(priv, "enter\n"); 1125 IWL_DEBUG_MAC80211(priv, "enter\n");
1126 mutex_lock(&priv->shrd->mutex); 1126 mutex_lock(&priv->shrd->mutex);
1127 1127
1128 if (priv->cfg->bt_params && 1128 if (cfg(priv)->bt_params &&
1129 priv->cfg->bt_params->advanced_bt_coexist) { 1129 cfg(priv)->bt_params->advanced_bt_coexist) {
1130 if (rssi_event == RSSI_EVENT_LOW) 1130 if (rssi_event == RSSI_EVENT_LOW)
1131 priv->bt_enable_pspoll = true; 1131 priv->bt_enable_pspoll = true;
1132 else if (rssi_event == RSSI_EVENT_HIGH) 1132 else if (rssi_event == RSSI_EVENT_HIGH)
@@ -1237,7 +1237,7 @@ static int iwl_setup_interface(struct iwl_priv *priv,
1237 return err; 1237 return err;
1238 } 1238 }
1239 1239
1240 if (priv->cfg->bt_params && priv->cfg->bt_params->advanced_bt_coexist && 1240 if (cfg(priv)->bt_params && cfg(priv)->bt_params->advanced_bt_coexist &&
1241 vif->type == NL80211_IFTYPE_ADHOC) { 1241 vif->type == NL80211_IFTYPE_ADHOC) {
1242 /* 1242 /*
1243 * pretend to have high BT traffic as long as we 1243 * pretend to have high BT traffic as long as we