qcacld-3.0: (part-2)Replace enum device_mode to tQDF_ADAPTER_MODE

Instead of using two different enums for setting adapter mode,
combined them to make only one set of enum.

Change-Id: If20617734c5f6f71cef6b85b86d907f8be9d39f9
CRs-Fixed: 985273
diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c
index 2157972..19f5505 100644
--- a/core/hdd/src/wlan_hdd_ipa.c
+++ b/core/hdd/src/wlan_hdd_ipa.c
@@ -814,7 +814,7 @@
 			"%s: Dummy alloc fail", __func__);
 		hdd_ipa_uc_rt_debug_host_dump(hdd_ctx);
 		hdd_ipa_uc_stat_request(
-			hdd_get_adapter(hdd_ctx, WLAN_HDD_SOFTAP), 1);
+			hdd_get_adapter(hdd_ctx, QDF_SAP_MODE), 1);
 	} else {
 		kfree(dummy_ptr);
 	}
@@ -1628,7 +1628,7 @@
 	 * layer as SAP updates and IPA doesn't have to do anything for these
 	 * updates so ignoring!
 	 */
-	if (WLAN_HDD_SOFTAP == adapter->device_mode && adapter->ipa_context)
+	if (QDF_SAP_MODE == adapter->device_mode && adapter->ipa_context)
 		return;
 
 	/* Lower layer may send multiple START_BSS_EVENT in DFS mode or during
@@ -3431,7 +3431,7 @@
 	 * layer as SAP updates and IPA doesn't have to do anything for these
 	 * updates so ignoring!
 	 */
-	if (WLAN_HDD_SOFTAP == adapter->device_mode && adapter->ipa_context)
+	if (QDF_SAP_MODE == adapter->device_mode && adapter->ipa_context)
 		return 0;
 
 	for (i = 0; i < HDD_IPA_MAX_IFACE; i++) {
@@ -3523,8 +3523,8 @@
 		status =  hdd_get_front_adapter(pHddCtx, &adapter_node);
 		while (NULL != adapter_node && QDF_STATUS_SUCCESS == status) {
 			pAdapter = adapter_node->pAdapter;
-			if (pAdapter->device_mode == WLAN_HDD_INFRA_STATION ||
-				pAdapter->device_mode == WLAN_HDD_SOFTAP) {
+			if (pAdapter->device_mode == QDF_STA_MODE ||
+				pAdapter->device_mode == QDF_SAP_MODE) {
 				hddLog(QDF_TRACE_LEVEL_INFO,
 					"MCC->SCC: Flush TxRx queue(d_mode=%d)",
 					pAdapter->device_mode);
@@ -3632,7 +3632,7 @@
 
 	if (hdd_ipa_uc_is_enabled(hdd_ipa->hdd_ctx) &&
 		!hdd_ipa_uc_sta_is_enabled(hdd_ipa->hdd_ctx) &&
-		(WLAN_HDD_SOFTAP != adapter->device_mode)) {
+		(QDF_SAP_MODE != adapter->device_mode)) {
 		return 0;
 	}