diff --git a/Makefile b/Makefile index 46d1dfac..d40cc580 100755 --- a/Makefile +++ b/Makefile @@ -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 @@ -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),) diff --git a/build_install_no_kms.sh b/build_install_no_kms.sh index ced116df..c22f800d 100755 --- a/build_install_no_kms.sh +++ b/build_install_no_kms.sh @@ -4,6 +4,6 @@ make make -sudo rmmod 88XXau_wfb +sudo rmmod 88XXau_ohd -sudo insmod 88XXau_wfb.ko +sudo insmod 88XXau_ohd.ko diff --git a/dkms.conf b/dkms.conf index 2fdac728..3b8e04f2 100644 --- a/dkms.conf +++ b/dkms.conf @@ -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" diff --git a/os_dep/linux/ioctl_linux.c b/os_dep/linux/ioctl_linux.c index 84549b0b..2c288b12 100644 --- a/os_dep/linux/ioctl_linux.c +++ b/os_dep/linux/ioctl_linux.c @@ -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 */