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: