]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
ctrl_iface: Allow sending ML probe without AP MLD ID
authorBenjamin Berg <benjamin.berg@intel.com>
Mon, 8 Apr 2024 13:07:00 +0000 (16:07 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 21 Apr 2024 08:55:53 +0000 (11:55 +0300)
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 <benjamin.berg@intel.com>
wpa_supplicant/ctrl_iface.c

index d0fda4cd9eca82505ffe4e83f16e5a7d92caa0a7..bc013ad995c1327eec68b63b14d1dd9279d7d766 100644 (file)
@@ -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;