All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: Fix addition of mesh configuration element
@ 2016-12-26 16:17 Ilan Peer
  2016-12-26 21:49 ` Masashi Honma
  2017-01-02 10:59 ` Johannes Berg
  0 siblings, 2 replies; 8+ messages in thread
From: Ilan Peer @ 2016-12-26 16:17 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, masashi.honma, Ilan Peer

The code was setting the capabilities byte to zero,
after it was already properly set previously. Fix it.

The bug was found while debugging hwsim mesh tests failures
that happened in commit 76f43b4 (mac80211: Remove invalid flag
operations in mesh TSF synchronization).

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
---
 net/mac80211/mesh.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
index cc2a63b..9c23172 100644
--- a/net/mac80211/mesh.c
+++ b/net/mac80211/mesh.c
@@ -279,8 +279,6 @@ int mesh_add_meshconf_ie(struct ieee80211_sub_if_data *sdata,
 	/* Mesh PS mode. See IEEE802.11-2012 8.4.2.100.8 */
 	*pos |= ifmsh->ps_peers_deep_sleep ?
 			IEEE80211_MESHCONF_CAPAB_POWER_SAVE_LEVEL : 0x00;
-	*pos++ = 0x00;
-
 	return 0;
 }
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH] mac80211: Fix addition of mesh configuration element
@ 2017-12-15  9:29 Richard Schütz
  2017-12-15  9:49 ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Schütz @ 2017-12-15  9:29 UTC (permalink / raw)
  To: stable; +Cc: Ilan peer, Johannes Berg, Richard Schütz

From: Ilan peer <ilan.peer@intel.com>

commit 57629915d568c522ac1422df7bba4bee5b5c7a7c upstream.

The code was setting the capabilities byte to zero,
after it was already properly set previously. Fix it.

The bug was found while debugging hwsim mesh tests failures
that happened since the commit mentioned below.

Fixes: 76f43b4c0a93 ("mac80211: Remove invalid flag operations in mesh TSF synchronization")
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Masashi Honma <masashi.honma@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Schütz <rschuetz@uni-koblenz.de>
---
 net/mac80211/mesh.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
index cc2a63bd233f..9c23172feba0 100644
--- a/net/mac80211/mesh.c
+++ b/net/mac80211/mesh.c
@@ -279,8 +279,6 @@ int mesh_add_meshconf_ie(struct ieee80211_sub_if_data *sdata,
 	/* Mesh PS mode. See IEEE802.11-2012 8.4.2.100.8 */
 	*pos |= ifmsh->ps_peers_deep_sleep ?
 			IEEE80211_MESHCONF_CAPAB_POWER_SAVE_LEVEL : 0x00;
-	*pos++ = 0x00;
-
 	return 0;
 }
 
-- 
2.15.1

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

end of thread, other threads:[~2017-12-18 12:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-26 16:17 [PATCH] mac80211: Fix addition of mesh configuration element Ilan Peer
2016-12-26 21:49 ` Masashi Honma
2017-01-02 10:59 ` Johannes Berg
2017-01-02 11:28   ` Peer, Ilan
  -- strict thread matches above, loose matches on Subject: below --
2017-12-15  9:29 Richard Schütz
2017-12-15  9:49 ` Greg KH
2017-12-15 10:31   ` Richard Schütz
2017-12-18 12:10     ` Greg KH

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.