From d8fd29701538a4b86d201b215d3334163abfd7b6 Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Tue, 13 Jun 2017 14:56:10 +0200 Subject: Wi-Fi driver as a module Signed-off-by: Wolfgang Wiedmeyer --- BoardConfig.mk | 3 ++- sepolicy/system_server.te | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index c5ada6f..4817642 100755 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -85,9 +85,10 @@ BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd BOARD_HOSTAPD_DRIVER := NL80211 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" -#WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcmdhd.ko" +WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcmdhd.ko" WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" +WIFI_DRIVER_MODULE_NAME := "bcmdhd" WIFI_BAND := 802_11_ABG # Bluetooth diff --git a/sepolicy/system_server.te b/sepolicy/system_server.te index 072e89d..af878eb 100644 --- a/sepolicy/system_server.te +++ b/sepolicy/system_server.te @@ -2,3 +2,5 @@ # Needed for /system/vendor/lib/hw/gps.omap4.so allow system_server system_file:file { execmod }; + +allow system_server self:capability { sys_module }; -- cgit v1.1