diff --git a/package/kernel/mac80211/patches/rt2x00/999-backport-to-linux-5.18.patch b/package/kernel/mac80211/patches/rt2x00/999-backport-to-linux-5.18.patch new file mode 100644 index 00000000000000..57043a280d2396 --- /dev/null +++ b/package/kernel/mac80211/patches/rt2x00/999-backport-to-linux-5.18.patch @@ -0,0 +1,21 @@ +--- a/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c ++++ b/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c +@@ -586,10 +586,18 @@ static void rt2x00usb_assign_endpoint(struct data_queue *queue, + + if (queue->qid == QID_RX) { + pipe = usb_rcvbulkpipe(usb_dev, queue->usb_endpoint); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0) + queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe, 0); ++#else ++ queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe); ++#endif + } else { + pipe = usb_sndbulkpipe(usb_dev, queue->usb_endpoint); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0) + queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe, 1); ++#else ++ queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe); ++#endif + } + + if (!queue->usb_maxpacket) diff --git a/target/linux/rockchip/armv8/config-5.19 b/target/linux/rockchip/armv8/config-5.19 index e15fef802dbc48..319f59cb0550d8 100644 --- a/target/linux/rockchip/armv8/config-5.19 +++ b/target/linux/rockchip/armv8/config-5.19 @@ -367,9 +367,6 @@ CONFIG_I2C_CHARDEV=y CONFIG_I2C_COMPAT=y CONFIG_I2C_HELPER_AUTO=y CONFIG_I2C_RK3X=y -CONFIG_IGB=y -CONFIG_IGB_HWMON=y -CONFIG_IGC=y CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 CONFIG_INDIRECT_PIO=y CONFIG_INPUT=y