* [PATCH 1/2] cfg80211: fix DFS channel recovery timeout
@ 2013-10-17 18:21 Michal Kazior
2013-10-17 18:21 ` [PATCH 2/2] cfg80211: update dfs_state_entered upon dfs_state change Michal Kazior
2013-10-21 13:04 ` [PATCH 1/2] cfg80211: fix DFS channel recovery timeout Johannes Berg
0 siblings, 2 replies; 3+ messages in thread
From: Michal Kazior @ 2013-10-17 18:21 UTC (permalink / raw)
To: johannes; +Cc: linux-wireless, Michal Kazior
The timeout was not properly converted from msecs
to jiffies. As a result channel transition to
NL80211_DFS_USABLE was delayed depending on
CONFIG_HZ configuration, e.g. HZ=100 would delay
the NOP from 30 minutes to 300 minutes.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
---
net/wireless/mlme.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c
index 8d49c1c..edfe6de 100644
--- a/net/wireless/mlme.c
+++ b/net/wireless/mlme.c
@@ -707,8 +707,8 @@ void cfg80211_dfs_channels_update_work(struct work_struct *work)
if (c->dfs_state != NL80211_DFS_UNAVAILABLE)
continue;
- timeout = c->dfs_state_entered +
- IEEE80211_DFS_MIN_NOP_TIME_MS;
+ timeout = c->dfs_state_entered + msecs_to_jiffies(
+ IEEE80211_DFS_MIN_NOP_TIME_MS);
if (time_after_eq(jiffies, timeout)) {
c->dfs_state = NL80211_DFS_USABLE;
--
1.8.4.rc3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] cfg80211: update dfs_state_entered upon dfs_state change
2013-10-17 18:21 [PATCH 1/2] cfg80211: fix DFS channel recovery timeout Michal Kazior
@ 2013-10-17 18:21 ` Michal Kazior
2013-10-21 13:04 ` [PATCH 1/2] cfg80211: fix DFS channel recovery timeout Johannes Berg
1 sibling, 0 replies; 3+ messages in thread
From: Michal Kazior @ 2013-10-17 18:21 UTC (permalink / raw)
To: johannes; +Cc: linux-wireless, Michal Kazior
The timestamp wasn't updated after transitioning
to the NL80211_DFS_USABLE state after NOP time.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
---
net/wireless/mlme.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c
index edfe6de..6a6b1c8 100644
--- a/net/wireless/mlme.c
+++ b/net/wireless/mlme.c
@@ -712,6 +712,8 @@ void cfg80211_dfs_channels_update_work(struct work_struct *work)
if (time_after_eq(jiffies, timeout)) {
c->dfs_state = NL80211_DFS_USABLE;
+ c->dfs_state_entered = jiffies;
+
cfg80211_chandef_create(&chandef, c,
NL80211_CHAN_NO_HT);
--
1.8.4.rc3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] cfg80211: fix DFS channel recovery timeout
2013-10-17 18:21 [PATCH 1/2] cfg80211: fix DFS channel recovery timeout Michal Kazior
2013-10-17 18:21 ` [PATCH 2/2] cfg80211: update dfs_state_entered upon dfs_state change Michal Kazior
@ 2013-10-21 13:04 ` Johannes Berg
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2013-10-21 13:04 UTC (permalink / raw)
To: Michal Kazior; +Cc: linux-wireless
On Thu, 2013-10-17 at 11:21 -0700, Michal Kazior wrote:
> The timeout was not properly converted from msecs
> to jiffies. As a result channel transition to
> NL80211_DFS_USABLE was delayed depending on
> CONFIG_HZ configuration, e.g. HZ=100 would delay
> the NOP from 30 minutes to 300 minutes.
Applied both, but I think getting into 3.12 might be hard.
johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-21 13:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-17 18:21 [PATCH 1/2] cfg80211: fix DFS channel recovery timeout Michal Kazior
2013-10-17 18:21 ` [PATCH 2/2] cfg80211: update dfs_state_entered upon dfs_state change Michal Kazior
2013-10-21 13:04 ` [PATCH 1/2] cfg80211: fix DFS channel recovery timeout 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).