linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: util: mesh is not connected properly after recovery
@ 2016-06-28 11:15 Yaniv Machani
  2016-06-29  7:20 ` Johannes Berg
  2016-06-29  7:20 ` Johannes Berg
  0 siblings, 2 replies; 3+ messages in thread
From: Yaniv Machani @ 2016-06-28 11:15 UTC (permalink / raw)
  To: linux-kernel
  Cc: Maital Hahn, Johannes Berg, David S. Miller, linux-wireless, netdev

From: Maital Hahn <maitalm@ti.com>

In the reconfigure process for mesh interface, moved the reconfiguration
of the mesh peers to be done only after restarting the beacons,
the same as it is done for AP.

Signed-off-by: Maital Hahn <maitalm@ti.com>
Acked-by: Yaniv Machani <yanivma@ti.com>
---
 net/mac80211/util.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 5375a82..2431684 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1910,6 +1910,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
 			ieee80211_reconfig_stations(sdata);
 			/* fall through */
 		case NL80211_IFTYPE_AP: /* AP stations are handled later */
+		case NL80211_IFTYPE_MESH_POINT: /* MP peers are handled later */
 			for (i = 0; i < IEEE80211_NUM_ACS; i++)
 				drv_conf_tx(local, sdata, i,
 					    &sdata->tx_conf[i]);
@@ -2013,7 +2014,8 @@ int ieee80211_reconfig(struct ieee80211_local *local)
 		if (!sta->uploaded)
 			continue;
 
-		if (sta->sdata->vif.type != NL80211_IFTYPE_AP)
+		if ((sta->sdata->vif.type != NL80211_IFTYPE_AP) &&
+		    (sta->sdata->vif.type != NL80211_IFTYPE_MESH_POINT))
 			continue;
 
 		for (state = IEEE80211_STA_NOTEXIST;
-- 
2.9.0

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

* Re: [PATCH] mac80211: util: mesh is not connected properly after recovery
  2016-06-28 11:15 [PATCH] mac80211: util: mesh is not connected properly after recovery Yaniv Machani
@ 2016-06-29  7:20 ` Johannes Berg
  2016-06-29  7:20 ` Johannes Berg
  1 sibling, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2016-06-29  7:20 UTC (permalink / raw)
  To: Yaniv Machani, linux-kernel
  Cc: Maital Hahn, David S. Miller, linux-wireless, netdev

On Tue, 2016-06-28 at 14:15 +0300, Yaniv Machani wrote:
> From: Maital Hahn <maitalm@ti.com>
> 
> In the reconfigure process for mesh interface, moved the
> reconfiguration
> of the mesh peers to be done only after restarting the beacons,
> the same as it is done for AP.
> 
> Signed-off-by: Maital Hahn <maitalm@ti.com>
> Acked-by: Yaniv Machani <yanivma@ti.com>
> 
Same here, and this also needs a description of why this is OK with
other drivers, since presumably it already works there.

johannes

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

* Re: [PATCH] mac80211: util: mesh is not connected properly after recovery
  2016-06-28 11:15 [PATCH] mac80211: util: mesh is not connected properly after recovery Yaniv Machani
  2016-06-29  7:20 ` Johannes Berg
@ 2016-06-29  7:20 ` Johannes Berg
  1 sibling, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2016-06-29  7:20 UTC (permalink / raw)
  To: Yaniv Machani, linux-kernel
  Cc: Maital Hahn, David S. Miller, linux-wireless, netdev

Also - your subject lines should explain the *fix*, not the *bug*

johannes

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

end of thread, other threads:[~2016-06-29  7:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-28 11:15 [PATCH] mac80211: util: mesh is not connected properly after recovery Yaniv Machani
2016-06-29  7:20 ` Johannes Berg
2016-06-29  7:20 ` Johannes Berg

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).