Message ID | 20231116154439.33880-1-prestwoj@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [1/2] dpp: check that DPP is running in station watch | expand |
Hi James, On 11/16/23 09:44, James Prestwood wrote: > This was causing unneeded WARNING prints because the DPP state > was never checked. Fix this and bail out if DPP isn't running. > --- > src/dpp.c | 3 +++ > 1 file changed, 3 insertions(+) > Applied, thanks. Regards, -Denis
diff --git a/src/dpp.c b/src/dpp.c index 5cf9ca23..18b2a7c6 100644 --- a/src/dpp.c +++ b/src/dpp.c @@ -3686,6 +3686,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: