34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From c0d16813f5af3b464cdb6dd415c83d1f238e3548 Mon Sep 17 00:00:00 2001
|
|
From: CamiKaseM7 <camilorivasramunni@gmail.com>
|
|
Date: Tue, 16 Jan 2024 03:44:34 -0300
|
|
Subject: [PATCH 122/132] Fix change_beacon for kernel 6.7
|
|
|
|
---
|
|
os_dep/linux/ioctl_cfg80211.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/drivers/staging/rtl8812au/os_dep/linux/ioctl_cfg80211.c b/drivers/staging/rtl8812au/os_dep/linux/ioctl_cfg80211.c
|
|
index 510fa45..a135804 100644
|
|
--- a/drivers/staging/rtl8812au/os_dep/linux/ioctl_cfg80211.c
|
|
+++ b/drivers/staging/rtl8812au/os_dep/linux/ioctl_cfg80211.c
|
|
@@ -5283,9 +5283,16 @@ exit:
|
|
return ret;
|
|
}
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0))
|
|
+static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *ndev,
|
|
+ struct cfg80211_ap_update *params)
|
|
+{
|
|
+ struct cfg80211_beacon_data *info = ¶ms->beacon;
|
|
+#else
|
|
static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *ndev,
|
|
struct cfg80211_beacon_data *info)
|
|
{
|
|
+#endif
|
|
int ret = 0;
|
|
_adapter *adapter = (_adapter *)rtw_netdev_priv(ndev);
|
|
|
|
--
|
|
2.41.1
|
|
|