• Luciano Coelho's avatar
    mac80211: only roll back station states for WDS when suspending · 2af81d67
    Luciano Coelho authored
    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.
    
    Cc: stable@kernel.org [3.15+]
    Signed-off-by: default avatarLuciano Coelho <luciano.coelho@intel.com>
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    2af81d67
pm.c 3.71 KB