* [PATCH] netdev: set connected to false in netdev_reassociate
@ 2021-04-30 21:15 James Prestwood
2021-04-30 21:22 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: James Prestwood @ 2021-04-30 21:15 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 994 bytes --]
Commit 1fe5070 added a workaround for drivers which may send the
connect event prior to the connect callback/ack. This caused IWD
to fail to start eapol if reassociation was used due to
netdev_reassociate never setting netdev->connected = false.
netdev_reassociate uses the same code path as normal connections,
but when the connect callback came in connected was already set
to true which then prevents eapol from being registered. Then,
once the connect event comes in, there is no frame watch for
eapol and IWD doesn't respond to any handshake frames.
---
src/netdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/netdev.c b/src/netdev.c
index 7a3f15e3..4fbe813a 100644
--- a/src/netdev.c
+++ b/src/netdev.c
@@ -3449,6 +3449,7 @@ int netdev_reassociate(struct netdev *netdev, struct scan_bss *target_bss,
netdev->associated = false;
netdev->operational = false;
+ netdev->connected = false;
netdev_rssi_polling_update(netdev);
--
2.26.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] netdev: set connected to false in netdev_reassociate
2021-04-30 21:15 [PATCH] netdev: set connected to false in netdev_reassociate James Prestwood
@ 2021-04-30 21:22 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2021-04-30 21:22 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 754 bytes --]
Hi James,
On 4/30/21 4:15 PM, James Prestwood wrote:
> Commit 1fe5070 added a workaround for drivers which may send the
> connect event prior to the connect callback/ack. This caused IWD
> to fail to start eapol if reassociation was used due to
> netdev_reassociate never setting netdev->connected = false.
>
> netdev_reassociate uses the same code path as normal connections,
> but when the connect callback came in connected was already set
> to true which then prevents eapol from being registered. Then,
> once the connect event comes in, there is no frame watch for
> eapol and IWD doesn't respond to any handshake frames.
> ---
> src/netdev.c | 1 +
> 1 file changed, 1 insertion(+)
>
Applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-30 21:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-30 21:15 [PATCH] netdev: set connected to false in netdev_reassociate James Prestwood
2021-04-30 21:22 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.