diff mbox series

[v2,01/15] station: add station_get_autoconnect

Message ID 20231026202657.183591-2-prestwoj@gmail.com (mailing list archive)
State New
Headers show
Series DPP PKEX Changes | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-alpine-ci-fetch success Fetch PR
prestwoj/iwd-ci-fetch success Fetch PR
prestwoj/iwd-ci-gitlint success GitLint
prestwoj/iwd-alpine-ci-makedistcheck success Make Distcheck
prestwoj/iwd-alpine-ci-build success Build - Configure
prestwoj/iwd-ci-makedistcheck success Make Distcheck
prestwoj/iwd-ci-build success Build - Configure
prestwoj/iwd-ci-clang fail Clang IWD - make FAIL: src/dpp.c:1028:20: error: overlapping comparisons always evaluate to true [-Werror,-Wtautological-overlap-compare] (ptr[2] != 0x7f || ptr[2] != 0x00) || ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ src/dpp.c:3101:47: error: unused variable 'a' [-Werror,-Wunused-variable] _auto_(l_ecc_point_free) struct l_ecc_point *a = NULL; ^ 2 errors generated. make[1]: *** [Makefile:2532: src/dpp.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1709: all] Error 2
prestwoj/iwd-alpine-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-alpine-ci-makecheck success Make Check
prestwoj/iwd-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-ci-makecheck success Make Check
prestwoj/iwd-alpine-ci-incremental_build success Incremental Build with patches
prestwoj/iwd-ci-incremental_build success Incremental Build with patches
prestwoj/iwd-ci-testrunner success test-runner PASS

Commit Message

James Prestwood Oct. 26, 2023, 8:26 p.m. UTC
Getter for stations current autoconnect state
---
 src/station.c | 5 +++++
 src/station.h | 1 +
 2 files changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/src/station.c b/src/station.c
index 9b224e5a..2b88335c 100644
--- a/src/station.c
+++ b/src/station.c
@@ -1697,6 +1697,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
index 24fab321..776641c6 100644
--- a/src/station.h
+++ b/src/station.h
@@ -87,6 +87,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);