diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-08-23 10:57:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-25 14:34:52 -0400 |
commit | 22bf59a03aacc221483e5aad1af903fc191ae958 (patch) | |
tree | 1e80049564bff1027699b4234b47c4906c254860 /drivers | |
parent | fbba94104fb44d2f984e767cd8ac1edd80cb03d5 (diff) |
iwlagn: add additional bt related parameters
Add additional bt coex related parameters and initialize at init
time.
Thoese parameters will be used in later implementations.
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')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 11 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 16 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 5 |
3 files changed, 32 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 0c457be7bc01..e8098a798240 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -4014,6 +4014,17 @@ static int iwl_init_drv(struct iwl_priv *priv) | |||
4014 | 4014 | ||
4015 | iwl_init_scan_params(priv); | 4015 | iwl_init_scan_params(priv); |
4016 | 4016 | ||
4017 | /* init bt coex */ | ||
4018 | if (priv->cfg->advanced_bt_coexist) { | ||
4019 | priv->kill_ack_mask = IWL6000G2B_BT_KILL_ACK_MASK_DEFAULT; | ||
4020 | priv->kill_cts_mask = IWL6000G2B_BT_KILL_CTS_MASK_DEFAULT; | ||
4021 | priv->bt_valid = IWL6000G2B_BT_ALL_VALID_MSK; | ||
4022 | priv->bt_on_thresh = BT_ON_THRESHOLD_DEF; | ||
4023 | priv->bt_duration = BT_DURATION_LIMIT_DEF; | ||
4024 | priv->dynamic_frag_thresh = BT_FRAG_THRESHOLD_DEF; | ||
4025 | priv->dynamic_agg_thresh = BT_AGG_THRESHOLD_DEF; | ||
4026 | } | ||
4027 | |||
4017 | /* Set the tx_power_user_lmt to the lowest power level | 4028 | /* Set the tx_power_user_lmt to the lowest power level |
4018 | * this value will get overwritten by channel max power avg | 4029 | * this value will get overwritten by channel max power avg |
4019 | * from eeprom */ | 4030 | * from eeprom */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index 7369c52d42dd..5df22f1d57a5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -2379,6 +2379,22 @@ struct iwl_link_quality_cmd { | |||
2379 | #define BT_MAX_KILL_DEF (0x5) | 2379 | #define BT_MAX_KILL_DEF (0x5) |
2380 | #define BT_MAX_KILL_MAX (0xFF) | 2380 | #define BT_MAX_KILL_MAX (0xFF) |
2381 | 2381 | ||
2382 | #define BT_DURATION_LIMIT_DEF 625 | ||
2383 | #define BT_DURATION_LIMIT_MAX 1250 | ||
2384 | #define BT_DURATION_LIMIT_MIN 625 | ||
2385 | |||
2386 | #define BT_ON_THRESHOLD_DEF 4 | ||
2387 | #define BT_ON_THRESHOLD_MAX 1000 | ||
2388 | #define BT_ON_THRESHOLD_MIN 1 | ||
2389 | |||
2390 | #define BT_FRAG_THRESHOLD_DEF 0 | ||
2391 | #define BT_FRAG_THRESHOLD_MAX 0 | ||
2392 | #define BT_FRAG_THRESHOLD_MIN 0 | ||
2393 | |||
2394 | #define BT_AGG_THRESHOLD_DEF 0 | ||
2395 | #define BT_AGG_THRESHOLD_MAX 0 | ||
2396 | #define BT_AGG_THRESHOLD_MIN 0 | ||
2397 | |||
2382 | /* | 2398 | /* |
2383 | * REPLY_BT_CONFIG = 0x9b (command, has simple generic response) | 2399 | * REPLY_BT_CONFIG = 0x9b (command, has simple generic response) |
2384 | * | 2400 | * |
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index e0d524d633bb..836fe2762464 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -1366,6 +1366,7 @@ struct iwl_priv { | |||
1366 | #endif | 1366 | #endif |
1367 | }; | 1367 | }; |
1368 | 1368 | ||
1369 | /* bt coex */ | ||
1369 | u8 bt_traffic_load, notif_bt_traffic_load; | 1370 | u8 bt_traffic_load, notif_bt_traffic_load; |
1370 | bool bt_sco_active; | 1371 | bool bt_sco_active; |
1371 | bool bt_full_concurrent; | 1372 | bool bt_full_concurrent; |
@@ -1373,6 +1374,10 @@ struct iwl_priv { | |||
1373 | __le32 kill_ack_mask; | 1374 | __le32 kill_ack_mask; |
1374 | __le32 kill_cts_mask; | 1375 | __le32 kill_cts_mask; |
1375 | __le16 bt_valid; | 1376 | __le16 bt_valid; |
1377 | u16 bt_on_thresh; | ||
1378 | u16 bt_duration; | ||
1379 | u16 dynamic_frag_thresh; | ||
1380 | u16 dynamic_agg_thresh; | ||
1376 | u8 bt_ci_compliance; | 1381 | u8 bt_ci_compliance; |
1377 | struct work_struct bt_traffic_change_work; | 1382 | struct work_struct bt_traffic_change_work; |
1378 | 1383 | ||