From 042be598f158d60912cabd4f10080513ed9bb505 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Mon, 1 Jan 2024 23:06:38 +0100 Subject: [PATCH] starting hacks ;) --- os_dep/linux/ioctl_linux.c | 4 ++-- os_dep/linux/os_intfs.c | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/os_dep/linux/ioctl_linux.c b/os_dep/linux/ioctl_linux.c index f8c6669..203b58b 100644 --- a/os_dep/linux/ioctl_linux.c +++ b/os_dep/linux/ioctl_linux.c @@ -3085,9 +3085,9 @@ static int rtw_wx_get_nick(struct net_device *dev, /* struct security_priv *psecuritypriv = &padapter->securitypriv; */ if (extra) { - wrqu->data.length = 14; + wrqu->data.length = 16; wrqu->data.flags = 1; - _rtw_memcpy(extra, "", 14); + _rtw_memcpy(extra, "rtl8852bu_openhd", 16); } /* rtw_signal_process(pid, SIGUSR1); */ /* for test */ diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index b776934..712f45e 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -1188,6 +1188,14 @@ u8 rtw_reset_drv_sw(_adapter *padapter) return ret8; } + // OpenHD params + int openhd_override_channel = 0; + module_param(openhd_override_channel, int, 0644); + MODULE_PARM_DESC(openhd_override_channel, "OpenHD easy (CRDA workaround)"); + int openhd_override_tx_power_mbm = 0; + module_param(openhd_override_tx_power_mbm, int, 0644); + MODULE_PARM_DESC(openhd_override_tx_power_mbm, "OpenHD easy (CRDA workaround)"); + static void devobj_decide_init_chplan(struct dvobj_priv *dvobj) { struct rf_ctl_t *rfctl = dvobj_to_rfctl(dvobj);