Merge "qcacld-3.0: Check for adapter validity in IPA deinit" into wlan-cld3.driver.lnx.2.0-dev
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
1e24247c88
@@ -2734,10 +2734,11 @@ static int __hdd_ipa_uc_ssr_deinit(void)
|
|||||||
for (idx = 0; (hdd_ipa->num_iface > 0) &&
|
for (idx = 0; (hdd_ipa->num_iface > 0) &&
|
||||||
(idx < HDD_IPA_MAX_IFACE); idx++) {
|
(idx < HDD_IPA_MAX_IFACE); idx++) {
|
||||||
iface_context = &hdd_ipa->iface_context[idx];
|
iface_context = &hdd_ipa->iface_context[idx];
|
||||||
if (iface_context && iface_context->adapter)
|
if (iface_context->adapter && iface_context->adapter->magic ==
|
||||||
|
WLAN_HDD_ADAPTER_MAGIC)
|
||||||
hdd_ipa_cleanup_iface(iface_context);
|
hdd_ipa_cleanup_iface(iface_context);
|
||||||
}
|
}
|
||||||
|
hdd_ipa->num_iface = 0;
|
||||||
/* After SSR, wlan driver reloads FW again. But we need to protect
|
/* After SSR, wlan driver reloads FW again. But we need to protect
|
||||||
* IPA submodule during SSR transient state. So deinit basic IPA
|
* IPA submodule during SSR transient state. So deinit basic IPA
|
||||||
* UC host side to be in sync with reloaded FW during SSR
|
* UC host side to be in sync with reloaded FW during SSR
|
||||||
|
Reference in New Issue
Block a user