From 5ee1e425f4adbe11c0482d19f1167850d6a9461a Mon Sep 17 00:00:00 2001 From: bengris32 Date: Thu, 15 Sep 2022 19:26:13 +0100 Subject: [PATCH] rosemary: Import WiFi configs from stock Signed-off-by: bengris32 --- configs/wifi/p2p_supplicant_overlay.conf | 5 +++++ configs/wifi/wpa_supplicant.conf | 14 ++++++++++++++ configs/wifi/wpa_supplicant_overlay.conf | 5 +++++ device.mk | 5 +++++ 4 files changed, 29 insertions(+) create mode 100644 configs/wifi/p2p_supplicant_overlay.conf create mode 100644 configs/wifi/wpa_supplicant.conf create mode 100644 configs/wifi/wpa_supplicant_overlay.conf diff --git a/configs/wifi/p2p_supplicant_overlay.conf b/configs/wifi/p2p_supplicant_overlay.conf new file mode 100644 index 0000000..8728ee1 --- /dev/null +++ b/configs/wifi/p2p_supplicant_overlay.conf @@ -0,0 +1,5 @@ +p2p_no_group_iface=1 +driver_param=use_p2p_group_interface=1 +bss_expiration_scan_count=1 +wowlan_triggers=disconnect +p2p_search_delay=50 diff --git a/configs/wifi/wpa_supplicant.conf b/configs/wifi/wpa_supplicant.conf new file mode 100644 index 0000000..6ce4777 --- /dev/null +++ b/configs/wifi/wpa_supplicant.conf @@ -0,0 +1,14 @@ +ctrl_interface=wlan0 +update_config=1 +manufacturer=MediaTek Inc. +device_name=Wireless Client +model_name=MTK Wireless Model +model_number=1.0 +serial_number=2.0 +device_type=10-0050F204-5 +os_version=01020300 +config_methods=display push_button keypad +p2p_no_group_iface=1 +driver_param=use_p2p_group_interface=1 +hs20=1 +pmf=1 diff --git a/configs/wifi/wpa_supplicant_overlay.conf b/configs/wifi/wpa_supplicant_overlay.conf new file mode 100644 index 0000000..e2539b2 --- /dev/null +++ b/configs/wifi/wpa_supplicant_overlay.conf @@ -0,0 +1,5 @@ +p2p_no_group_iface=1 +driver_param=use_p2p_group_interface=1 +wowlan_triggers=disconnect +p2p_disabled=1 +bss_no_flush_when_down=1 diff --git a/device.mk b/device.mk index f545ddd..c5a3f5e 100644 --- a/device.mk +++ b/device.mk @@ -317,5 +317,10 @@ PRODUCT_PACKAGES += \ libkeystore-wifi-hidl \ libkeystore-engine-wifi-hidl +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \ + $(LOCAL_PATH)/configs/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf \ + $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf + # Inherit the proprietary files $(call inherit-product, vendor/xiaomi/rosemary/rosemary-vendor.mk)