rtl88x2bu-openhd-dkms-git: fix build on recent kernels

This commit is contained in:
Rihards Skuja 2024-02-29 12:32:09 +02:00
parent 18f5d279c1
commit 88371d0fbb
Signed by: rhssk
GPG Key ID: E3BF73E10BFF4DF3
3 changed files with 48 additions and 6 deletions

View File

@ -1,7 +1,7 @@
pkgbase = rtl88x2bu-openhd-dkms-git
pkgdesc = Realtek RTL88x2BU WiFi USB driver (with OpenHD patches)
pkgver = 5.13.1.r214.g7a54b83
pkgrel = 2
pkgver = 5.13.1.r222.gaad91d6
pkgrel = 3
url = https://github.com/OpenHD/rtl88x2bu
arch = any
license = GPL2
@ -9,6 +9,8 @@ pkgbase = rtl88x2bu-openhd-dkms-git
depends = dkms
depends = bc
source = git+https://github.com/OpenHD/rtl88x2bu.git
source = 0001-Update-beacon-change-signature-to-fix-build-on-recen.patch
sha256sums = SKIP
sha256sums = 24f7ce0d221b12cd61d9b89608babba379dcfa97d298e71d50669e10ba619645
pkgname = rtl88x2bu-openhd-dkms-git

View File

@ -0,0 +1,34 @@
From bc7c89d0bb4294165879261cc54555bf40267947 Mon Sep 17 00:00:00 2001
From: Rihards Skuja <rihards@skuja.eu>
Date: Thu, 29 Feb 2024 12:37:52 +0200
Subject: [PATCH] Update beacon change signature to fix build on recent kernels
---
os_dep/linux/ioctl_cfg80211.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
index 30b1f66..302cdde 100644
--- a/os_dep/linux/ioctl_cfg80211.c
+++ b/os_dep/linux/ioctl_cfg80211.c
@@ -5404,14 +5404,15 @@ exit:
}
static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *ndev,
- struct cfg80211_beacon_data *info)
+ struct cfg80211_ap_update *info)
{
int ret = 0;
_adapter *adapter = (_adapter *)rtw_netdev_priv(ndev);
RTW_INFO(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
- ret = rtw_add_beacon(adapter, info->head, info->head_len, info->tail, info->tail_len);
+ ret = rtw_add_beacon(adapter, info->beacon.head, info->beacon.head_len,
+ info->beacon.tail, info->beacon.tail_len);
return ret;
}
--
2.44.0

View File

@ -2,23 +2,29 @@
pkgname=rtl88x2bu-openhd-dkms-git
_modname=88x2bu_ohd
pkgver=5.13.1.r214.g7a54b83
pkgver=5.13.1.r222.gaad91d6
_pkgver=5.13.1
pkgrel=2
pkgrel=3
pkgdesc='Realtek RTL88x2BU WiFi USB driver (with OpenHD patches)'
arch=(any)
url='https://github.com/OpenHD/rtl88x2bu'
license=(GPL2)
depends=(dkms bc)
makedepends=(git)
source=('git+https://github.com/OpenHD/rtl88x2bu.git')
sha256sums=('SKIP')
source=('git+https://github.com/OpenHD/rtl88x2bu.git' '0001-Update-beacon-change-signature-to-fix-build-on-recen.patch')
sha256sums=('SKIP'
'24f7ce0d221b12cd61d9b89608babba379dcfa97d298e71d50669e10ba619645')
pkgver() {
cd "${srcdir}/rtl88x2bu"
printf '%s.r%s.g%s' "${_pkgver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd "${srcdir}/rtl88x2bu"
patch -p1 -i "$srcdir/0001-Update-beacon-change-signature-to-fix-build-on-recen.patch"
}
package() {
cd "${srcdir}/rtl88x2bu"
mkdir -p "${pkgdir}/usr/src/${_modname}-${pkgver}"