wpa_sm_set_state() function
wpa_supplicant_set_state - Set current connection state @wpa_s: Pointer to wpa_supplicant data @state: The new connection state This function is called whenever the connection state changes, e.g., association is completed for WPA/WPA2 4-Way Handshake is started.