aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-08-23 04:46:32 -0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2010-08-27 11:26:47 -0400
commit246ed355221076884d225f9d8a4c30a048be8162 (patch)
tree64bba3b115c6f0d7ba245c44b81c38e46adec6c8 /drivers/net/wireless/iwlwifi/iwl-agn-lib.c
parent903786a5626e7214d97b232bece88ee75e37d021 (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-agn-lib.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-lib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
index a9e69a6213f4..531a7dc3dc72 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
@@ -1232,7 +1232,7 @@ void iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
1232 scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH; 1232 scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH;
1233 scan->quiet_time = IWL_ACTIVE_QUIET_TIME; 1233 scan->quiet_time = IWL_ACTIVE_QUIET_TIME;
1234 1234
1235 if (iwl_is_associated(priv)) { 1235 if (iwl_is_any_associated(priv)) {
1236 u16 interval = 0; 1236 u16 interval = 0;
1237 u32 extra; 1237 u32 extra;
1238 u32 suspend_time = 100; 1238 u32 suspend_time = 100;
@@ -1289,7 +1289,9 @@ void iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
1289 switch (priv->scan_band) { 1289 switch (priv->scan_band) {
1290 case IEEE80211_BAND_2GHZ: 1290 case IEEE80211_BAND_2GHZ:
1291 scan->flags = RXON_FLG_BAND_24G_MSK | RXON_FLG_AUTO_DETECT_MSK; 1291 scan->flags = RXON_FLG_BAND_24G_MSK | RXON_FLG_AUTO_DETECT_MSK;
1292 chan_mod = le32_to_cpu(priv->active_rxon.flags & RXON_FLG_CHANNEL_MODE_MSK) 1292 chan_mod = le32_to_cpu(
1293 priv->contexts[IWL_RXON_CTX_BSS].active.flags &
1294 RXON_FLG_CHANNEL_MODE_MSK)
1293 >> RXON_FLG_CHANNEL_MODE_POS; 1295 >> RXON_FLG_CHANNEL_MODE_POS;
1294 if (chan_mod == CHANNEL_MODE_PURE_40) { 1296 if (chan_mod == CHANNEL_MODE_PURE_40) {
1295 rate = IWL_RATE_6M_PLCP; 1297 rate = IWL_RATE_6M_PLCP;