]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Do not set socket owner for NL80211_CMD_LEAVE_IBSS
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 18 Dec 2023 22:28:30 +0000 (00:28 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 18 Dec 2023 22:28:30 +0000 (00:28 +0200)
This operation terminates the IBSS and as such, does not really use
NL80211_ATTR_SOCKET_OWNER.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/drivers/driver_nl80211.c

index ec1c5c966ece6729c5a52d0802eb206b257ceae0..470e8edfd66775e55dcba7b9c989484dcda1dfb0 100644 (file)
@@ -6442,7 +6442,7 @@ static int nl80211_leave_ibss(struct wpa_driver_nl80211_data *drv,
        int ret;
 
        msg = nl80211_drv_msg(drv, 0, NL80211_CMD_LEAVE_IBSS);
-       ret = send_and_recv_msgs_connect_handle(drv, msg, drv->first_bss, 1,
+       ret = send_and_recv_msgs_connect_handle(drv, msg, drv->first_bss, 0,
                                                NULL);
        if (ret) {
                wpa_printf(MSG_DEBUG, "nl80211: Leave IBSS failed: ret=%d "