Skip to content

Commit 736058d

Browse files
MaochenWang1kartben
authored andcommitted
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>
1 parent b1a8655 commit 736058d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/wifi/nxp/nxp_wifi_drv.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,6 +1731,13 @@ static int nxp_wifi_reg_domain(const struct device *dev, struct wifi_reg_domain
17311731
LOG_ERR("Unable to set country code: %s", reg_domain->country_code);
17321732
return -EAGAIN;
17331733
}
1734+
1735+
ret = wlan_create_dnld_countryinfo();
1736+
if (ret != WM_SUCCESS) {
1737+
LOG_ERR("Unable to create and download countryinfo");
1738+
return -EAGAIN;
1739+
}
1740+
17341741
}
17351742
return 0;
17361743
}

0 commit comments

Comments
 (0)