|
@@ -3776,7 +3776,8 @@ static int __hdd_ipa_wlan_evt(hdd_adapter_t *adapter, uint8_t sta_id,
|
|
|
hdd_ipa_uc_handle_last_discon(hdd_ipa);
|
|
|
}
|
|
|
|
|
|
- if (hdd_ipa_uc_sta_is_enabled(hdd_ipa->hdd_ctx)) {
|
|
|
+ if (hdd_ipa_uc_sta_is_enabled(hdd_ipa->hdd_ctx) &&
|
|
|
+ (hdd_ipa->sap_num_connected_sta > 0)) {
|
|
|
hdd_ipa_uc_offload_enable_disable(adapter,
|
|
|
SIR_STA_RX_DATA_OFFLOAD, 0);
|
|
|
vdev_to_iface[adapter->sessionId] = HDD_IPA_MAX_IFACE;
|