From cbfd0a263d4f71d5239b938096132b9019ea60ab Mon Sep 17 00:00:00 2001 From: Sunil Dutt Date: Thu, 9 May 2019 16:56:45 +0530 Subject: [PATCH] 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 --- wpa_supplicant/p2p_supplicant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;