All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] cfg80211: mesh: track (and thus validate) beacon interval
@ 2016-10-21 12:25 Johannes Berg
  2016-10-21 12:25 ` [PATCH 2/4] cfg80211: disallow beacon_int_min_gcd with IBSS Johannes Berg
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Johannes Berg @ 2016-10-21 12:25 UTC (permalink / raw)
  To: linux-wireless
  Cc: Purushottam Kushwaha, jouni, usdutt, amarnath, Johannes Berg

From: Johannes Berg <johannes.berg@intel.com>

This is needed for beacon interval validation; if we don't
store it, then new interfaces added won't validate that the
beacon interval is the same as existing ones. Fix this.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 net/wireless/mesh.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/wireless/mesh.c b/net/wireless/mesh.c
index fa2066b56f36..2d8518a37eab 100644
--- a/net/wireless/mesh.c
+++ b/net/wireless/mesh.c
@@ -183,6 +183,7 @@ int __cfg80211_join_mesh(struct cfg80211_registered_device *rdev,
 		memcpy(wdev->ssid, setup->mesh_id, setup->mesh_id_len);
 		wdev->mesh_id_len = setup->mesh_id_len;
 		wdev->chandef = setup->chandef;
+		wdev->beacon_interval = setup->beacon_interval;
 	}
 
 	return err;
@@ -258,6 +259,7 @@ int __cfg80211_leave_mesh(struct cfg80211_registered_device *rdev,
 	err = rdev_leave_mesh(rdev, dev);
 	if (!err) {
 		wdev->mesh_id_len = 0;
+		wdev->beacon_interval = 0;
 		memset(&wdev->chandef, 0, sizeof(wdev->chandef));
 		rdev_set_qos_map(rdev, dev, NULL);
 	}
-- 
2.8.1

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

end of thread, other threads:[~2016-10-21 12:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-21 12:25 [PATCH 1/4] cfg80211: mesh: track (and thus validate) beacon interval Johannes Berg
2016-10-21 12:25 ` [PATCH 2/4] cfg80211: disallow beacon_int_min_gcd with IBSS Johannes Berg
2016-10-21 12:25 ` [PATCH 3/4] cfg80211: validate beacon int as part of iface combinations Johannes Berg
2016-10-21 12:25 ` [PATCH 4/4] mac80211: validate new interface's beacon intervals Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.