qcacld-3.0: Send IPA CONS RM grant notification when loading is completed

qcacld-2.0 to qcacld-3.0 propagation

When IPA requests WLAN CONS resource while IPA resource loading is in
progress, resource will not be granted even after the loading is
completed. This will eventually result IPA uC timeout.

Change-Id: Iae8373c43709cbbccef790973642f5992ddcd359
CRs-Fixed: 943635
diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c
index cfdffe8..2f4e006 100644
--- a/core/hdd/src/wlan_hdd_ipa.c
+++ b/core/hdd/src/wlan_hdd_ipa.c
@@ -1377,6 +1377,10 @@
 		if (HDD_IPA_UC_NUM_WDI_PIPE == hdd_ipa->activated_fw_pipe) {
 			hdd_ipa->resource_loading = false;
 			hdd_ipa_uc_proc_pending_event(hdd_ipa);
+			if (hdd_ipa->pending_cons_req)
+				ipa_rm_notify_completion(
+						IPA_RM_RESOURCE_GRANTED,
+						IPA_RM_RESOURCE_WLAN_CONS);
 		}
 		cdf_mutex_release(&hdd_ipa->ipa_lock);
 	}