Skip to content

Commit d588341

Browse files
committed
Merge remote-tracking branch 'morrownr/main' into HEAD
2 parents 9926151 + 9f2b657 commit d588341

File tree

7 files changed

+22
-10
lines changed

7 files changed

+22
-10
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ EXTRA_CFLAGS += -Wno-unused-variable
1919
EXTRA_CFLAGS += -Wno-implicit-fallthrough
2020
#EXTRA_CFLAGS += -Wno-return-type
2121
#EXTRA_CFLAGS += -Wno-discarded-qualifiers
22+
EXTRA_CFLAGS += -Wno-missing-prototypes
23+
EXTRA_CFLAGS += -Wno-missing-declarations
2224

2325
# Activates Concurrent Mode if uncommented
2426
#EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -409,13 +409,17 @@ compile the kernel that is in use:
409409

410410
Example of bad situation:
411411

412+
```
412413
gcc 12.1 (used to compile the kernel)
413414
gcc 10.3 (version of gcc in use)
415+
```
414416

415417
Example of good situation:
416418

419+
```
417420
gcc 12.2 (used to compile the kernel)
418421
gcc 12.1 (version of gcc in use)
422+
```
419423

420424
To determine the values:
421425

dkms-make.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# run from another script.
55

66
# SMEM needs to be set here if dkms build is not initiated by install-driver.sh
7-
SMEM=$(LANG=C free | awk '/Mem:/ { print $2 }')
7+
SMEM=$(LC_ALL=C free | awk '/Mem:/ { print $2 }')
88

99
# sproc needs to be set here if dkms build is not initiated by install-driver.sh
1010
sproc=$(nproc)

install-driver.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
# GNU General Public License for more details.
2929

3030
SCRIPT_NAME="install-driver.sh"
31-
SCRIPT_VERSION="20231001"
31+
SCRIPT_VERSION="20231115"
3232

33-
DRV_NAME="rt8821au"
33+
MODULE_NAME="8821au"
34+
35+
DRV_NAME="rtl8821au"
3436
DRV_VERSION="5.12.5.2"
3537
DRV_DIR="$(pwd)"
3638

37-
MODULE_NAME="8821au"
38-
3939
OPTIONS_FILE="${MODULE_NAME}.conf"
4040

4141
#KARCH="$(uname -m)"
@@ -157,7 +157,7 @@ echo ": ${KARCH} (kernel architecture)"
157157
# display architecture to send to gcc
158158
echo ": ${GARCH} (architecture to send to gcc)"
159159

160-
SMEM=$(LANG=C free | awk '/Mem:/ { print $2 }')
160+
SMEM=$(LC_ALL=C free | awk '/Mem:/ { print $2 }')
161161
sproc=$(nproc)
162162
# avoid Out of Memory condition in low-RAM systems by limiting core usage
163163
if [ "$sproc" -gt 1 ]; then

os_dep/linux/os_intfs.c

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
#include <drv_types.h>
1818
#include <hal_data.h>
1919

20+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0))
21+
#define strlcpy strscpy
22+
#endif
23+
2024
MODULE_LICENSE("GPL");
2125
MODULE_DESCRIPTION("Realtek Wireless Lan Driver");
2226
MODULE_AUTHOR("Realtek Semiconductor Corp.");

os_dep/linux/usb_intf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ struct rtw_usb_drv usb_drv = {
355355
.usbdrv.reset_resume = rtw_resume,
356356
#endif
357357

358-
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19))
358+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 8, 0))
359359
.usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown,
360360
#else
361361
.usbdrv.driver.shutdown = rtw_dev_shutdown,

remove-driver.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@
2828
# GNU General Public License for more details.
2929

3030
SCRIPT_NAME="remove-driver.sh"
31-
SCRIPT_VERSION="20230830"
31+
SCRIPT_VERSION="20231118"
32+
33+
MODULE_NAME="8821au"
3234

3335
DRV_NAME="rtl8821au"
3436
DRV_VERSION="5.12.5.2"
35-
MODULE_NAME="8821au"
37+
38+
OPTIONS_FILE="${MODULE_NAME}.conf"
3639

3740
#KARCH="$(uname -m)"
3841
if [ -z "${KARCH+1}" ]; then
@@ -45,7 +48,6 @@ if [ -z "${KVER+1}" ]; then
4548
fi
4649

4750
MODDESTDIR="/lib/modules/${KVER}/kernel/drivers/net/wireless/"
48-
OPTIONS_FILE="${MODULE_NAME}.conf"
4951

5052
# check to ensure sudo or su - was used to start the script
5153
if [ "$(id -u)" -ne 0 ]; then

0 commit comments

Comments
 (0)