linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mesh: Skip STA expiration on user_mpm mode
@ 2015-01-14  2:23 Masashi Honma
  2015-01-15  3:14 ` Bob Copeland
  0 siblings, 1 reply; 5+ messages in thread
From: Masashi Honma @ 2015-01-14  2:23 UTC (permalink / raw)
  To: linux-wireless; +Cc: me, Masashi Honma

The mesh STA expiration processing works even if user_mpm mode. This causes
unexpected STA disconnection.

This patch skips STA expiration processing on user_mpm mode.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
---
 net/mac80211/mesh.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
index 0c8b2a7..50174fd 100644
--- a/net/mac80211/mesh.c
+++ b/net/mac80211/mesh.c
@@ -574,7 +574,8 @@ static void ieee80211_mesh_housekeeping(struct ieee80211_sub_if_data *sdata)
 	struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh;
 	u32 changed;
 
-	ieee80211_sta_expire(sdata, ifmsh->mshcfg.plink_timeout * HZ);
+	if (!ifmsh->user_mpm)
+		ieee80211_sta_expire(sdata, ifmsh->mshcfg.plink_timeout * HZ);
 	mesh_path_expire(sdata);
 
 	changed = mesh_accept_plinks_update(sdata);
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-18 23:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-14  2:23 [PATCH] mesh: Skip STA expiration on user_mpm mode Masashi Honma
2015-01-15  3:14 ` Bob Copeland
2015-01-16  2:04   ` Masashi Honma
2015-01-16 12:59     ` Bob Copeland
2015-01-18 23:33       ` Masashi Honma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).