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_oemdata.c b/core/hdd/src/wlan_hdd_oemdata.c
index 7c8a07a..0112f69 100644
--- a/core/hdd/src/wlan_hdd_oemdata.c
+++ b/core/hdd/src/wlan_hdd_oemdata.c
@@ -376,7 +376,7 @@
QDF_STATUS status = QDF_STATUS_SUCCESS;
/* for now, STA interface only */
- pAdapter = hdd_get_adapter(p_hdd_ctx, WLAN_HDD_INFRA_STATION);
+ pAdapter = hdd_get_adapter(p_hdd_ctx, QDF_STA_MODE);
if (!pAdapter) {
QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_ERROR,
"%s: No adapter for STA mode", __func__);
@@ -609,7 +609,7 @@
uint8_t *buf;
/* for now, STA interface only */
- adapter = hdd_get_adapter(p_hdd_ctx, WLAN_HDD_INFRA_STATION);
+ adapter = hdd_get_adapter(p_hdd_ctx, QDF_STA_MODE);
if (!adapter) {
hdd_err("No adapter for STA mode");
return -EINVAL;