Skip to content

Commit 9a16693

Browse files
committed
mac80211: add rt2x00 5.19 kernel support
1 parent 347559c commit 9a16693

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c
2+
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c
3+
@@ -586,10 +586,18 @@ static void rt2x00usb_assign_endpoint(struct data_queue *queue,
4+
5+
if (queue->qid == QID_RX) {
6+
pipe = usb_rcvbulkpipe(usb_dev, queue->usb_endpoint);
7+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0)
8+
queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe, 0);
9+
+#else
10+
+ queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe);
11+
+#endif
12+
} else {
13+
pipe = usb_sndbulkpipe(usb_dev, queue->usb_endpoint);
14+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0)
15+
queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe, 1);
16+
+#else
17+
+ queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe);
18+
+#endif
19+
}
20+
21+
if (!queue->usb_maxpacket)

target/linux/rockchip/armv8/config-5.19

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,6 @@ CONFIG_I2C_CHARDEV=y
367367
CONFIG_I2C_COMPAT=y
368368
CONFIG_I2C_HELPER_AUTO=y
369369
CONFIG_I2C_RK3X=y
370-
CONFIG_IGB=y
371-
CONFIG_IGB_HWMON=y
372-
CONFIG_IGC=y
373370
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
374371
CONFIG_INDIRECT_PIO=y
375372
CONFIG_INPUT=y

0 commit comments

Comments
 (0)