]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
NAN: Fix UpdatePublish offload to driver
authorJouni Malinen <quic_jouni@quicinc.com>
Sat, 14 Sep 2024 11:11:40 +0000 (14:11 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 14 Sep 2024 11:12:46 +0000 (14:12 +0300)
This was supposed to call wpa_drv_nan_update_publish() instead of
wpa_drv_nan_cancel_publish().

Fixes: 633e969311ed ("NAN: Option to offload NAN DE for USD into the driver")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wpa_supplicant/nan_usd.c

index ae152356d2224462ff312419d27a648eb9a54453..98c44c03905144020a1ede103629edcc8ff09375 100644 (file)
@@ -410,7 +410,7 @@ int wpas_nan_usd_update_publish(struct wpa_supplicant *wpa_s, int publish_id,
                return -1;
        ret = nan_de_update_publish(wpa_s->nan_de, publish_id, ssi);
        if (ret == 0 && (wpa_s->drv_flags2 & WPA_DRIVER_FLAGS2_NAN_OFFLOAD) &&
-           wpas_drv_nan_cancel_publish(wpa_s, publish_id) < 0)
+           wpas_drv_nan_update_publish(wpa_s, publish_id, ssi) < 0)
                return -1;
        return ret;
 }