diff options
| author | Sreelakshmi Konamki <skonam@codeaurora.org> | 2016-12-16 15:09:19 +0530 |
|---|---|---|
| committer | Ashish kumar goswami <agoswa@codeaurora.org> | 2016-12-21 19:26:57 +0530 |
| commit | 261b0c7ac6a8bbe1819d997a2e063c03a14fc8fd (patch) | |
| tree | 7a1cdef35d5e8174a36cb50a8dfd68f9f64efa2c | |
| parent | 3540b7b77baf62ea17b9f016d0af7dd8997af2ed (diff) | |
qcacld-2.0: Use sme_dhcp_start/stop_ind api for dhcp state
prima to qcacld-2.0 propagation
Android framework indicates dhcp start and stop using power save
(ps disable for dhcp start, ps enable for dhcp stop).
Use this new indication method for any of the dhcp dependent operations.
Also remove resetting dhcp_done flag in csr_roam_connect() function,
as assumption of dhcp will trigger for every new connection is not
correct, like in static IP address case there wont be dhcp indications,
and this flag remains false.
Change-Id: I3a995d859c39591b0a9fb4bc6e636e580c02dbd4
CRs-Fixed: 1088523
| -rw-r--r-- | CORE/SME/src/csr/csrApiRoam.c | 2 | ||||
| -rw-r--r-- | CORE/SME/src/sme_common/sme_Api.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CORE/SME/src/csr/csrApiRoam.c b/CORE/SME/src/csr/csrApiRoam.c index 18b8c92c9c82..129cc1dc2f5e 100644 --- a/CORE/SME/src/csr/csrApiRoam.c +++ b/CORE/SME/src/csr/csrApiRoam.c @@ -7376,8 +7376,6 @@ eHalStatus csrRoamConnect(tpAniSirGlobal pMac, tANI_U32 sessionId, tCsrRoamProfi pProfile->operationChannel); return status; } - /* Reset dhcp_done for the fresh connection */ - pSession->dhcp_done = false; csrRoamCancelRoaming(pMac, sessionId); csrScanRemoveFreshScanCommand(pMac, sessionId); csrScanCancelIdleScan(pMac); diff --git a/CORE/SME/src/sme_common/sme_Api.c b/CORE/SME/src/sme_common/sme_Api.c index 71c467a48149..fd76b4faac2a 100644 --- a/CORE/SME/src/sme_common/sme_Api.c +++ b/CORE/SME/src/sme_common/sme_Api.c @@ -6803,6 +6803,7 @@ eHalStatus sme_DHCPStartInd( tHalHandle hHal, sme_ReleaseGlobalLock( &pMac->sme ); return eHAL_STATUS_FAILURE; } + pSession->dhcp_done = false; pMsg = (tAniDHCPInd*)vos_mem_malloc(sizeof(tAniDHCPInd)); if (NULL == pMsg) @@ -6875,6 +6876,7 @@ eHalStatus sme_DHCPStopInd( tHalHandle hHal, sme_ReleaseGlobalLock( &pMac->sme ); return eHAL_STATUS_FAILURE; } + pSession->dhcp_done = false; pMsg = (tAniDHCPInd*)vos_mem_malloc(sizeof(tAniDHCPInd)); if (NULL == pMsg) |
