diff options
| author | Subramanyam Nalli <nalli@qti.qualcomm.com> | 2013-10-30 10:44:06 +0530 |
|---|---|---|
| committer | Madan Mohan Koyyalamudi <mkoyyala@qca.qualcomm.com> | 2013-11-14 19:55:15 -0800 |
| commit | 2f8bcf0035e4c7caa66d42eb2c7aaf58db936380 (patch) | |
| tree | 0dbf85deb899e65e9ab30709d3d6ff0a358fd4a4 | |
| parent | fb8e6890f140df50baeb908df512f30cdae49921 (diff) | |
qcacld : HDD: Assert in wlan resume path due to offload cmd.
In STA,P2P concurrency mode, there is a taget assert when
platform goes to suspend and resume back. And also after
bringing up the device, with out connection just turn on/off
display was causing taget assert. In firmware if the connection
is not alive, arp cache will not have memory to hold arp offload
cmd details. Due to this asset was happening. Fix issues arp/ns
offload disable cmd only if the connection is alive.
Change-Id: I1f46bf1766f4d3fa64573d5fb9585534c5677ddb
CRs-fixed: 567425
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_early_suspend.c | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/CORE/HDD/src/wlan_hdd_early_suspend.c b/CORE/HDD/src/wlan_hdd_early_suspend.c index e78159c108a0..45dec1247060 100644 --- a/CORE/HDD/src/wlan_hdd_early_suspend.c +++ b/CORE/HDD/src/wlan_hdd_early_suspend.c @@ -528,27 +528,31 @@ void hdd_conf_hostoffload(hdd_adapter_t *pAdapter, v_BOOL_t fenable) else { //Disable ARPOFFLOAD - if (pHddCtx->cfg_ini->fhostArpOffload) + if (eConnectionState_Associated == + (WLAN_HDD_GET_STATION_CTX_PTR(pAdapter))->conn_info.connState) { - vstatus = hdd_conf_arp_offload(pAdapter, fenable); - if (!VOS_IS_STATUS_SUCCESS(vstatus)) + if (pHddCtx->cfg_ini->fhostArpOffload) { - hddLog(VOS_TRACE_LEVEL_ERROR, - "Failed to disable ARPOffload Feature %d", vstatus); + vstatus = hdd_conf_arp_offload(pAdapter, fenable); + if (!VOS_IS_STATUS_SUCCESS(vstatus)) + { + hddLog(VOS_TRACE_LEVEL_ERROR, + "Failed to disable ARPOffload Feature %d", vstatus); + } } - } - //Disable GTK_OFFLOAD + //Disable GTK_OFFLOAD #ifdef WLAN_FEATURE_GTK_OFFLOAD - hdd_conf_gtk_offload(pAdapter, fenable); + hdd_conf_gtk_offload(pAdapter, fenable); #endif #ifdef WLAN_NS_OFFLOAD - //Disable NSOFFLOAD - if (pHddCtx->cfg_ini->fhostNSOffload) - { - hdd_conf_ns_offload(pAdapter, fenable); - } + //Disable NSOFFLOAD + if (pHddCtx->cfg_ini->fhostNSOffload) + { + hdd_conf_ns_offload(pAdapter, fenable); + } #endif + } } } return; |
