]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Force p2p-send-action as the next radio work to execute
authorSunil Dutt <usdutt@codeaurora.org>
Thu, 9 May 2019 11:26:45 +0000 (16:56 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 31 May 2019 13:52:15 +0000 (16:52 +0300)
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 <jouni@codeaurora.org>
wpa_supplicant/p2p_supplicant.c

index 8e260a006260bdfcc6b418288d32bbbb53831abf..2a8bcc93f5c590151f4a2b1e785ef23f8195f4ee 100644 (file)
@@ -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;