eiwd

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

commit aa116ba5229a2b355db2898c518da01e0c4a918b
parent 3c02f387cb7c19c7d6bb307d023f57cfb69c86f8
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 16 Nov 2023 07:44:38 -0800

dpp: check that DPP is running in station watch

This was causing unneeded WARNING prints because the DPP state
was never checked. Fix this and bail out if DPP isn't running.

Diffstat:
Msrc/dpp.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/dpp.c b/src/dpp.c @@ -3681,6 +3681,9 @@ static void dpp_station_state_watch(enum station_state state, void *user_data) { struct dpp_sm *dpp = user_data; + if (dpp->state == DPP_STATE_NOTHING) + return; + switch (state) { case STATION_STATE_DISCONNECTED: case STATION_STATE_DISCONNECTING: