Possible fix for iwd crash

pull/1078/head
kimocoder 2023-05-01 22:05:27 +02:00
parent ccda185731
commit 96b013c38a
1 changed files with 2 additions and 0 deletions

View File

@ -2810,6 +2810,8 @@ static int rtw_cfg80211_set_probe_req_wpsp2pie(_adapter *padapter, char *buf, in
RTW_INFO("%s, ielen=%d\n", __func__, len);
#endif
if (!pmlmepriv)
return -EINVAL;
if (len > 0) {
wps_ie = rtw_get_wps_ie(buf, len, NULL, &wps_ielen);
if (wps_ie) {