build/patch/misc/wireless-xradio-6.2.patch

29 lines
954 B
Diff

From 3a07e87ddc10f1c48d0ff40dabfb800e2715687c Mon Sep 17 00:00:00 2001
From: Gunjan Gupta <viraniac@gmail.com>
Date: Sun, 3 Sep 2023 09:48:57 +0000
Subject: [PATCH] Fix compilation on 6.2+ kernel
Changes are from
https://github.com/fifteenhex/xradio/commit/a2dd9cd8b1a8b8a8af8aaff90dfaa65fcf783e26
---
drivers/net/wireless/xradio/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/wireless/xradio/main.c b/drivers/net/wireless/xradio/main.c
index 272afad2ba6a..f072629828a9 100644
--- a/drivers/net/wireless/xradio/main.c
+++ b/drivers/net/wireless/xradio/main.c
@@ -163,6 +163,9 @@ static const struct ieee80211_ops xradio_ops = {
/*.channel_switch = xradio_channel_switch, */
.remain_on_channel = xradio_remain_on_channel,
.cancel_remain_on_channel = xradio_cancel_remain_on_channel,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0))
+ .wake_tx_queue = ieee80211_handle_wake_tx_queue,
+#endif
};
--
2.34.1