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>
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: