eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit dc38964e42eb4f5439ce666a433f6869ce63cab7
parent 3345c56fbba8935fa71393e00d8f38291a2553af
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Wed,  1 Mar 2023 09:35:48 -0600

station: Use ft_authenticate_onchannel

In the case that the FT target is on the same channel as we're currently
operating on, use ft_authenticate_onchannel instead of ft_authenticate.
Going offchannel in this case can confuse some drivers.

Diffstat:
Msrc/station.c | 15++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/station.c b/src/station.c @@ -2298,12 +2298,21 @@ static bool station_fast_transition(struct station *station, } /* Both ft_action/ft_authenticate will gate the associate work item */ - if ((hs->mde[4] & 1)) + if ((hs->mde[4] & 1)) { ft_action(netdev_get_ifindex(station->netdev), station->connected_bss->frequency, bss); - else - ft_authenticate(netdev_get_ifindex(station->netdev), bss); + goto done; + } + + if (station->connected_bss->frequency == bss->frequency) { + ft_authenticate_onchannel(netdev_get_ifindex(station->netdev), + bss); + goto done; + } + ft_authenticate(netdev_get_ifindex(station->netdev), bss); + +done: wiphy_radio_work_insert(station->wiphy, &station->ft_work, WIPHY_WORK_PRIORITY_CONNECT, &ft_work_ops);