linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: fix recalc_radar hwconf sync problem
@ 2013-04-02 16:39 Simon Wunderlich
  2013-04-03 12:46 ` Johannes Berg
  0 siblings, 1 reply; 19+ messages in thread
From: Simon Wunderlich @ 2013-04-02 16:39 UTC (permalink / raw)
  To: linux-wireless; +Cc: zefir.kurtisi, mathias.kretschmer, Simon Wunderlich

local->hw.conf maybe not be synced when recalcing whether radar is
enabled, sometimes leaving radar enabled even if it's not neccesary
anymore.

Fix this by always applying the setting.

Reported-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
---
 net/mac80211/chan.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c
index 931be41..9442c46 100644
--- a/net/mac80211/chan.c
+++ b/net/mac80211/chan.c
@@ -251,9 +251,6 @@ void ieee80211_recalc_radar_chanctx(struct ieee80211_local *local,
 	}
 	rcu_read_unlock();
 
-	if (radar_enabled == chanctx->conf.radar_enabled)
-		return;
-
 	chanctx->conf.radar_enabled = radar_enabled;
 	local->radar_detect_enabled = chanctx->conf.radar_enabled;
 
-- 
1.7.10.4


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

end of thread, other threads:[~2013-04-09  9:50 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-02 16:39 [PATCH] mac80211: fix recalc_radar hwconf sync problem Simon Wunderlich
2013-04-03 12:46 ` Johannes Berg
2013-04-04 13:38   ` Zefir Kurtisi
2013-04-04 18:22     ` Simon Wunderlich
2013-04-05 10:08       ` Zefir Kurtisi
2013-04-05 10:11         ` Zefir Kurtisi
2013-04-05 11:29         ` Simon Wunderlich
2013-04-05 12:11           ` Zefir Kurtisi
2013-04-05 11:22       ` Johannes Berg
2013-04-05 12:16         ` Simon Wunderlich
2013-04-05 12:36           ` Johannes Berg
2013-04-08 11:51             ` Simon Wunderlich
2013-04-08 12:09             ` [PATCHv2] " Simon Wunderlich
2013-04-08 14:17               ` Zefir Kurtisi
2013-04-08 14:29               ` Johannes Berg
2013-04-08 17:04                 ` [PATCHv3] " Simon Wunderlich
2013-04-08 17:53                   ` Antonio Quartulli
2013-04-08 20:43                     ` [PATCHv4] " Simon Wunderlich
2013-04-09  9:50                       ` 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).