aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZhu Yi <yi.zhu@intel.com>2009-06-15 15:59:53 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-10 14:57:52 -0400
commit191506ecbce03f09f6afa76f1af069574bf99bec (patch)
tree4acd47f3ebdc2dacd41a9f1b2d2a9dee29212541 /drivers
parent13e0fe70960e95cdea89b71aa3d046ec71efac8c (diff)
iwmc3200wifi: change coexist periodic calibration flag
The patch changes coexist periodic calibration priority flag. It also set wireless mode to UMAC and set PM control flag to 0x1. Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwmc3200wifi/commands.c13
-rw-r--r--drivers/net/wireless/iwmc3200wifi/commands.h4
2 files changed, 11 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/commands.c b/drivers/net/wireless/iwmc3200wifi/commands.c
index 145f6f5ae747..0d35afefb61c 100644
--- a/drivers/net/wireless/iwmc3200wifi/commands.c
+++ b/drivers/net/wireless/iwmc3200wifi/commands.c
@@ -120,7 +120,7 @@ static struct coex_event iwm_sta_cm_prio_tbl[COEX_EVENTS_NUM] =
120 {4, 3, 0, COEX_UNASSOC_MANUAL_SCAN_FLAGS}, 120 {4, 3, 0, COEX_UNASSOC_MANUAL_SCAN_FLAGS},
121 {3, 3, 0, COEX_UNASSOC_AUTO_SCAN_FLAGS}, 121 {3, 3, 0, COEX_UNASSOC_AUTO_SCAN_FLAGS},
122 {5, 5, 0, COEX_CALIBRATION_FLAGS}, 122 {5, 5, 0, COEX_CALIBRATION_FLAGS},
123 {4, 4, 0, COEX_PERIODIC_CALIBRATION_FLAGS}, 123 {3, 3, 0, COEX_PERIODIC_CALIBRATION_FLAGS},
124 {5, 4, 0, COEX_CONNECTION_ESTAB_FLAGS}, 124 {5, 4, 0, COEX_CONNECTION_ESTAB_FLAGS},
125 {4, 4, 0, COEX_ASSOCIATED_IDLE_FLAGS}, 125 {4, 4, 0, COEX_ASSOCIATED_IDLE_FLAGS},
126 {4, 4, 0, COEX_ASSOC_MANUAL_SCAN_FLAGS}, 126 {4, 4, 0, COEX_ASSOC_MANUAL_SCAN_FLAGS},
@@ -345,8 +345,7 @@ int iwm_umac_set_config_var(struct iwm_priv *iwm, u16 key,
345 return ret; 345 return ret;
346} 346}
347 347
348int iwm_send_umac_config(struct iwm_priv *iwm, 348int iwm_send_umac_config(struct iwm_priv *iwm, __le32 reset_flags)
349 __le32 reset_flags)
350{ 349{
351 int ret; 350 int ret;
352 351
@@ -374,6 +373,12 @@ int iwm_send_umac_config(struct iwm_priv *iwm,
374 return ret; 373 return ret;
375 374
376 ret = iwm_umac_set_config_fix(iwm, UMAC_PARAM_TBL_CFG_FIX, 375 ret = iwm_umac_set_config_fix(iwm, UMAC_PARAM_TBL_CFG_FIX,
376 CFG_WIRELESS_MODE,
377 iwm->conf.wireless_mode);
378 if (ret < 0)
379 return ret;
380
381 ret = iwm_umac_set_config_fix(iwm, UMAC_PARAM_TBL_CFG_FIX,
377 CFG_COEX_MODE, iwm->conf.coexist_mode); 382 CFG_COEX_MODE, iwm->conf.coexist_mode);
378 if (ret < 0) 383 if (ret < 0)
379 return ret; 384 return ret;
@@ -415,7 +420,7 @@ int iwm_send_umac_config(struct iwm_priv *iwm,
415 return ret; 420 return ret;
416 421
417 ret = iwm_umac_set_config_fix(iwm, UMAC_PARAM_TBL_CFG_FIX, 422 ret = iwm_umac_set_config_fix(iwm, UMAC_PARAM_TBL_CFG_FIX,
418 CFG_PM_CTRL_FLAGS, 0x30001); 423 CFG_PM_CTRL_FLAGS, 0x1);
419 if (ret < 0) 424 if (ret < 0)
420 return ret; 425 return ret;
421 426
diff --git a/drivers/net/wireless/iwmc3200wifi/commands.h b/drivers/net/wireless/iwmc3200wifi/commands.h
index 3510df8ff391..e24d5b633997 100644
--- a/drivers/net/wireless/iwmc3200wifi/commands.h
+++ b/drivers/net/wireless/iwmc3200wifi/commands.h
@@ -106,8 +106,7 @@ enum {
106 CFG_TLC_SPATIAL_STREAM_SUPPORTED, 106 CFG_TLC_SPATIAL_STREAM_SUPPORTED,
107 CFG_TLC_RETRY_PER_RATE, 107 CFG_TLC_RETRY_PER_RATE,
108 CFG_TLC_RETRY_PER_HT_RATE, 108 CFG_TLC_RETRY_PER_HT_RATE,
109 CFG_TLC_FIXED_RATE, 109 CFG_TLC_FIXED_MCS,
110 CFG_TLC_FIXED_RATE_FLAGS,
111 CFG_TLC_CONTROL_FLAGS, 110 CFG_TLC_CONTROL_FLAGS,
112 CFG_TLC_SR_MIN_FAIL, 111 CFG_TLC_SR_MIN_FAIL,
113 CFG_TLC_SR_MIN_PASS, 112 CFG_TLC_SR_MIN_PASS,
@@ -232,6 +231,7 @@ struct iwm_umac_cmd_get_channel_list {
232/* Wireless mode */ 231/* Wireless mode */
233#define WIRELESS_MODE_11A 0x1 232#define WIRELESS_MODE_11A 0x1
234#define WIRELESS_MODE_11G 0x2 233#define WIRELESS_MODE_11G 0x2
234#define WIRELESS_MODE_11N 0x4
235 235
236#define UMAC_PROFILE_EX_IE_REQUIRED 0x1 236#define UMAC_PROFILE_EX_IE_REQUIRED 0x1
237#define UMAC_PROFILE_QOS_ALLOWED 0x2 237#define UMAC_PROFILE_QOS_ALLOWED 0x2