rt2x00: rt2800lib: use step-by-step frequency offset adjustment on MMIO devices
[cascardo/linux.git] / net / mac80211 / mesh_ps.c
index 3b7bfc0..22290a9 100644 (file)
@@ -229,6 +229,10 @@ void ieee80211_mps_sta_status_update(struct sta_info *sta)
        enum nl80211_mesh_power_mode pm;
        bool do_buffer;
 
+       /* For non-assoc STA, prevent buffering or frame transmission */
+       if (sta->sta_state < IEEE80211_STA_ASSOC)
+               return;
+
        /*
         * use peer-specific power mode if peering is established and the
         * peer's power mode is known