From: Sunil Dutt Date: Thu, 9 May 2019 11:26:45 +0000 (+0530) Subject: P2P: Force p2p-send-action as the next radio work to execute X-Git-Tag: hostap_2_9~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbfd0a263d4f71d5239b938096132b9019ea60ab;p=thirdparty%2Fhostap.git P2P: Force p2p-send-action as the next radio work to execute This increases the priority of the p2p-send-action radio work, i.e., the radio work used for transmitting potentially offchannel P2P Action frames by marking it as the next radio work to execute. This is to avoid the delay in transmissions due to already queued offchannel radio work items in the queue. In particular, this means not having to wait for a pending p2p-scan radio work to be executed before the new P2P Action frame can be transmitted. This helps in avoiding timeouts on the peer device when a P2P Action frames is received during other activity on the device. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 8e260a006..2a8bcc93f 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -1573,7 +1573,7 @@ static int wpas_send_action_work(struct wpa_supplicant *wpa_s, awork->wait_time = wait_time; os_memcpy(awork->buf, buf, len); - if (radio_add_work(wpa_s, freq, "p2p-send-action", 0, + if (radio_add_work(wpa_s, freq, "p2p-send-action", 1, wpas_send_action_cb, awork) < 0) { os_free(awork); return -1;