diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-08-23 04:46:32 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-08-27 11:26:47 -0400 |
commit | 246ed355221076884d225f9d8a4c30a048be8162 (patch) | |
tree | 64bba3b115c6f0d7ba245c44b81c38e46adec6c8 /drivers/net/wireless/iwlwifi/iwl-sta.c | |
parent | 903786a5626e7214d97b232bece88ee75e37d021 (diff) |
iwlwifi: initial contextification
In order to support multiple interfaces, we must move
a lot of data into per-context structures so we can
use the contexts the device offers. To start with,
this makes a lot of code context-aware, more changes
will move more things into the context structure.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-sta.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sta.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c index d5e8db37b86e..43afb8fb36c3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sta.c +++ b/drivers/net/wireless/iwlwifi/iwl-sta.c | |||
@@ -1153,12 +1153,16 @@ static bool is_lq_table_valid(struct iwl_priv *priv, | |||
1153 | { | 1153 | { |
1154 | int i; | 1154 | int i; |
1155 | struct iwl_ht_config *ht_conf = &priv->current_ht_config; | 1155 | struct iwl_ht_config *ht_conf = &priv->current_ht_config; |
1156 | #if !TODO | ||
1157 | struct iwl_rxon_context *ctx = | ||
1158 | &priv->contexts[IWL_RXON_CTX_BSS]; | ||
1159 | #endif | ||
1156 | 1160 | ||
1157 | if (ht_conf->is_ht) | 1161 | if (ht_conf->is_ht) |
1158 | return true; | 1162 | return true; |
1159 | 1163 | ||
1160 | IWL_DEBUG_INFO(priv, "Channel %u is not an HT channel\n", | 1164 | IWL_DEBUG_INFO(priv, "Channel %u is not an HT channel\n", |
1161 | priv->active_rxon.channel); | 1165 | ctx->active.channel); |
1162 | for (i = 0; i < LINK_QUAL_MAX_RETRY_NUM; i++) { | 1166 | for (i = 0; i < LINK_QUAL_MAX_RETRY_NUM; i++) { |
1163 | if (le32_to_cpu(lq->rs_table[i].rate_n_flags) & RATE_MCS_HT_MSK) { | 1167 | if (le32_to_cpu(lq->rs_table[i].rate_n_flags) & RATE_MCS_HT_MSK) { |
1164 | IWL_DEBUG_INFO(priv, | 1168 | IWL_DEBUG_INFO(priv, |