diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c index 43542f444d0d..f6953cea272c 100644 --- a/core/hdd/src/wlan_hdd_ipa.c +++ b/core/hdd/src/wlan_hdd_ipa.c @@ -5185,10 +5185,10 @@ static int __hdd_ipa_wlan_evt(struct hdd_adapter *adapter, uint8_t sta_id, msg_ex->name); } else { /* Disable IPA UC TX PIPE when STA disconnected */ - if (!hdd_ipa->num_iface && + if ((1 == hdd_ipa->num_iface) && (HDD_IPA_UC_NUM_WDI_PIPE == - hdd_ipa->activated_fw_pipe) && - !hdd_ipa->ipa_pipes_down) + hdd_ipa->activated_fw_pipe) && + !hdd_ipa->ipa_pipes_down) hdd_ipa_uc_handle_last_discon(hdd_ipa); } @@ -5220,10 +5220,9 @@ static int __hdd_ipa_wlan_evt(struct hdd_adapter *adapter, uint8_t sta_id, return -EINVAL; } - if ((!hdd_ipa->num_iface) && - (HDD_IPA_UC_NUM_WDI_PIPE == - hdd_ipa->activated_fw_pipe) && - !hdd_ipa->ipa_pipes_down) { + if ((1 == hdd_ipa->num_iface) && + (HDD_IPA_UC_NUM_WDI_PIPE == hdd_ipa->activated_fw_pipe) && + !hdd_ipa->ipa_pipes_down) { if (cds_is_driver_unloading()) { /* * We disable WDI pipes directly here since