3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-13 23:49:23 +01:00

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

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: