With NCS 3.4.1, I'm calling ret = net_mgmt(NET_REQUEST_WIFI_REG_DOMAIN, iface, ®d, sizeof(regd)); but if the country code is invalid, the function return after 10s but with no error code.
If i look into the code, the timeout should be 2s but an error make it divide by 20 and multiply by 100:
https://github.com/nrfconnect/sdk-nrf/blob/b20f8619ba9a5530f8c34b0a130d829947cfe55d/drivers/wifi/nrf71/osal/fw_if/umac_if/inc/common/fmac_cmd_common.h#L19
https://github.com/nrfconnect/sdk-nrf/blob/b20f8619ba9a5530f8c34b0a130d829947cfe55d/drivers/wifi/nrf71/osal/fw_if/umac_if/src/common/fmac_api_common.c#L151
https://github.com/nrfconnect/sdk-nrf/blob/b20f8619ba9a5530f8c34b0a130d829947cfe55d/drivers/wifi/nrf71/osal/fw_if/umac_if/src/common/fmac_api_common.c#L231
https://github.com/zephyrproject-rtos/nrf_wifi/blob/fc0872109ec4c006d32843a202b129db33cf16b9/fw_if/umac_if/inc/common/fmac_cmd_common.h#L19
https://github.com/zephyrproject-rtos/nrf_wifi/blob/fc0872109ec4c006d32843a202b129db33cf16b9/fw_if/umac_if/src/common/fmac_api_common.c#L555
https://github.com/zephyrproject-rtos/nrf_wifi/blob/fc0872109ec4c006d32843a202b129db33cf16b9/fw_if/umac_if/src/common/fmac_api_common.c#L635
Can the nRF7002 return an error instead of not returning anything ?
Can the net_mgmt() return an error code in case of timeout ?
Can nordicsemi provide the list of supported country code ? So i can test myself and return quickly in case of invalid country code