From 28580eb16a0b43c247f3594e97e1092f364e2aa5 Mon Sep 17 00:00:00 2001 From: Pete A Date: Sat, 16 Mar 2024 11:30:27 +0000 Subject: [PATCH] Fixes to allow various options to compile --- hal/rtl8814a/usb/rtl8814au_xmit.c | 2 +- os_dep/linux/os_intfs.c | 1 + os_dep/linux/usb_ops_linux.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hal/rtl8814a/usb/rtl8814au_xmit.c b/hal/rtl8814a/usb/rtl8814au_xmit.c index be88b81e..21713939 100644 --- a/hal/rtl8814a/usb/rtl8814au_xmit.c +++ b/hal/rtl8814a/usb/rtl8814au_xmit.c @@ -374,7 +374,7 @@ s32 rtl8814au_xmit_buf_handler(PADAPTER padapter) , ("%s: bDriverStopped(%s) bSurpriseRemoved(%s)!\n" , __func__ , rtw_is_drv_stopped(padapter)?"True":"False" - , rtw_is_surprise_removed(padapter)?"True":"False"); + , rtw_is_surprise_removed(padapter)?"True":"False")); return _FAIL; } diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index 4bd3a081..be684227 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -2635,6 +2635,7 @@ static int netdev_vir_if_close(struct net_device *pnetdev) #endif #ifdef CONFIG_IOCTL_CFG80211 + struct wireless_dev *wdev = padapter->rtw_wdev; wdev->iftype = NL80211_IFTYPE_MONITOR; wdev->current_bss = NULL; rtw_scan_abort(padapter); diff --git a/os_dep/linux/usb_ops_linux.c b/os_dep/linux/usb_ops_linux.c index 7dba139d..1f9825d3 100644 --- a/os_dep/linux/usb_ops_linux.c +++ b/os_dep/linux/usb_ops_linux.c @@ -223,7 +223,7 @@ int _usbctrl_vendorreq_async_write(struct usb_device *udev, u8 request, reqtype = REALTEK_USB_VENQT_WRITE; } - buf = (struct rtl819x_async_write_data *)rtw_zmalloc(sizeof(*buf)); + buf = (struct rtw_async_write_data *)rtw_zmalloc(sizeof(*buf)); if (!buf) { rc = -ENOMEM; goto exit;