eiwd

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

commit 5cdad6ab86306bcb0f6baf704c90291e8384e61a
parent 30ca00d2c4a7aae2a983d8f80e7b98aa00c3dee1
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed, 24 Jul 2024 08:46:38 -0700

station: add station_get_autoconnect

Gets the current autoconenct setting. This is not the current
autoconnect state. Will be used in DPP to reset station's autoconnect
setting back to what it was prior to DPP, in case of failure.

Diffstat:
Msrc/station.c | 5+++++
Msrc/station.h | 1+
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/station.c b/src/station.c @@ -1726,6 +1726,11 @@ bool station_set_autoconnect(struct station *station, bool autoconnect) return true; } +bool station_get_autoconnect(struct station *station) +{ + return station->autoconnect; +} + static void station_roam_state_clear(struct station *station) { l_debug("%u", netdev_get_ifindex(station->netdev)); diff --git a/src/station.h b/src/station.h @@ -88,6 +88,7 @@ uint32_t station_add_event_watch(station_event_watch_func_t func, void station_remove_event_watch(uint32_t id); bool station_set_autoconnect(struct station *station, bool autoconnect); +bool station_get_autoconnect(struct station *station); int __station_connect_network(struct station *station, struct network *network, struct scan_bss *bss, enum station_state state);