diff options
author | Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> | 2011-11-30 00:11:16 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-30 15:08:42 -0500 |
commit | 16659f6ad86b0e73ef0409a87b74170fbaeda344 (patch) | |
tree | 2c0ff01055257dd2efb47cfd09411fc015e4b413 | |
parent | 6af24c49a3c4fb9755606d15e3699a483570afdb (diff) |
ath9k_hw: initialize MCI parameters
these parameter will be utilized and modified in the MCI hardware codes
state machine
Cc: Wilson Tsao <wtsao@qca.qualcomm.com>
Cc: Senthil Balasubramanian <senthilb@qca.qualcomm.com>
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index e046de94836a..34b922bbe65d 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c | |||
@@ -408,6 +408,7 @@ fail: | |||
408 | static int ath9k_init_btcoex(struct ath_softc *sc) | 408 | static int ath9k_init_btcoex(struct ath_softc *sc) |
409 | { | 409 | { |
410 | struct ath_txq *txq; | 410 | struct ath_txq *txq; |
411 | struct ath_hw *ah = sc->sc_ah; | ||
411 | int r; | 412 | int r; |
412 | 413 | ||
413 | switch (sc->sc_ah->btcoex_hw.scheme) { | 414 | switch (sc->sc_ah->btcoex_hw.scheme) { |
@@ -426,6 +427,27 @@ static int ath9k_init_btcoex(struct ath_softc *sc) | |||
426 | sc->btcoex.bt_stomp_type = ATH_BTCOEX_STOMP_LOW; | 427 | sc->btcoex.bt_stomp_type = ATH_BTCOEX_STOMP_LOW; |
427 | sc->btcoex.duty_cycle = ATH_BTCOEX_DEF_DUTY_CYCLE; | 428 | sc->btcoex.duty_cycle = ATH_BTCOEX_DEF_DUTY_CYCLE; |
428 | INIT_LIST_HEAD(&sc->btcoex.mci.info); | 429 | INIT_LIST_HEAD(&sc->btcoex.mci.info); |
430 | if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_MCI) { | ||
431 | ah->btcoex_hw.mci.ready = false; | ||
432 | ah->btcoex_hw.mci.bt_state = 0; | ||
433 | ah->btcoex_hw.mci.bt_ver_major = 3; | ||
434 | ah->btcoex_hw.mci.bt_ver_minor = 0; | ||
435 | ah->btcoex_hw.mci.bt_version_known = false; | ||
436 | ah->btcoex_hw.mci.update_2g5g = true; | ||
437 | ah->btcoex_hw.mci.is_2g = true; | ||
438 | ah->btcoex_hw.mci.wlan_channels_update = false; | ||
439 | ah->btcoex_hw.mci.wlan_channels[0] = 0x00000000; | ||
440 | ah->btcoex_hw.mci.wlan_channels[1] = 0xffffffff; | ||
441 | ah->btcoex_hw.mci.wlan_channels[2] = 0xffffffff; | ||
442 | ah->btcoex_hw.mci.wlan_channels[3] = 0x7fffffff; | ||
443 | ah->btcoex_hw.mci.query_bt = true; | ||
444 | ah->btcoex_hw.mci.unhalt_bt_gpm = true; | ||
445 | ah->btcoex_hw.mci.halted_bt_gpm = false; | ||
446 | ah->btcoex_hw.mci.need_flush_btinfo = false; | ||
447 | ah->btcoex_hw.mci.wlan_cal_seq = 0; | ||
448 | ah->btcoex_hw.mci.wlan_cal_done = 0; | ||
449 | ah->btcoex_hw.mci.config = 0x2201; | ||
450 | } | ||
429 | break; | 451 | break; |
430 | default: | 452 | default: |
431 | WARN_ON(1); | 453 | WARN_ON(1); |