Skip to contentSkip to conversation

cfg80211: bugfix in regulatory user hint process

PATCH Applied Emmanuel Grumbach 3 participants 4 messages Feb 12, 2014 – Feb 19, 2014 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cfg80211: bugfix in regulatory user hint process

From: Inbal Hacohen <[email protected]>

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".

---
 net/wireless/reg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/reg.c +1 -1
index fa149ea..1301ada 100644
@@ -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(&reg_timeout, msecs_to_jiffies(3142));
Signature · 1 line
1.8.3.2
maintainer
#1 lore raw
Quoted 3 lines

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

Quoted 11 lines
net/wireless/reg.c +1 -1
@@ -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(&reg_timeout, msecs_to_jiffies(3142));
#2 lore raw
Quoted 6 lines · Johannes Berg
Quoted 3 lines

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

maintainer Applied
#3 lore raw
In reply to Emmanuel Grumbach
Quoted 5 lines · Emmanuel Grumbach

From: Inbal Hacohen <[email protected]>

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