Integrate wifi configuraions for tangorpro

1. Add supplicant service init
2. Add p2p and aware interface property
3. Force softap use wlan1 interface
4. verbose logging always on for userdebug build

Bug: 235906179
Test: 1. check supplicant can be started
      2. check property ro.vendor.wifi.sap.interface
      3. check property wifi.direct.interface
      4. check property wifi.aware.interface

Change-Id: I92d83db81e5260b8bb781e9263c0bef62fbf8d7a
This commit is contained in:
normanwhl 2022-06-14 04:39:29 +00:00
parent 78cb84cd1b
commit ae0e8ef2fb
6 changed files with 46 additions and 2 deletions

View file

@ -62,5 +62,16 @@ on post-fs-data
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g7.app
# Wifi
on property:sys.boot_completed=1
write /sys/bus/platform/drivers/cnss2/qcom,cnss-qca6490/fs_ready 1
on post-fs-data
setprop wifi.direct.interface p2p-dev-wlan0
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