* [PATCH] cfg80211: bugfix in regulatory user hint process
@ 2014-02-12 7:32 Emmanuel Grumbach
2014-02-12 10:42 ` Johannes Berg
2014-02-19 10:57 ` Johannes Berg
0 siblings, 2 replies; 4+ messages in thread
From: Emmanuel Grumbach @ 2014-02-12 7:32 UTC (permalink / raw)
To: johannes; +Cc: linux-wireless, Inbal Hacohen
From: Inbal Hacohen <Inbal.Hacohen@intel.com>
After processing hint_user, we would want to schedule the
timeout work only if we are actually waiting to CRDA. This happens
when the status is not "IGNORE" nor "ALREADY_SET".
Signed-off-by: Inbal Hacohen <Inbal.Hacohen@intel.com>
---
net/wireless/reg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index fa149ea..1301ada 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1700,7 +1700,7 @@ static void reg_process_hint(struct regulatory_request *reg_request)
return;
case NL80211_REGDOM_SET_BY_USER:
treatment = reg_process_hint_user(reg_request);
- if (treatment == REG_REQ_OK ||
+ if (treatment == REG_REQ_IGNORE ||
treatment == REG_REQ_ALREADY_SET)
return;
schedule_delayed_work(®_timeout, msecs_to_jiffies(3142));
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] cfg80211: bugfix in regulatory user hint process
2014-02-12 7:32 [PATCH] cfg80211: bugfix in regulatory user hint process Emmanuel Grumbach
@ 2014-02-12 10:42 ` Johannes Berg
2014-02-19 0:26 ` Luis R. Rodriguez
2014-02-19 10:57 ` Johannes Berg
1 sibling, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2014-02-12 10:42 UTC (permalink / raw)
To: Emmanuel Grumbach, Luis R. Rodriguez; +Cc: linux-wireless, Inbal Hacohen
> After processing hint_user, we would want to schedule the
> timeout work only if we are actually waiting to CRDA. This happens
> when the status is not "IGNORE" nor "ALREADY_SET".
Luis, does this seem right to you? I looked at it but wasn't _entirely_
sure.
johannes
> --- a/net/wireless/reg.c
> +++ b/net/wireless/reg.c
> @@ -1700,7 +1700,7 @@ static void reg_process_hint(struct regulatory_request *reg_request)
> return;
> case NL80211_REGDOM_SET_BY_USER:
> treatment = reg_process_hint_user(reg_request);
> - if (treatment == REG_REQ_OK ||
> + if (treatment == REG_REQ_IGNORE ||
> treatment == REG_REQ_ALREADY_SET)
> return;
> schedule_delayed_work(®_timeout, msecs_to_jiffies(3142));
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cfg80211: bugfix in regulatory user hint process
2014-02-12 10:42 ` Johannes Berg
@ 2014-02-19 0:26 ` Luis R. Rodriguez
0 siblings, 0 replies; 4+ messages in thread
From: Luis R. Rodriguez @ 2014-02-19 0:26 UTC (permalink / raw)
To: Johannes Berg; +Cc: Emmanuel Grumbach, linux-wireless, Inbal Hacohen
On Wed, Feb 12, 2014 at 2:42 AM, Johannes Berg
<johannes@sipsolutions.net> wrote:
>> After processing hint_user, we would want to schedule the
>> timeout work only if we are actually waiting to CRDA. This happens
>> when the status is not "IGNORE" nor "ALREADY_SET".
>
> Luis, does this seem right to you? I looked at it but wasn't _entirely_
> sure.
Looks good to me as well.
Luis
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cfg80211: bugfix in regulatory user hint process
2014-02-12 7:32 [PATCH] cfg80211: bugfix in regulatory user hint process Emmanuel Grumbach
2014-02-12 10:42 ` Johannes Berg
@ 2014-02-19 10:57 ` Johannes Berg
1 sibling, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2014-02-19 10:57 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: linux-wireless, Inbal Hacohen
On Wed, 2014-02-12 at 09:32 +0200, Emmanuel Grumbach wrote:
> From: Inbal Hacohen <Inbal.Hacohen@intel.com>
>
> After processing hint_user, we would want to schedule the
> timeout work only if we are actually waiting to CRDA. This happens
> when the status is not "IGNORE" nor "ALREADY_SET".
Applied.
johannes
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-19 10:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-12 7:32 [PATCH] cfg80211: bugfix in regulatory user hint process Emmanuel Grumbach
2014-02-12 10:42 ` Johannes Berg
2014-02-19 0:26 ` Luis R. Rodriguez
2014-02-19 10:57 ` Johannes Berg
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.