summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh_ps.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-08-15 11:37:38 +0100
committerMark Brown <broonie@linaro.org>2013-08-15 11:37:38 +0100
commit743c5bb898be45009770c144e5e14e4f448e56b9 (patch)
tree40fff57c975f89da4a90922c165595840e99093a /net/mac80211/mesh_ps.c
parent8fe120b5a665fc869c23f86e4964b801f6e53486 (diff)
parentb7ae6f31d8243ec684af16bc5c763eccdfabaec0 (diff)
downloadop-kernel-dev-743c5bb898be45009770c144e5e14e4f448e56b9.zip
op-kernel-dev-743c5bb898be45009770c144e5e14e4f448e56b9.tar.gz
Merge branch 'topic/dma' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-omap
Conflicts: sound/soc/omap/Kconfig
Diffstat (limited to 'net/mac80211/mesh_ps.c')
-rw-r--r--net/mac80211/mesh_ps.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/mesh_ps.c b/net/mac80211/mesh_ps.c
index 3b7bfc0..22290a9 100644
--- a/net/mac80211/mesh_ps.c
+++ b/net/mac80211/mesh_ps.c
@@ -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
OpenPOWER on IntegriCloud