pull/22/head
Victor Kustov 1 year ago
parent 383dd77cb9
commit 636356ea5c

@ -1,2 +1,2 @@
DIST rtl8814au-20210429.zip 3013417 BLAKE2B 8fcec2064b0af092e93446f8041e3849ae0162429849fe15270f24d231f3b6a208e47f1beff3762cc0973e7ade0a625a2a5893856ad474b39a491df43d02707a SHA512 4a999708706d29f0ca490d94a269285eb9a4e61bba28401187caefe8c5ef5565306f4cd8b96b906d66b52265e93c28394cd01132c55238542c656b6064a1f97a
DIST rtl8814au-20211122.zip 3024517 BLAKE2B 782d5a99a20a49e44767fc024ea6bfa99617b5ef7d4d2ef44978cb2e9603c918b7ff21ddd249367f47fe1637fb0997e4a727464a19847cc783991ddb2f6a5daa SHA512 a9481272875c620d3449d3243b2c1e97427c15f0c072aabc84db95ec817169eb5a4baac6cbfc230a95bb9c18cb880c96e2a10532ff891147c9af4e27c2185250
DIST rtl8814au-20211122.tar.gz 2648090 BLAKE2B 4326ccf897903922a1d8efc34756a6dba70b0dd103909ecbc89b1714c25f9f03edfaad5816f5d00336091647254e188a286768996b0e042051df878fc477c1ba SHA512 dc39d0a0fcd275407fa3a4751611172629d9018f6fc5535ecae26d8ff44de5e374a708407a49ce3bce22adee4fee0a96f21e6d5b13dac667c63073b79008b513

@ -0,0 +1,27 @@
diff --git a/core/efuse/rtw_efuse.c b/core/efuse/rtw_efuse.c
index a357253..667f5f8 100755
--- a/core/efuse/rtw_efuse.c
+++ b/core/efuse/rtw_efuse.c
@@ -3204,7 +3204,9 @@ int storeAdaptorInfoFile(char *path, u8 *efuse_data)
int retriveAdaptorInfoFile(char *path, u8 *efuse_data)
{
int ret = _SUCCESS;
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0))
mm_segment_t oldfs;
+#endif
struct file *fp;
if (path && efuse_data) {
diff --git a/core/rtw_ieee80211.c b/core/rtw_ieee80211.c
index 846df87..1d15677 100755
--- a/core/rtw_ieee80211.c
+++ b/core/rtw_ieee80211.c
@@ -1522,7 +1522,9 @@ int rtw_get_mac_addr_intel(unsigned char *buf)
int ret = 0;
int i;
struct file *fp = NULL;
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0))
mm_segment_t oldfs;
+#endif
unsigned char c_mac[MAC_ADDRESS_LEN];
char fname[] = "/config/wifi/mac.txt";

@ -1,21 +1,19 @@
# Copyright 1999-2019 Gentoo Foundation
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit linux-mod
COMMIT="6d49275ba594ce7a1593851d17b97beddbb5179b"
DESCRIPTION="Realtek 8814AU USB WiFi module for Linux kernel"
HOMEPAGE="https://github.com/morrownr/8814au"
SRC_URI="https://github.com/morrownr/8814au/archive/${COMMIT}.zip -> rtl8814au-${PV}.zip"
SRC_URI="https://github.com/morrownr/8814au/archive/${COMMIT}.tar.gz -> rtl8814au-${PV}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64"
DEPEND="virtual/linux-sources
app-arch/unzip"
RDEPEND=""
DEPEND="virtual/linux-sources"
S="${WORKDIR}/8814au-${COMMIT}"
@ -23,26 +21,9 @@ MODULE_NAMES="8814au(net/wireless)"
BUILD_TARGETS="all"
BUILD_TARGET_ARCH="${ARCH}"
src_unpack() {
unpack "${A}"
cd "${S}"
epatch "${FILESDIR}/rtl-20201228-kernel-5.10.patch"
}
PATCHES=( "${FILESDIR}/rtl-${PV}-kernel-5.10.patch" )
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="KERN_DIR=${KV_DIR} KSRC=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
}
src_compile(){
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
}
pkg_postinst() {
linux-mod_pkg_postinst
}
Loading…
Cancel
Save