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.
This commit is contained in:
James Prestwood 2023-11-16 07:44:38 -08:00 committed by Denis Kenzior
parent 3c02f387cb
commit aa116ba522
1 changed files with 3 additions and 0 deletions

View File

@ -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: