linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cfg80211: Process all pending regulatory requests/hints
@ 2015-03-12 13:37 Ilan Peer
  2015-03-17 10:03 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Ilan Peer @ 2015-03-12 13:37 UTC (permalink / raw)
  To: linux-wireless; +Cc: mcgrof, Ben, Ilan Peer

From: Ben <ben.rosenfeld@intel.com>

It is possible that there are several regulatory requests
pending, but the processing of the last one does not call
CRDA, and thus the other requests are not handled.

Fix this by rescheduling the work until all requests have been
processed.

Signed-off-by: Ben Rosenfeld <ben.rosenfeld@intel.com>
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
---
 net/wireless/reg.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index d867103..8c6cf52 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -2159,6 +2159,13 @@ static void reg_process_pending_hints(void)
 	}
 
 	reg_process_hint(reg_request);
+
+	lr = get_last_request();
+
+	spin_lock(&reg_requests_lock);
+	if (!list_empty(&reg_requests_list) && lr && lr->processed)
+		schedule_work(&reg_work);
+	spin_unlock(&reg_requests_lock);
 }
 
 /* Processes beacon hints -- this has nothing to do with country IEs */
-- 
1.8.3.2


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

* Re: [PATCH] cfg80211: Process all pending regulatory requests/hints
  2015-03-12 13:37 [PATCH] cfg80211: Process all pending regulatory requests/hints Ilan Peer
@ 2015-03-17 10:03 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2015-03-17 10:03 UTC (permalink / raw)
  To: Ilan Peer; +Cc: linux-wireless, mcgrof, Ben

On Thu, 2015-03-12 at 09:37 -0400, Ilan Peer wrote:
> From: Ben <ben.rosenfeld@intel.com>
> 
> It is possible that there are several regulatory requests
> pending, but the processing of the last one does not call
> CRDA, and thus the other requests are not handled.
> 
> Fix this by rescheduling the work until all requests have been
> processed.

Applied.

johannes


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

end of thread, other threads:[~2015-03-17 10:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-12 13:37 [PATCH] cfg80211: Process all pending regulatory requests/hints Ilan Peer
2015-03-17 10:03 ` 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).