
Adjust driver bits so it keeps the name of the replaced driver

Signed-off-by: Thomas Backlund <tmb@mageia.org>

---
 drivers/staging/rtl8812au/Kconfig                       |    7 +++----
 drivers/staging/rtl8812au/Makefile                      |    8 ++++----
 drivers/staging/rtl8812au/hal/hal_com.c                 |    2 +-
 drivers/staging/rtl8812au/os_dep/linux/ioctl_cfg80211.c |    2 +-
 4 files changed, 9 insertions(+), 10 deletions(-)

diff -Nurp linux-6.3.4-rtl8812au/drivers/staging/rtl8812au/hal/hal_com.c linux-6.3.4-rtl8812au-rename/drivers/staging/rtl8812au/hal/hal_com.c
--- linux-6.3.4-rtl8812au/drivers/staging/rtl8812au/hal/hal_com.c	2023-05-26 22:35:36.543136899 +0300
+++ linux-6.3.4-rtl8812au-rename/drivers/staging/rtl8812au/hal/hal_com.c	2023-05-26 22:45:07.045079148 +0300
@@ -12719,7 +12719,7 @@ bypass_hw_pg:
 	_rtw_memset(hal_data->EEPROMMACAddr, 0, ETH_ALEN);
 	ret = _FAIL;
 exit:
-	dev_info(&udev->dev, "88XXau %pM hw_info[%02x]", hw_addr, addr_offset);
+	dev_info(&udev->dev, "8812au %pM hw_info[%02x]", hw_addr, addr_offset);
 	return ret;
 }
 
diff -Nurp linux-6.3.4-rtl8812au/drivers/staging/rtl8812au/Kconfig linux-6.3.4-rtl8812au-rename/drivers/staging/rtl8812au/Kconfig
--- linux-6.3.4-rtl8812au/drivers/staging/rtl8812au/Kconfig	2022-01-28 22:59:35.486648197 +0200
+++ linux-6.3.4-rtl8812au-rename/drivers/staging/rtl8812au/Kconfig	2023-05-26 22:45:07.045079148 +0300
@@ -1,6 +1,5 @@
-config 88XXAU
-	tristate "Realtek 88XXau USB WiFi"
+config RTL8812AU
+	tristate "Realtek 8812au USB WiFi"
 	depends on USB
 	help
-	  Help message of 88XXau
-
+	  Help message of 8812au
diff -Nurp linux-6.3.4-rtl8812au/drivers/staging/rtl8812au/Makefile linux-6.3.4-rtl8812au-rename/drivers/staging/rtl8812au/Makefile
--- linux-6.3.4-rtl8812au/drivers/staging/rtl8812au/Makefile	2023-05-26 22:35:36.539136900 +0300
+++ linux-6.3.4-rtl8812au-rename/drivers/staging/rtl8812au/Makefile	2023-05-26 22:45:07.045079148 +0300
@@ -185,9 +185,9 @@ endif
 
 ifeq ($(CONFIG_RTL8812A)_$(CONFIG_RTL8821A)_$(CONFIG_RTL8814A), y_y_y)
 
-EXTRA_CFLAGS += -DDRV_NAME=\"rtl88XXau\"
+EXTRA_CFLAGS += -DDRV_NAME=\"rtl8812au\"
 ifeq ($(CONFIG_USB_HCI), y)
-USER_MODULE_NAME = 88XXau
+USER_MODULE_NAME = 8812au
 endif
 else
 EXTRA_CFLAGS += -DDRV_NAME=\"rtl8812au\"
@@ -1712,11 +1712,11 @@ $(MODULE_NAME)-y += $(_PLATFORM_FILES)
 
 $(MODULE_NAME)-$(CONFIG_MP_INCLUDED) += core/rtw_mp.o
 
-obj-$(CONFIG_88XXAU) := $(MODULE_NAME).o
+obj-$(CONFIG_RTL8812AU) := $(MODULE_NAME).o
 
 else
 
-export CONFIG_88XXAU = m
+export CONFIG_RTL8812AU = m
 
 all: modules
 
diff -Nurp linux-6.3.4-rtl8812au/drivers/staging/rtl8812au/os_dep/linux/ioctl_cfg80211.c linux-6.3.4-rtl8812au-rename/drivers/staging/rtl8812au/os_dep/linux/ioctl_cfg80211.c
--- linux-6.3.4-rtl8812au/drivers/staging/rtl8812au/os_dep/linux/ioctl_cfg80211.c	2023-05-26 22:35:36.547136899 +0300
+++ linux-6.3.4-rtl8812au-rename/drivers/staging/rtl8812au/os_dep/linux/ioctl_cfg80211.c	2023-05-26 22:45:07.046079148 +0300
@@ -2682,7 +2682,7 @@ void rtw_cfg80211_unlink_bss(_adapter *p
 #endif
 
 	if (!wiphy) {
-		pr_info("88XXAU: rtw_cfg80211_unlink_bss: wiphy is NULL\n");
+		pr_info("8812AU: rtw_cfg80211_unlink_bss: wiphy is NULL\n");
 		return;
 	}
 
