Skip to content

Commit

Permalink
wifi: move supplicant service init to wpa_supplicant
Browse files Browse the repository at this point in the history
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: Icea6361942873b5177c5fa59f9628c3b383b4509
  • Loading branch information
Jimmy Chen committed Oct 3, 2019
1 parent be882f3 commit b38ac6d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
1 change: 1 addition & 0 deletions BoardConfig-common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ WIFI_HIDL_FEATURE_AWARE := true
WIFI_HIDL_FEATURE_DUAL_INTERFACE:= true
WIFI_FEATURE_WIFI_EXT_HAL := true
WIFI_FEATURE_IMU_DETECTION := true
WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true

# Audio
BOARD_USES_ALSA_AUDIO := true
Expand Down
16 changes: 0 additions & 16 deletions init.hardware.rc
Original file line number Diff line number Diff line change
Expand Up @@ -636,22 +636,6 @@ on property:persist.vendor.sys.ssr.enable_ramdumps=1
on property:persist.vendor.sys.ssr.enable_ramdumps=0
write /sys/module/subsystem_restart/parameters/enable_ramdumps 0

service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
-O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1 -dd \
-g@android:wpa_wlan0
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
interface [email protected]::ISupplicant default
interface [email protected]::ISupplicant default
interface [email protected]::ISupplicant default
interface [email protected]::ISupplicant default
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

on property:init.svc.vendor.hwcomposer-2-3=stopped
stop ppd

Expand Down
1 change: 1 addition & 0 deletions wpa_supplicant_overlay.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ tdls_external_control=1
wowlan_triggers=magic_pkt
bss_max_count=400
interworking=1
driver_param=use_p2p_group_interface=1

0 comments on commit b38ac6d

Please sign in to comment.