android: vendor: add driver (no GKI) and firmware for wifi

Signed-off-by: hmz007 <hmz007@gmail.com>
master
hmz007 1 year ago
parent 6713901dd2
commit 8bb13872a3

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,34 @@
rtw88 firmware
================
This repository contains firmware images supported by Realtek's wireless
driver rtw88. And some of the devices run with more than one firmware
file. Basically, a "normal" firmware is necessary to be downloaded to
the device.
And another is called "wowlan" firmware, it should be loaded when a
device is going to suspend. Which means driver will "re-download/swap"
the firmware image. The wowlan firmware contains wake up functions that
can recognize specific events and send a wake up signal to device if
needed, and the system will resume to running state. During resume,
driver will then swap the normal firmware back, return to running state.
If any distros or platforms do not require wowlan feature, they can
_only_ pick the normal firmware. And everything still works fine,
except that the device cannot be waken from the wireless NICs.
Currently supported devices with corresponding firmwares:
RTL8822BE
rtw8822b_fw.bin
RTL8821CE
rtw8821c_fw.bin
RTL8822CE
rtw8822c_fw.bin
rtw8822c_wow_fw.bin
RTL8723DE
rtw8723d_fw.bin

@ -2,23 +2,48 @@ HAVE_EXT_WIFI_KO_FILE := $(shell test -d $(TOPDIR)external/wifi_driver/ && echo
ifeq ($(HAVE_EXT_WIFI_KO_FILE),yes)
EXT_WIFI_KO_FILES := $(shell find $(TOPDIR)external/wifi_driver -name "*.ko" -type f)
BOARD_VENDOR_KERNEL_MODULES += \
$(foreach file, $(EXT_WIFI_KO_FILES), $(file))
$(foreach file, $(EXT_WIFI_KO_FILES), $(file))
# priority to use external/wifi_driver, delete the same ko in kernel wifi driver
EXT_WIFI_DRIVER := $(shell find $(TOPDIR)external/wifi_driver -name "*.ko" -type f | awk -F "wifi_driver/" '{print $$2}' | awk -F "/" '{print $$1}')
$(shell for line in $(EXT_WIFI_DRIVER); do rm $(TOPDIR)$(PRODUCT_KERNEL_PATH)/drivers/net/wireless/rockchip_wlan/$$line/*.ko > /dev/null 2>&1; done)
$(shell for line in $(EXT_WIFI_DRIVER); do rm $(TOPDIR)$(PRODUCT_KERNEL_PATH)/drivers/net/wireless/rockchip_wlan/rkwifi/$$line/*.ko > /dev/null 2>&1; done)
endif
WIFI_KO_FILES := $(shell find $(TOPDIR)$(PRODUCT_KERNEL_PATH)/drivers/net/wireless/rockchip_wlan -name "*.ko" -type f)
WIFI_KO_FILES += \
$(CUR_PATH)/wifi/modules/cfg80211.ko \
$(CUR_PATH)/wifi/modules/mac80211.ko \
$(CUR_PATH)/wifi/modules/rtl8822ce.ko \
$(CUR_PATH)/wifi/modules/rtl8812au.ko \
$(CUR_PATH)/wifi/modules/rtl8821CU.ko \
$(CUR_PATH)/wifi/modules/mt76.ko \
$(CUR_PATH)/wifi/modules/mt76-connac-lib.ko \
$(CUR_PATH)/wifi/modules/mt76-usb.ko \
$(CUR_PATH)/wifi/modules/mt76x02-lib.ko \
$(CUR_PATH)/wifi/modules/mt76x02-usb.ko \
$(CUR_PATH)/wifi/modules/mt76x2-common.ko \
$(CUR_PATH)/wifi/modules/mt76x2u.ko \
$(CUR_PATH)/wifi/modules/mt7921-common.ko \
$(CUR_PATH)/wifi/modules/mt7921e.ko \
$(CUR_PATH)/wifi/modules/mt7921u.ko \
$(CUR_PATH)/wifi/modules/mt7601u.ko
BOARD_VENDOR_KERNEL_MODULES += \
$(foreach file, $(WIFI_KO_FILES), $(file))
$(foreach file, $(WIFI_KO_FILES), $(file))
WifiFirmwareFile := $(shell ls $(CUR_PATH)/wifi/firmware)
PRODUCT_COPY_FILES += \
$(foreach file, $(WifiFirmwareFile), $(CUR_PATH)/wifi/firmware/$(file):$(TARGET_COPY_OUT_VENDOR)/etc/firmware/$(file))
$(foreach file, $(WifiFirmwareFile), $(CUR_PATH)/wifi/firmware/$(file):$(TARGET_COPY_OUT_VENDOR)/etc/firmware/$(file))
MtkFirmwareFile := $(shell ls $(CUR_PATH)/wifi/mediatek)
PRODUCT_COPY_FILES += \
$(foreach file, $(MtkFirmwareFile), $(CUR_PATH)/wifi/mediatek/$(file):$(TARGET_COPY_OUT_VENDOR)/etc/firmware/mediatek/$(file))
Rtw88FirmwareFile := $(shell ls $(CUR_PATH)/wifi/rtw88)
PRODUCT_COPY_FILES += \
$(foreach file, $(Rtw88FirmwareFile), $(CUR_PATH)/wifi/rtw88/$(file):$(TARGET_COPY_OUT_VENDOR)/etc/firmware/rtw88/$(file))
RtlbtFirmwareFile := $(shell ls $(CUR_PATH)/wifi/rtl_bt)
PRODUCT_COPY_FILES += \

Loading…
Cancel
Save