From f20f29966885f1e6816a7798b8e0f4e2225965de Mon Sep 17 00:00:00 2001 From: d3vilh Date: Sun, 19 Feb 2023 11:40:46 +0200 Subject: [PATCH] patch for "rtw_sctx_wait timeout: dump_mgntframe_and_wait" https://lkml.org/lkml/2022/11/6/275 --- .gitignore | 1 + os_dep/linux/ioctl_linux.c | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/os_dep/linux/ioctl_linux.c b/os_dep/linux/ioctl_linux.c index c60f87f..3aba2be 100644 --- a/os_dep/linux/ioctl_linux.c +++ b/os_dep/linux/ioctl_linux.c @@ -10519,10 +10519,12 @@ static int rtw_priv_get(struct net_device *dev, return -ENETDOWN; } + /* patch for "rtw_sctx_wait timeout: dump_mgntframe_and_wait" https://lkml.org/lkml/2022/11/6/275 if (RTW_CANNOT_RUN(padapter)) { RTW_INFO("%s fail =>(padapter->bSurpriseRemoved == _TRUE) || ( padapter->bDriverStopped == _TRUE)\n", __func__); return -ENETDOWN; } + */ if (extra == NULL) { wrqu->length = 0;