From: Benjamin Berg Date: Mon, 8 Apr 2024 13:07:00 +0000 (+0300) Subject: ctrl_iface: Allow sending ML probe without AP MLD ID X-Git-Tag: hostap_2_11~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff798fbb83c69cf258198d6ce8993beb5820a701;p=thirdparty%2Fhostap.git ctrl_iface: Allow sending ML probe without AP MLD ID If one sends a Probe Request frame to a non-TX BSSID, no AP MLD ID should be included in the request. Permit mld_id to be -1 so that it is not a required argument and can be left out. Signed-off-by: Benjamin Berg --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index d0fda4cd9..bc013ad99 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -12118,7 +12118,7 @@ static int wpas_ctrl_ml_probe(struct wpa_supplicant *wpa_s, char *cmd) } } - if (mld_id < 0 || is_zero_ether_addr(bssid)) { + if (is_zero_ether_addr(bssid)) { wpa_printf(MSG_DEBUG, "MLD: Failed parsing ML probe request arguments"); return -1;