p2p: fix p2p configuration
The correct path should be under /data, or it is not writable. wpa_supplicant now support p2p overlay configuration, a unified wpa_supplicant init entry can be used. Bug: 238601241 Test: create a group and check this group is persisted after reboot Change-Id: I6f471aed60b56862ba9a8b0bb12d50ef6305faba
This commit is contained in:
parent
8a419466b8
commit
16d4e31f10
5 changed files with 2 additions and 31 deletions
|
@ -51,13 +51,3 @@ on post-fs-data
|
||||||
setprop wifi.direct.interface p2p-dev-wlan0
|
setprop wifi.direct.interface p2p-dev-wlan0
|
||||||
setprop wifi.aware.interface aware_nmi0
|
setprop wifi.aware.interface aware_nmi0
|
||||||
|
|
||||||
service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
|
|
||||||
-O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1p2p_device=1 \
|
|
||||||
-m/vendor/etc/wifi/p2p_supplicant.conf \
|
|
||||||
-g@android:wpa_wlan0 -dd
|
|
||||||
interface aidl android.hardware.wifi.supplicant.ISupplicant/default
|
|
||||||
socket wpa_wlan0 dgram 660 wifi wifi
|
|
||||||
class main
|
|
||||||
disabled
|
|
||||||
oneshot
|
|
||||||
|
|
||||||
|
|
|
@ -63,16 +63,6 @@ on post-fs-data
|
||||||
chown system system /mnt/vendor/persist/sensors/registry/vd6282_spectral_fac_cal.reg
|
chown system system /mnt/vendor/persist/sensors/registry/vd6282_spectral_fac_cal.reg
|
||||||
chmod 600 /mnt/vendor/persist/sensors/registry/vd6282_spectral_fac_cal.reg
|
chmod 600 /mnt/vendor/persist/sensors/registry/vd6282_spectral_fac_cal.reg
|
||||||
|
|
||||||
service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
|
|
||||||
-O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1p2p_device=1 \
|
|
||||||
-m/vendor/etc/wifi/p2p_supplicant.conf \
|
|
||||||
-g@android:wpa_wlan0 -dd
|
|
||||||
interface aidl android.hardware.wifi.supplicant.ISupplicant/default
|
|
||||||
socket wpa_wlan0 dgram 660 wifi wifi
|
|
||||||
class main
|
|
||||||
disabled
|
|
||||||
oneshot
|
|
||||||
|
|
||||||
# NFC
|
# NFC
|
||||||
on property:ro.boot.hardware.revision=PROTO1.0
|
on property:ro.boot.hardware.revision=PROTO1.0
|
||||||
setprop persist.vendor.nfc.config_file_name libnfc-hal-st-proto1.conf
|
setprop persist.vendor.nfc.config_file_name libnfc-hal-st-proto1.conf
|
||||||
|
|
|
@ -43,13 +43,3 @@ on post-fs-data
|
||||||
setprop wifi.direct.interface p2p-dev-wlan0
|
setprop wifi.direct.interface p2p-dev-wlan0
|
||||||
setprop wifi.aware.interface aware_nmi0
|
setprop wifi.aware.interface aware_nmi0
|
||||||
|
|
||||||
service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
|
|
||||||
-O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1p2p_device=1 \
|
|
||||||
-m/vendor/etc/wifi/p2p_supplicant.conf \
|
|
||||||
-g@android:wpa_wlan0 -dd
|
|
||||||
interface aidl android.hardware.wifi.supplicant.ISupplicant/default
|
|
||||||
socket wpa_wlan0 dgram 660 wifi wifi
|
|
||||||
class main
|
|
||||||
disabled
|
|
||||||
oneshot
|
|
||||||
|
|
||||||
|
|
|
@ -30,8 +30,9 @@ WIFI_FEATURE_IMU_DETECTION := true
|
||||||
WIFI_AVOID_IFACE_RESET_MAC_CHANGE := true
|
WIFI_AVOID_IFACE_RESET_MAC_CHANGE := true
|
||||||
WIFI_FEATURE_HOSTAPD_11AX := true
|
WIFI_FEATURE_HOSTAPD_11AX := true
|
||||||
BOARD_HOSTAPD_CONFIG_80211W_MFP_OPTIONAL := true
|
BOARD_HOSTAPD_CONFIG_80211W_MFP_OPTIONAL := true
|
||||||
|
WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
device/google/pantah/wifi/p2p_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant.conf \
|
device/google/pantah/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
|
||||||
device/google/pantah/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf
|
device/google/pantah/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue