Skip to content

Commit

Permalink
rename driver
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Dec 23, 2023
1 parent b53cb60 commit 04ac85a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 24 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ endif

ifeq ($(CONFIG_RTL8812A)_$(CONFIG_RTL8821A)_$(CONFIG_RTL8814A), y_y_y)

EXTRA_CFLAGS += -DDRV_NAME=\"rtl88xxau_wfb\"
EXTRA_CFLAGS += -DDRV_NAME=\"rtl88xxau_ohd\"
ifeq ($(CONFIG_USB_HCI), y)
USER_MODULE_NAME = 88XXau
endif
Expand Down Expand Up @@ -1536,7 +1536,7 @@ endif

USER_MODULE_NAME ?=
ifneq ($(USER_MODULE_NAME),)
MODULE_NAME := $(USER_MODULE_NAME)_wfb
MODULE_NAME := $(USER_MODULE_NAME)_ohd
endif

ifneq ($(KERNELRELEASE),)
Expand Down
4 changes: 2 additions & 2 deletions build_install_no_kms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
make
make

sudo rmmod 88XXau_wfb
sudo rmmod 88XXau_ohd

sudo insmod 88XXau_wfb.ko
sudo insmod 88XXau_ohd.ko
2 changes: 1 addition & 1 deletion dkms.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PACKAGE_NAME="realtek-rtl88xxau"
PACKAGE_VERSION="5.2.20.2~20190429"
CLEAN="'make' clean"
BUILT_MODULE_NAME[0]=88XXau_wfb
BUILT_MODULE_NAME[0]=88XXau_ohd
PROCS_NUM=`nproc`
[ $PROCS_NUM -gt 16 ] && PROCS_NUM=16
DEST_MODULE_LOCATION[0]="/updates"
Expand Down
24 changes: 5 additions & 19 deletions os_dep/linux/ioctl_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -3252,25 +3252,11 @@ static int rtw_wx_get_nick(struct net_device *dev,
/* struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); */
/* struct security_priv *psecuritypriv = &padapter->securitypriv; */

if (extra) {
wrqu->data.length = 23;
wrqu->data.flags = 1;

// Compile-time date and time strings
const char* compile_date = __DATE__;
const char* compile_time = __TIME__;

// Extract day, month, and year from the compile_date string
int compile_day, compile_month, compile_year;
sscanf(compile_date, "%s %d %d", NULL, &compile_month, &compile_day, &compile_year);

// Format the compile date as ddmmyy
char date_str[7];
sprintf(date_str, "%02d%02d%02d", compile_day, compile_month, compile_year % 100);

_rtw_memcpy(extra, "rtl8812au_openhd_", 17);
_rtw_memcpy(extra + 17, date_str, 6);
}
if (extra) {
wrqu->data.length = 16;
wrqu->data.flags = 1;
_rtw_memcpy(extra, "rtl8812au_openhd", 16);
}

/* rtw_signal_process(pid, SIGUSR1); */ /* for test */

Expand Down

0 comments on commit 04ac85a

Please sign in to comment.