mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
driver-harness: fix compilation failure with 6.7 kernel as observed with allwinner kernels
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
From 4cf270a8ac06021e0f6cf30790d089584cb24b67 Mon Sep 17 00:00:00 2001
|
||||
From: Gunjan Gupta <viraniac@gmail.com>
|
||||
Date: Sat, 23 Dec 2023 10:05:30 +0000
|
||||
Subject: [PATCH] wireless: uwe5622: Fix compilation with 6.7 kernel
|
||||
|
||||
---
|
||||
drivers/net/wireless/uwe5622/unisocwifi/cfg80211.c | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
diff --git a/drivers/net/wireless/uwe5622/unisocwifi/cfg80211.c b/drivers/net/wireless/uwe5622/unisocwifi/cfg80211.c
|
||||
index b2f9a877edce..34b2e5e4274d 100644
|
||||
--- a/drivers/net/wireless/uwe5622/unisocwifi/cfg80211.c
|
||||
+++ b/drivers/net/wireless/uwe5622/unisocwifi/cfg80211.c
|
||||
@@ -964,9 +964,16 @@ static int sprdwl_cfg80211_start_ap(struct wiphy *wiphy,
|
||||
|
||||
static int sprdwl_cfg80211_change_beacon(struct wiphy *wiphy,
|
||||
struct net_device *ndev,
|
||||
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0))
|
||||
+ struct cfg80211_ap_update *info)
|
||||
+#else
|
||||
struct cfg80211_beacon_data *beacon)
|
||||
+#endif
|
||||
{
|
||||
struct sprdwl_vif *vif = netdev_priv(ndev);
|
||||
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0))
|
||||
+ struct cfg80211_beacon_data *beacon = &(info->beacon);
|
||||
+#endif
|
||||
|
||||
wl_ndev_log(L_DBG, ndev, "%s\n", __func__);
|
||||
#ifdef DFS_MASTER
|
||||
--
|
||||
2.34.1
|
||||
|
||||
Reference in New Issue
Block a user