diff options
| author | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-01-28 16:17:56 -0800 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-02-03 16:04:48 +0530 |
| commit | d23855df648aade0ae498ff54be39ed9768cd26a (patch) | |
| tree | 32a56e87622cf3e738c7b79c9a6e1f3891c63c3f | |
| parent | f2af211d3eaeee8d3631f697d0405773b69a6845 (diff) | |
qcacld: Fix crash when disconnect client while IPA Offload is disabled
When IPA Offload is disable but IPA uC Offload is enabled, since IPA data
structure is not initialized, we shouldn't process IPA WLAN events.
Change-Id: Ia953dcbbcc515b73b26102ba966915cb360a3c51
CRs-fixed: 788231
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_ipa.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_ipa.c b/CORE/HDD/src/wlan_hdd_ipa.c index f40d9c1877af..897c12b36bbc 100644 --- a/CORE/HDD/src/wlan_hdd_ipa.c +++ b/CORE/HDD/src/wlan_hdd_ipa.c @@ -3121,6 +3121,11 @@ int hdd_ipa_wlan_evt(hdd_adapter_t *adapter, uint8_t sta_id, if (WARN_ON(is_zero_ether_addr(mac_addr))) return -EINVAL; + if (!hdd_ipa || !hdd_ipa_is_enabled(hdd_ipa->hdd_ctx)) { + HDD_IPA_LOG(VOS_TRACE_LEVEL_ERROR, "IPA OFFLOAD NOT ENABLED"); + return -EINVAL; + } + #ifdef IPA_UC_OFFLOAD if (hdd_ipa_uc_is_enabled(hdd_ipa) && #ifdef IPA_UC_STA_OFFLOAD @@ -3129,6 +3134,7 @@ int hdd_ipa_wlan_evt(hdd_adapter_t *adapter, uint8_t sta_id, (WLAN_HDD_SOFTAP != adapter->device_mode)) { return 0; } + /* During IPA UC resource loading/unloading * new event issued. * Store event seperatly and handle later */ |
