From 9a166932f34a8eb241a536bdf19fed131835acff Mon Sep 17 00:00:00 2001 From: lean Date: Mon, 15 Aug 2022 02:36:59 +0800 Subject: [PATCH] mac80211: add rt2x00 5.19 kernel support --- .../rt2x00/999-backport-to-linux-5.18.patch | 21 +++++++++++++++++++ target/linux/rockchip/armv8/config-5.19 | 3 --- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 package/kernel/mac80211/patches/rt2x00/999-backport-to-linux-5.18.patch 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 000000000..57043a280 --- /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 e15fef802..319f59cb0 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