From 7f61526ec2ef5cbf415e04840afb06f076bf239a Mon Sep 17 00:00:00 2001 From: James Deng Date: Thu, 30 May 2024 23:19:42 +0800 Subject: [PATCH] Update for v1.0 --- core/rtw_sta_mgt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/rtw_sta_mgt.c b/core/rtw_sta_mgt.c index 2175434..1b2f791 100644 --- a/core/rtw_sta_mgt.c +++ b/core/rtw_sta_mgt.c @@ -1335,7 +1335,8 @@ u32 rtw_init_self_stainfo(_adapter *padapter, enum phl_cmd_type cmd_type) goto exit; } } - main_id = psta->phl_sta->macid; + if (psta->phl_sta) + main_id = psta->phl_sta->macid; } /* self mld and self stainfo, no need to link again */ exit: