]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Ignore global regulatory change for self managed drivers
authorManish Dharanenthiran <manish.dharanenthiran@oss.qualcomm.com>
Wed, 8 Oct 2025 17:40:48 +0000 (23:10 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 10 Oct 2025 16:24:32 +0000 (19:24 +0300)
For drivers with self managed regulatory support enabled, private
regdomain is the only valid domain. Hence, ignore the global regulatory
domain change event (NL80211_CMD_REG_CHANGE) if the driver is enabled
with self managed regulatory domain, as the regulatory domain for those
drivers will be updated via NL80211_CMD_WIPHY_REG_CHANGE.

Signed-off-by: Manish Dharanenthiran <manish.dharanenthiran@oss.qualcomm.com>
src/drivers/driver_nl80211_event.c

index f6eec16c981c33079ec75e52debca6ad4b712aa8..6c8ff867e3cc4023be2a35ddd02071fe6a92ff90 100644 (file)
@@ -4318,6 +4318,11 @@ static void do_process_drv_event(struct i802_bss *bss, int cmd,
                break;
        case NL80211_CMD_REG_CHANGE:
        case NL80211_CMD_WIPHY_REG_CHANGE:
+               if (cmd == NL80211_CMD_REG_CHANGE &&
+                   (drv->capa.flags &
+                    WPA_DRIVER_FLAGS_SELF_MANAGED_REGULATORY))
+                       break;
+
                nl80211_reg_change_event(drv, tb);
                break;
        case NL80211_CMD_REG_BEACON_HINT: