Merge git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
[firefly-linux-kernel-4.4.55.git] / net / mac80211 / sta_info.c
index be9120fb844810487c3e07cc84f4e42a0b1387a7..a9b46d8ea22ff696623cec4cad55949fc5afd2a1 100644 (file)
@@ -1148,7 +1148,8 @@ void ieee80211_sta_ps_deliver_wakeup(struct sta_info *sta)
        atomic_dec(&ps->num_sta_ps);
 
        /* This station just woke up and isn't aware of our SMPS state */
-       if (!ieee80211_smps_is_restrictive(sta->known_smps_mode,
+       if (!ieee80211_vif_is_mesh(&sdata->vif) &&
+           !ieee80211_smps_is_restrictive(sta->known_smps_mode,
                                           sdata->smps_mode) &&
            sta->known_smps_mode != sdata->bss->req_smps &&
            sta_info_tx_streams(sta) != 1) {