From: Ilan Peer <ilan.peer@intel.com>
To: linux-wireless@vger.kernel.org
Cc: mcgrof@suse.org, Ben <ben.rosenfeld@intel.com>,
Ilan Peer <ilan.peer@intel.com>
Subject: [PATCH] cfg80211: Process all pending regulatory requests/hints
Date: Thu, 12 Mar 2015 09:37:34 -0400 [thread overview]
Message-ID: <1426167454-7070-1-git-send-email-ilan.peer@intel.com> (raw)
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(®_requests_lock);
+ if (!list_empty(®_requests_list) && lr && lr->processed)
+ schedule_work(®_work);
+ spin_unlock(®_requests_lock);
}
/* Processes beacon hints -- this has nothing to do with country IEs */
--
1.8.3.2
next reply other threads:[~2015-03-12 19:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-12 13:37 Ilan Peer [this message]
2015-03-17 10:03 ` [PATCH] cfg80211: Process all pending regulatory requests/hints Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426167454-7070-1-git-send-email-ilan.peer@intel.com \
--to=ilan.peer@intel.com \
--cc=ben.rosenfeld@intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=mcgrof@suse.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).