From a15d0b0eae50fa6798d37eebfe6a297b6045d4fb Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Wed, 23 Nov 2016 15:10:15 -0800 Subject: [PATCH] qcacmn: Do wlan_disable/enable for QCA6290 QCA6290 needs the platform QMI handshake to kick off fw. Platform will have logic to not do QMI for targets/ platforms that don't support QMI. Change-Id: I9643d778f25e4059baae903876d44dd2c77d9aaa CRs-Fixed: 1097382 --- hif/src/pcie/if_pci.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/hif/src/pcie/if_pci.c b/hif/src/pcie/if_pci.c index df8f66dd9dd1..d5f1fc5b1fbd 100644 --- a/hif/src/pcie/if_pci.c +++ b/hif/src/pcie/if_pci.c @@ -2032,14 +2032,11 @@ int hif_pci_bus_configure(struct hif_softc *hif_sc) QDF_TIMER_TYPE_WAKE_APPS); hif_state->sleep_timer_init = true; - if (ADRASTEA_BU) { - status = hif_wlan_enable(hif_sc); - - if (status) { - HIF_ERROR("%s: hif_wlan_enable error = %d", - __func__, status); - goto timer_free; - } + status = hif_wlan_enable(hif_sc); + if (status) { + HIF_ERROR("%s: hif_wlan_enable error = %d", + __func__, status); + goto timer_free; } A_TARGET_ACCESS_LIKELY(hif_sc); @@ -2104,8 +2101,7 @@ unconfig_ce: hif_unconfig_ce(hif_sc); disable_wlan: A_TARGET_ACCESS_UNLIKELY(hif_sc); - if (ADRASTEA_BU) - hif_wlan_disable(hif_sc); + hif_wlan_disable(hif_sc); timer_free: qdf_timer_stop(&hif_state->sleep_timer);