-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8656 from heitbaum/linux67
RTL8812AU: Fix change_beacon for kernel 6.7
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
packages/linux-drivers/RTL8812AU/patches/RTL8812AU-PR1134.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,30 @@ | ||
From c0d16813f5af3b464cdb6dd415c83d1f238e3548 Mon Sep 17 00:00:00 2001 | ||
From: CamiKaseM7 <[email protected]> | ||
Date: Tue, 16 Jan 2024 03:44:34 -0300 | ||
Subject: [PATCH] Fix change_beacon for kernel 6.7 | ||
|
||
--- | ||
os_dep/linux/ioctl_cfg80211.c | 7 +++++++ | ||
1 file changed, 7 insertions(+) | ||
|
||
diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c | ||
index 510fa4547..a1358047d 100644 | ||
--- a/os_dep/linux/ioctl_cfg80211.c | ||
+++ b/os_dep/linux/ioctl_cfg80211.c | ||
@@ -5283,9 +5283,16 @@ static int cfg80211_rtw_start_ap(struct wiphy *wiphy, struct net_device *ndev, | ||
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); | ||
|