Message ID | 20180929021321.1e1b6c3e@fem-net.de (mailing list archive) |
---|---|
State | Rejected |
Delegated to: | Johannes Berg |
Headers | show |
Series | Handling user regdom hints while having intersected world regdom | expand |
Hi After this change, on interface reconfig regdomains for both int. and usb radio are no longer 98. instead they are both set to US (int. radio regdomain) while usb should be set to GB. I am not sure if there is an easy way to handle this. Bad thing is that regdomains still intersect for few seconds on usb card insert and during that time int. radio resets it's txpower to max->described in this bug issue: https://bugs.openwrt.org/index.php?do=details&task_id=1745
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 4fc66a117b7d..ed4543c7b255 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -2428,15 +2428,15 @@ __reg_process_hint_user(struct regulatory_request *user_request) /* * Process user requests only after previous user/driver/core * requests have been processed */ if ((lr->initiator == NL80211_REGDOM_SET_BY_CORE || lr->initiator == NL80211_REGDOM_SET_BY_DRIVER || lr->initiator == NL80211_REGDOM_SET_BY_USER) && - regdom_changes(lr->alpha2)) + !lr->processed) return REG_REQ_IGNORE; if (!regdom_changes(user_request->alpha2)) return REG_REQ_ALREADY_SET; return REG_REQ_OK; }