Skip to content
  • Andrew Zaborowski's avatar
    wifi/iwd: handle forgetting connection profiles · bea6c403
    Andrew Zaborowski authored and Thomas Haller's avatar Thomas Haller committed
    Watch for connection-removed events and delete corresponding IWD network
    configs if found.  This mainly changes anything for 802.1X networks
    where the deleted NM connections might annoyingly re-appear after a
    restart.  For PSK networks though it'll make IWD forget the password
    which, until now, would be remembered by IWD even if it was removed or
    changed in the NM profile, which is a bug.
    
    This is still fragile because we don't handle "connection-updated"
    events so the data->mirror_connection pointer for a known network record
    may after some time point to an NMSettingsConnection with a different
    SSID or security type and there are corner cases where the IWD-side
    profile will not be forgotten.  At least I'm trying to make sure we
    don't crash and don't wrongly remove any IWD profile which could also be
    annoying for complicated EAP configs.
    bea6c403