Skip to content
  • Andrew Zaborowski's avatar
    iwd: Only request secrets on request from IWD · 90075179
    Andrew Zaborowski authored and Andrew Zaborowski's avatar Andrew Zaborowski committed
    Remove the code (mostly copied from nm-device-wifi.c) that handles
    checking if the secrets were provided and requesting missing secrets
    before starting a connection attempt.  Instead, request secrets when
    we're asked for them by IWD through its agent interface.  This happens
    while the dbus Connect call is running.  We change the NMDevice from
    the CONFIG state to NEED_AUTH and then change back to CONFIG once we
    sent the secrets back to IWD.
    
    The current code would require the secrets only based on whether a
    network is a KnownNetwork but IWD may need a new passwords even for
    KnownNetworks if the last connection attempt has failed.
    90075179