• Luciano Coelho's avatar
    mac80211: only roll back station states for WDS when suspending · 44d761ce
    Luciano Coelho authored
    commit 2af81d67 upstream.
    
    In normal cases (i.e. when we are fully associated), cfg80211 takes
    care of removing all the stations before calling suspend in mac80211.
    
    But in the corner case when we suspend during authentication or
    association, mac80211 needs to roll back the station states.  But we
    shouldn't roll back the station states in the suspend function,
    because this is taken care of in other parts of the code, except for
    WDS interfaces.  For AP types of interfaces, cfg80211 takes care of
    disconnecting all stations before calling the driver's suspend code.
    For station interfaces, this is done in the quiesce code.
    
    For WDS interfaces we still need to do it here, so move the code into
    a new switch case for WDS.
    Signed-off-by: default avatarLuciano Coelho <luciano.coelho@intel.com>
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
    44d761ce
pm.c 3.68 KB