[PATCH] p2p: call normal SD query callback on RX/TX race

Jouni Malinen j at w1.fi
Sun Apr 21 02:08:56 PDT 2024


On Wed, Apr 17, 2024 at 03:45:24PM +0300, Andrei Otcheretianski wrote:
> If the TX success response races with the RX frame then the state
> machine was simply move to P2P_SD_DURING_FIND to continue the operation.
> However, this does not take into account broadcast queries where the
> callback handler updates the peer's sd_pending_bcast_queries.
> 
> Fix this by exporting the callback and calling it directly. This is
> fine, as the operation is cancelled immediately afterwards, ensuring
> that the callback is not called a second time.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list