You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've protected the only memcmp that could have failed in cfg80211_rtw_scan, and now it seems working fine:
diff --git a/ioctl_cfg80211.c b/ioctl_cfg80211.c
index e2fee1d..d6e82d7 100644
--- a/ioctl_cfg80211.c
+++ b/ioctl_cfg80211.c
@@ -2283,7 +2283,7 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy
#ifdef CONFIG_P2P
if (pwdinfo->driver_interface == DRIVER_CFG80211) {
- if (!memcmp(ssids->ssid, "DIRECT-", 7) &&
+ if (ssids && ssids->ssid && !memcmp(ssids->ssid, "DIRECT-", 7) &&
rtw_get_p2p_ie((u8 *)request->ie, request->ie_len, NULL, NULL)) {
if (rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
rtw_p2p_enable(padapter, P2P_ROLE_DEVICE);
Did not push a PR, because I don't know if this is the right way to fix this. I'll leave hostapd running for the next days, to see if the module is stable, and I'll post an update.
Hi,
on Raspberry Pi 3B, I've updated to the latest 5.15.76-v7+ kernel, and now I get a crash as soon as hostapd starts:
Linux ap-down 5.15.76-v7+ #1597 SMP Fri Nov 4 12:13:17 GMT 2022 armv7l GNU/Linux
I'm building HEAD of branch v5.2.2.4, the only change I've applied is
The text was updated successfully, but these errors were encountered: