[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231128083115.613235-9-yu-hao.lin@nxp.com>
Date: Tue, 28 Nov 2023 16:31:11 +0800
From: David Lin <yu-hao.lin@....com>
To: linux-wireless@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, briannorris@...omium.org,
kvalo@...nel.org, francesco@...cini.it, tsung-hsien.hsieh@....com,
David Lin <yu-hao.lin@....com>
Subject: [PATCH v7 08/12] wifi: mwifiex: fixed the way to handle assoc timeout.
Without this patch, if there is no association response from AP with host
mlme enabled, kernel oops will occur.
Signed-off-by: David Lin <yu-hao.lin@....com>
---
drivers/net/wireless/marvell/mwifiex/join.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/wireless/marvell/mwifiex/join.c b/drivers/net/wireless/marvell/mwifiex/join.c
index ef7cc40c3ba4..00720c6840ef 100644
--- a/drivers/net/wireless/marvell/mwifiex/join.c
+++ b/drivers/net/wireless/marvell/mwifiex/join.c
@@ -723,6 +723,9 @@ int mwifiex_ret_802_11_associate(struct mwifiex_private *priv,
mwifiex_dbg(priv->adapter, ERROR,
"ASSOC_RESP: UNSPECIFIED failure\n");
}
+
+ if (priv->adapter->host_mlme)
+ priv->assoc_rsp_size = 0;
} else {
ret = status_code;
}
--
2.25.1
Powered by blists - more mailing lists