drivers: wifi: nxp: add download countryinfo

When set 'wifi reg_domain' CMD, need to create and download countryinfo
to sync driver and FW for embedded supplicant case

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
This commit is contained in:
Maochen Wang 2025-04-17 15:08:08 +08:00 committed by Benjamin Cabé
commit 736058de7d

View file

@ -1731,6 +1731,13 @@ static int nxp_wifi_reg_domain(const struct device *dev, struct wifi_reg_domain
LOG_ERR("Unable to set country code: %s", reg_domain->country_code);
return -EAGAIN;
}
ret = wlan_create_dnld_countryinfo();
if (ret != WM_SUCCESS) {
LOG_ERR("Unable to create and download countryinfo");
return -EAGAIN;
}
}
return 0;
}