driver-harness: fix compilation failure with 6.7 kernel as observed with allwinner kernels

This commit is contained in:
Gunjan Gupta
2023-12-23 13:59:36 +05:30
committed by Igor
parent 7595b0a3cb
commit 03cbbdff7b
7 changed files with 286 additions and 1 deletions

View File

@@ -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