m5: Decommonize init.amlogic.wifi_buildin.rc
authorNolen Johnson <johnsonnolen@gmail.com>
Thu, 1 Jul 2021 21:11:57 +0000 (17:11 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 27 Jul 2021 15:37:31 +0000 (11:37 -0400)
* Only deadpool/wade/sabrina have Broadcom Wi-Fi/Bluetooth,
  dopinder/beast have Realtek, and will need different modules
  and node permissions changed.

Change-Id: I204e5c22a1dc306c9c932a3634f5e6534a438ee5

device.mk
init-files/init.amlogic.wifi_buildin.rc [new file with mode: 0644]

index e50f3119ad99dfbd556f06c91f9473fe78a26ea8..fcd6c9a2d643c37d034dd4984593e612260caef3 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -12,6 +12,10 @@ $(call inherit-product, device/amlogic/g12-common/g12.mk)
 BOARD_HAVE_BLUETOOTH_RTK_TV := true
 include hardware/realtek/rtkbt/rtkbt.mk
 
+## Init-Files
+PRODUCT_COPY_FILES += \
+    $(DEVICE_PATH)/init-files/init.amlogic.wifi_buildin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.wifi_buildin.rc
+
 ## Kernel Modules
 PRODUCT_PACKAGES += \
     8822cs
diff --git a/init-files/init.amlogic.wifi_buildin.rc b/init-files/init.amlogic.wifi_buildin.rc
new file mode 100644 (file)
index 0000000..0c9190e
--- /dev/null
@@ -0,0 +1,2 @@
+on boot
+    insmod /vendor/lib/modules/8822cs.ko rtw_country_code=US ifname=wlan0 if2name=p2p0