summaryrefslogtreecommitdiff
path: root/src/supplicant/nm-supplicant-interface.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-03-20 12:22:00 +0100
committerThomas Haller <thaller@redhat.com>2020-04-03 11:26:49 +0200
commit2011392fb77cc9108dfb25366f3744241672f4b9 (patch)
tree4ee2e64d02227184b8c5406de6e163b41456ecaf /src/supplicant/nm-supplicant-interface.h
parentb10c382b1d78175687d6fe034213385492ff5937 (diff)
wifi: cleanup periodic_update() in "nm-device-wifi.c"
Diffstat (limited to 'src/supplicant/nm-supplicant-interface.h')
-rw-r--r--src/supplicant/nm-supplicant-interface.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/supplicant/nm-supplicant-interface.h b/src/supplicant/nm-supplicant-interface.h
index 774b56c6e..eb414f26f 100644
--- a/src/supplicant/nm-supplicant-interface.h
+++ b/src/supplicant/nm-supplicant-interface.h
@@ -41,6 +41,13 @@ nm_supplicant_interface_state_is_operational (NMSupplicantInterfaceState state)
&& state < NM_SUPPLICANT_INTERFACE_STATE_DOWN;
}
+static inline gboolean
+nm_supplicant_interface_state_is_associated (NMSupplicantInterfaceState state)
+{
+ return state >= NM_SUPPLICANT_INTERFACE_STATE_AUTHENTICATING
+ && state <= NM_SUPPLICANT_INTERFACE_STATE_COMPLETED;
+}
+
typedef enum {
NM_SUPPLICANT_AUTH_STATE_UNKNOWN,
NM_SUPPLICANT_AUTH_STATE_STARTED,