aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorMeenakshi Venkataraman <meenakshi.venkataraman@intel.com>2012-03-08 14:29:12 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-03-09 11:32:58 -0500
commitc6f600fcfe8a7e4f594fc4c80b2c7b66f248958b (patch)
treed96a59fa8cfd31fe94ff22fe2708c5bdeeadbc26 /drivers/net/wireless/iwlwifi/iwl-agn.c
parent8763848e03a9098e5b6f81428a98738dc960a436 (diff)
iwlwifi: move command queue number out of the iwl_shared struct
The command queue number is required by the transport layer, but it can be determined only by the op mode. Move this parameter to the dvm op mode, and configure the transport layer using an API. Signed-off-by: Meenakshi Venkataraman <meenakshi.venkataraman@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 60f1dc640c94..1e6b5e41a72b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -1236,6 +1236,14 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,
1236 */ 1236 */
1237 trans_cfg.op_mode = op_mode; 1237 trans_cfg.op_mode = op_mode;
1238 1238
1239 if (ucode_flags & IWL_UCODE_TLV_FLAGS_PAN) {
1240 priv->sta_key_max_num = STA_KEY_MAX_NUM_PAN;
1241 trans_cfg.cmd_queue = IWL_IPAN_CMD_QUEUE_NUM;
1242 } else {
1243 priv->sta_key_max_num = STA_KEY_MAX_NUM;
1244 trans_cfg.cmd_queue = IWL_DEFAULT_CMD_QUEUE_NUM;
1245 }
1246
1239 /* Configure transport layer */ 1247 /* Configure transport layer */
1240 iwl_trans_configure(trans(priv), &trans_cfg); 1248 iwl_trans_configure(trans(priv), &trans_cfg);
1241 1249
@@ -1336,14 +1344,6 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,
1336 priv->new_scan_threshold_behaviour = 1344 priv->new_scan_threshold_behaviour =
1337 !!(ucode_flags & IWL_UCODE_TLV_FLAGS_NEWSCAN); 1345 !!(ucode_flags & IWL_UCODE_TLV_FLAGS_NEWSCAN);
1338 1346
1339 if (ucode_flags & IWL_UCODE_TLV_FLAGS_PAN) {
1340 priv->sta_key_max_num = STA_KEY_MAX_NUM_PAN;
1341 priv->shrd->cmd_queue = IWL_IPAN_CMD_QUEUE_NUM;
1342 } else {
1343 priv->sta_key_max_num = STA_KEY_MAX_NUM;
1344 priv->shrd->cmd_queue = IWL_DEFAULT_CMD_QUEUE_NUM;
1345 }
1346
1347 priv->phy_calib_chain_noise_reset_cmd = 1347 priv->phy_calib_chain_noise_reset_cmd =
1348 fw->ucode_capa.standard_phy_calibration_size; 1348 fw->ucode_capa.standard_phy_calibration_size;
1349 priv->phy_calib_chain_noise_gain_cmd = 1349 priv->phy_calib_chain_noise_gain_cmd =