Add two popular MT7921U devices to the driver pid so they work OOB

Signed-off-by: Igor <igor@armbian.com>
This commit is contained in:
Igor Pecovnik
2023-08-18 20:34:17 +02:00
committed by Igor
parent cc8ad531fb
commit fb4774e2f4
3 changed files with 39 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ function kernel_drivers_prepare_harness() {
declare -a all_drivers=(
driver_generic_bring_back_ipx
driver_mt7921u_add_pids
driver_rtl8152_rtl8153
driver_rtl8189ES
driver_rtl8189FS

View File

@@ -17,6 +17,14 @@ function driver_generic_bring_back_ipx() {
fi
}
driver_mt7921u_add_pids() {
# Add two popular cheap USB devices to the table
if linux-version compare "${version}" ge 6.1 && linux-version compare "${version}" lt 6.2; then
display_alert "Mediatek MT7921u" "Add Comfast CF952A and Netgear AXE3000" "info"
process_patch_file "${SRC}/patch/misc/wireless-mt7921u-add-pids.patch" "applying"
fi
}
driver_rtl8152_rtl8153() {
# Updated USB network drivers for RTL8152/RTL8153 based dongles that also support 2.5Gbs variants
if linux-version compare "${version}" ge 5.4 && linux-version compare "${version}" le 5.12 && [ "$LINUXFAMILY" != mvebu64 ] && [ "$LINUXFAMILY" != rk322x ] && [ "$LINUXFAMILY" != odroidxu4 ] ; then