ERROR: wifi_mgmt_ext: Connection request failed, reason 8

Hello,

We would like to inquire about a technical issue regarding the nRF7002 + nrf5340 with sdk v2.7.0. We have a nrf7002 module connected with nrf5340 through qspi interface on our custom pcb.

we are trying to connect to a wifi router using nrf7002 but while trying to do so we are facing the below error. 

<err> wifi_mgmt_ext: Connection request failed. 

we are not able to determine what could be causing this error, our earlier project firmware, compiled with sdkv2.5.2, was working fine with this setup and we were able to connect to wifi router. After migrating the firmware from sdk v2.5.2 to sdk v2.7.0 we are facing the above error.

this error is generated from below api. please note that we have enabled the needed modules and set the wifi credentials statically in prj.conf. we have also tried to connect to credentials store in flash without any success, we have verified that credentials are correct and are properly read from the memory.

ret = net_mgmt(NET_REQUEST_WIFI_CONNECT_STORED, iface, NULL, 0);

if (ret) {
	LOG_ERR("Connection request failed %d",ret);

	return -ENOEXEC;
}

we are receiving -8 error code with this api call.

Here are the details of my development environment,
SDK version: nRF Connect SDK v2.7.0
Toolchain version: nRF Connect SDK Toolchain v2.7.0
Development environment: Ubuntu 24.04
Development tool: Visual Studio Code
Development board: we are using our custom overlay board files.
Example refference path: ~/ncs/v2.7.0/nrf/samples/wifi/sta
 
Also, this is our memory usage in case if it is helpful.
[793/802] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      920560 B       912 KB     98.57%
             RAM:      470592 B       476 KB     96.55%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from ~/xxxxx/build/zephyr/zephyr.elf for board: xxxxxxxxxxxxx

Please ask if any more information is needed.

Thank you.
Related