<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Issues with the Wi-Fi driver interface</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119151/issues-with-the-wi-fi-driver-interface</link><description>Hi, 
 I&amp;#39;m currently trying to write a simple Wi-Fi driver code that can connect to my Wi-Fi network. I&amp;#39;m building for the nrf7002dk_nrf5340_cpuapp and am using NCS v2.5.3 . 
 For this, I based my code on Exercise 2 of the Wi-Fi fundementals lesson 2.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Feb 2025 11:22:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119151/issues-with-the-wi-fi-driver-interface" /><item><title>RE: Issues with the Wi-Fi driver interface</title><link>https://devzone.nordicsemi.com/thread/524063?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 11:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0791269c-5318-49ef-a30a-35caf21bf9c8</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are some incorrect configurations in your prj.conf. You should remove the following Kconfigs:&lt;/p&gt;
&lt;p&gt;CONFIG_NET_L2_WIFI_MGMT=y&lt;br /&gt;CONFIG_NET_CONFIG_SETTINGS=y&lt;/p&gt;
&lt;p&gt;You must also change CONFIG_NET_NATIVE from n to y and increase the stack sizes of CONFIG_NET_MGMT_EVENT_STACK_SIZE and CONFIG_HEAP_MEM_POOL_SIZE. Lastly, you must enable the WPA supplicant with CONFIG_WPA_SUPP.&lt;/p&gt;
&lt;p&gt;Here is the modified prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
#wifi settings
CONFIG_WIFI=y
CONFIG_WIFI_NRF700X=y
CONFIG_WPA_SUPP=y

# Networking
CONFIG_NETWORKING=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_NATIVE=y
CONFIG_NET_OFFLOAD=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_IPV6=y
CONFIG_NET_IPV4=y
CONFIG_NET_UDP=y
CONFIG_NET_TCP=y

# Enable network management
CONFIG_NET_MGMT=y
CONFIG_NET_MGMT_EVENT=y
CONFIG_NET_MGMT_EVENT_STACK_SIZE=4096

CONFIG_INIT_STACKS=y

# Memory and Stack Settings
CONFIG_HEAP_MEM_POOL_SIZE=153600
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_INIT_STACKS=y
CONFIG_STACK_SENTINEL=y

# Debugging and Logging
CONFIG_DEBUG_COREDUMP=y
CONFIG_DEBUG_COREDUMP_BACKEND_LOGGING=y
CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y
CONFIG_LOG=y

# Bluetooth Configuration
CONFIG_BT=y
CONFIG_BT_BROADCASTER=y
CONFIG_BT_OBSERVER=y
CONFIG_BT_SMP=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_BUF_ACL_RX_SIZE=151
CONFIG_BT_L2CAP_TX_MTU=147
CONFIG_BT_BUF_ACL_TX_SIZE=151
CONFIG_BT_RX_STACK_SIZE=4096
CONFIG_BT_BONDABLE=n
CONFIG_BT_DEVICE_NAME_DYNAMIC=y

# NFC Configuration
CONFIG_NFC_T4T_NRFXLIB=y
CONFIG_NFC_NDEF=y
CONFIG_NFC_NDEF_MSG=y
CONFIG_NFC_NDEF_RECORD=y
CONFIG_NFC_NDEF_LE_OOB_REC=y
CONFIG_NFC_NDEF_CH_MSG=y
CONFIG_NFC_NDEF_TNEP_RECORD=y
CONFIG_NFC_TNEP_TAG=y
CONFIG_NFC_NDEF_PARSER=y
CONFIG_NFC_NDEF_CH_PARSER=y
CONFIG_NFC_NDEF_LE_OOB_REC_PARSER=y
CONFIG_NFC_TNEP_CH=y

# System Settings
CONFIG_NEWLIB_LIBC=y
CONFIG_REBOOT=y

# Enable UART driver
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_UART_CONSOLE=y  # Enable UART console
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with the Wi-Fi driver interface</title><link>https://devzone.nordicsemi.com/thread/524040?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 09:43:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fba65b63-d1f0-4a86-ae6d-a466c3e218fe</guid><dc:creator>JonasR</dc:creator><description>&lt;p&gt;Hi Marte, &lt;br /&gt;thanks for the quick response!&lt;br /&gt;I added .band to the params but i still get the same return. i have added my source code if that helps to recreate my problem.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/030265.main.c"&gt;devzone.nordicsemi.com/.../030265.main.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/wifi_5F00_driver.h"&gt;devzone.nordicsemi.com/.../wifi_5F00_driver.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/wifi_5F00_driver.c"&gt;devzone.nordicsemi.com/.../wifi_5F00_driver.c&lt;/a&gt;&lt;br /&gt;thanks in advance.&lt;br /&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;JonasR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with the Wi-Fi driver interface</title><link>https://devzone.nordicsemi.com/thread/523922?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 14:24:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc22037a-d978-4e94-8bd6-979be887dd78</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are missing the band parameter in the connection request parameters struct. I tested your code in lesson 2 exercise 2, and I was able to connect after adding band like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int8_t wifi_connect(char* ssid, char* passkey)
{
    struct net_if *iface = net_if_get_first_wifi();
    if (iface == NULL) {
        LOG_ERR(&amp;quot;No Wi-Fi network interface found!&amp;quot;);
        return -ENODEV;
    }

    struct wifi_connect_req_params params = {
        .ssid = ssid,
        .ssid_length = strlen(ssid),
        .psk = passkey,
        .psk_length = strlen(passkey),
        .channel = WIFI_CHANNEL_ANY,
        .security = WIFI_SECURITY_TYPE_PSK,
        .mfp = WIFI_MFP_OPTIONAL,
        .timeout = SYS_FOREVER_MS,
        .band = WIFI_FREQ_BAND_UNKNOWN,
    };

    int err = net_mgmt(NET_REQUEST_WIFI_CONNECT, iface, &amp;amp;params, sizeof(params));
    if (err) {
        LOG_ERR(&amp;quot;Wi-Fi Connection Failed (Error: %d)&amp;quot;, err);
        return err;
    }

    LOG_INF(&amp;quot;Connecting to Wi-Fi: %s&amp;quot;, ssid);
    return 0;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>