From: Jouni Malinen Date: Mon, 18 Dec 2023 22:28:30 +0000 (+0200) Subject: nl80211: Do not set socket owner for NL80211_CMD_LEAVE_IBSS X-Git-Tag: hostap_2_11~616 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2e6a395cc695af5095c5810efe2d6f7aa4cc286;p=thirdparty%2Fhostap.git nl80211: Do not set socket owner for NL80211_CMD_LEAVE_IBSS This operation terminates the IBSS and as such, does not really use NL80211_ATTR_SOCKET_OWNER. Signed-off-by: Jouni Malinen --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index ec1c5c966..470e8edfd 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -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 "