forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mac80211: add rt2x00 5.19 kernel support
- Loading branch information
1 parent
347559c
commit 9a16693
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
package/kernel/mac80211/patches/rt2x00/999-backport-to-linux-5.18.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters