rtl8188eu: Possible fix for iwd crash

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2023-04-09 12:54:37 -05:00
parent 1201a7a51f
commit 57bd21c563

View file

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