gta4xl-common: Add p2p_no_group_iface=1 to p2p_supplicant_overlay
Configures wpa_supplicant to use p2p0 mgmt iface instead of dynamically
created p2p-p2p0-XYZ virtual interfaces for P2P group.
Bug: 65524423
Test: CtsVerifier WifiDirect
Test: Manual verification
Change-Id: I70582f114ab69684424aac41fbeb78fa7cc04847
Merged-In: Id9add59aa122adb7f39c80252061a8f5d3cc55cd
diff --git a/config/wifi/p2p_supplicant_overlay.conf b/config/wifi/p2p_supplicant_overlay.conf
new file mode 100644
index 0000000..aa1665f
--- /dev/null
+++ b/config/wifi/p2p_supplicant_overlay.conf
@@ -0,0 +1,2 @@
+disable_scan_offload=1
+update_config=1
diff --git a/config/wifi/wpa_supplicant_overlay.conf b/config/wifi/wpa_supplicant_overlay.conf
new file mode 100644
index 0000000..eeb542a
--- /dev/null
+++ b/config/wifi/wpa_supplicant_overlay.conf
@@ -0,0 +1,4 @@
+p2p_no_group_iface=1
+p2p_disabled=1
+update_config=1
+pmf=1
diff --git a/platform/config.mk b/platform/config.mk
index b25ce28..082c2df 100644
--- a/platform/config.mk
+++ b/platform/config.mk
@@ -32,3 +32,9 @@
### THERMAL
PRODUCT_COPY_FILES += \
$(PLATFORM_PATH)/config/thermal/thermal_info_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
+
+
+### WIFI
+PRODUCT_COPY_FILES += \
+ $(PLATFORM_PATH)/config/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
+ $(PLATFORM_PATH)/config/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf
diff --git a/system.prop b/system.prop
index 78f5d67..ce348b1 100644
--- a/system.prop
+++ b/system.prop
@@ -6,3 +6,6 @@
# Set cmc properties
ro.cmc.device_type=pd
ro.cmc.version=2.0
+
+# wifi direct
+wifi.direct.interface=p2p0