From 736058de7d47d81e2f6e21e5b982d694c4b05ae9 Mon Sep 17 00:00:00 2001 From: Maochen Wang Date: Thu, 17 Apr 2025 15:08:08 +0800 Subject: [PATCH] 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 --- drivers/wifi/nxp/nxp_wifi_drv.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/wifi/nxp/nxp_wifi_drv.c b/drivers/wifi/nxp/nxp_wifi_drv.c index e8b942fc99a..07e886628e8 100644 --- a/drivers/wifi/nxp/nxp_wifi_drv.c +++ b/drivers/wifi/nxp/nxp_wifi_drv.c @@ -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; }