From 33f62fb009bbd4b7296588b3caf6d5f8acccd001 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Mon, 5 Feb 2018 16:16:57 -0800 Subject: [PATCH] universal7580: wpa_supplicant(hidl): Add support for starting HAL lazily Bug: 72394251 Test: Able to start supplicant from framework using ISupplicant.getService() Change-Id: I19b8434e7241b9028e7dc86316ec9d5512affcca --- ramdisk/etc/init.wifi.rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ramdisk/etc/init.wifi.rc b/ramdisk/etc/init.wifi.rc index 64aaf51..9ecb3bf 100644 --- a/ramdisk/etc/init.wifi.rc +++ b/ramdisk/etc/init.wifi.rc @@ -54,6 +54,12 @@ service wpa_supplicant /vendor/bin/hw/wpa_supplicant \ -m/data/misc/wifi/p2p_supplicant.conf \ -O/data/vendor/wifi/wpa/sockets \ -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 android.hardware.wifi.supplicant@1.0::ISupplicant default + interface android.hardware.wifi.supplicant@1.1::ISupplicant default class main socket wpa_wlan0 dgram 660 wifi wifi disabled -- 2.20.1