Browse Source

qcacld-3.0: Optional wifi dp feature flag

Enable IPA Config and add Optional wifi dp
feature flag

Change-Id: Ief277ff393625196b224705b0934dbacc213fb45
CRs-Fixed: 3410390
Namita Nair 2 years ago
parent
commit
1eaef39bcf
3 changed files with 16 additions and 0 deletions
  1. 11 0
      configs/kiwi_v2_defconfig
  2. 2 0
      core/hdd/src/wlan_hdd_ipa.c
  3. 3 0
      core/hdd/src/wlan_hdd_sysfs_ipa.c

+ 11 - 0
configs/kiwi_v2_defconfig

@@ -10,6 +10,17 @@ include $(WLAN_ROOT)/configs/default_defconfig
 #Enable 11BE EHT
 CONFIG_WLAN_FEATURE_11BE := y
 
+#Enable IPA Optional wifi datapath feature
+CONFIG_IPA_OPT_WIFI_DP := y
+
+ifeq ($(CONFIG_ARCH_KALAMA), y)
+ifeq ($(CONFIG_IPA_OPT_WIFI_DP), y)
+CONFIG_IPA_OFFLOAD := y
+CONFIG_ENABLE_SMMU_S1_TRANSLATION := y
+CONFIG_SMMU_S1_UNMAP := y
+endif
+endif
+
 # Enable EHT rate sysfs entry
 ifeq ($(CONFIG_WLAN_SYSFS), y)
 CONFIG_WLAN_SYSFS_EHT_RATE := y

+ 2 - 0
core/hdd/src/wlan_hdd_ipa.c

@@ -39,6 +39,7 @@
 #include "wlan_hdd_object_manager.h"
 #include "wlan_dp_ucfg_api.h"
 
+#ifdef IPA_OFFLOAD
 #if (defined(QCA_CONFIG_SMP) && defined(PF_WAKE_UP_IDLE)) ||\
 	IS_ENABLED(CONFIG_SCHED_WALT)
 /**
@@ -284,3 +285,4 @@ void hdd_ipa_set_mcc_mode(bool mcc_mode)
 
 	ucfg_ipa_set_mcc_mode(hdd_ctx->pdev, mcc_mode);
 }
+#endif

+ 3 - 0
core/hdd/src/wlan_hdd_sysfs_ipa.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2011-2020, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -20,6 +21,7 @@
 #include <wlan_hdd_sysfs.h>
 #include "osif_sync.h"
 
+#ifdef IPA_OFFLOAD
 #define MAX_USER_COMMAND_SIZE_IPAUCSTAT 4
 
 static ssize_t __hdd_sysfs_ipaucstate_store(struct net_device *net_dev,
@@ -122,3 +124,4 @@ void hdd_sysfs_ipa_destroy(struct hdd_adapter *adapter)
 {
 	device_remove_file(&adapter->dev->dev, &dev_attr_ipaucstat);
 }
+#endif