<?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>Raw TX Packet Transmission Issues with nRF WiFi</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119499/raw-tx-packet-transmission-issues-with-nrf-wifi</link><description>I&amp;#39;m trying to use raw packet transmission (IN combination with wifi promiscous mode and raw sockets eventually) with my nRF WiFi device. I have both the sample raw_tx_packet application and my modified version which attempts to send UDP packets over WiFi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Apr 2025 14:02:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119499/raw-tx-packet-transmission-issues-with-nrf-wifi" /><item><title>RE: Raw TX Packet Transmission Issues with nRF WiFi</title><link>https://devzone.nordicsemi.com/thread/530031?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2025 14:02:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89bfaf14-fd1b-4ea1-bdf9-0a7c9e1b5d99</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Thank you again for the patience with this case,&lt;/p&gt;
[quote user="drfhaust"]i use a socket test tool that tests udp and tcp sockets&amp;nbsp;[/quote]
&lt;p&gt;Could you expand a bit further on what it is and how it is set up?&amp;nbsp;&lt;/p&gt;
[quote user="drfhaust"]it works when i use the sockets in tcp/udp mode however it doesnt work with raw sockets[/quote][quote user="drfhaust"]The socket tester app also works when i use the udp socket mode on the nrf[/quote]
&lt;p&gt;And I am not sure if I understood this. The setup works with udp from several sources, though have you tried this with raw sockets from any other source, and gotten it working?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raw TX Packet Transmission Issues with nRF WiFi</title><link>https://devzone.nordicsemi.com/thread/528445?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 15:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb3c612a-de2c-4d75-928e-c610f51faf14</guid><dc:creator>drfhaust</dc:creator><description>&lt;p&gt;The socket &lt;span&gt;tester&amp;nbsp;app &lt;/span&gt;works with other sources, i have an app on my Phone that sends udp packets, i also have one on my pc as well. The socket tester app also works when i use the udp socket mode on the nrf&lt;br /&gt;&lt;br /&gt;i have done that i also tried using a variable buffer and allocating an rx and tx buffer pool&lt;br /&gt;here is one extreme example&lt;br /&gt;&lt;br /&gt;I get the same issues in 2.7 and 2.9&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_LOG=y
CONFIG_NET_IPV4=y
CONFIG_NET_UDP=y
CONFIG_NET_TCP=y
CONFIG_NET_DHCPV4=y

CONFIG_NET_PKT_RX_COUNT=64
CONFIG_NET_PKT_TX_COUNT=64
CONFIG_NET_BUF_RX_COUNT=64
CONFIG_NET_BUF_TX_COUNT=64
CONFIG_RAW_TX_PKT_SAMPLE_QUEUE_NUM=4
CONFIG_NET_BUF_VARIABLE_DATA_SIZE=y
CONFIG_NET_PKT_BUF_RX_DATA_POOL_SIZE=60000
CONFIG_NET_PKT_BUF_TX_DATA_POOL_SIZE=60000
CONFIG_HEAP_MEM_POOL_SIZE=200000
CONFIG_NET_TC_TX_COUNT=1&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raw TX Packet Transmission Issues with nRF WiFi</title><link>https://devzone.nordicsemi.com/thread/528423?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 14:06:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7f5b514-9d37-4304-8730-f7839b817b2f</guid><dc:creator>Elfving</dc:creator><description>[quote user="drfhaust"]&lt;span&gt;it works when i use the sockets in tcp/udp mode however it doesnt work with raw sockets&lt;/span&gt;[/quote]
&lt;p&gt;Have you checked that this socket also works with other sources than the nRF?&lt;/p&gt;
[quote user="drfhaust"][00:02:37.127,563] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (117 bytes)[/quote]
&lt;p&gt;Could you try either increasing the memory (ie. CONFIG_HEAP_MEM_POOL_SIZE, net buffer and stack size) or try to send fewer messages just to see if that helps?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raw TX Packet Transmission Issues with nRF WiFi</title><link>https://devzone.nordicsemi.com/thread/527911?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 19:30:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91b1fb49-84ac-4baa-90bf-7f98954135dd</guid><dc:creator>drfhaust</dc:creator><description>&lt;p&gt;&lt;span&gt;So this is something you see on your project, using NCS 2.7 right? Are you seeing these issues with the sample in 2.9 as well? this happens on all versions&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;here are the main errors&lt;br /&gt;[00:00:32.360,137] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)&lt;br /&gt;[00:00:32.360,443] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)&lt;br /&gt;[00:00:32.360,717] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)&lt;br /&gt;[00:00:32.361,022] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)&lt;br /&gt;[00:00:32.361,297] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)&lt;br /&gt;[00:00:37.803,924] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)&lt;br /&gt;[00:00:41.330,261] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (100 bytes)&lt;br /&gt;[00:01:25.567,352] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (100 bytes)&lt;br /&gt;[00:02:37.127,563] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (117 bytes)&lt;br /&gt;&lt;br /&gt;&amp;quot;&lt;span&gt;If it is fully formed on Wireshark, that sounds like an error on the recieving side - not an nRF issue. How are you setting up the listener socket?&amp;quot;&lt;br /&gt;&lt;br /&gt;i use a socket test tool that tests udp and tcp sockets&amp;nbsp;&lt;br /&gt;it works when i use the sockets in tcp/udp mode however it doesnt work with raw sockets&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raw TX Packet Transmission Issues with nRF WiFi</title><link>https://devzone.nordicsemi.com/thread/526862?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 09:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:329bff72-c139-4da8-83cd-8a23c5e86b72</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi again, and thank you for your patience with this.&lt;/p&gt;
[quote user="drfhaust"]&lt;ul&gt;&lt;li&gt;I need to send at least 1000 packets (the system crashes in continuous mode)&lt;/li&gt;
&lt;li&gt;Out of those 0000 packets, I only see about 5-20 of them received (with sequence numbers that are often sequential&amp;nbsp;and randomly placed between 2 and 1000)&lt;/li&gt;
&lt;li&gt;The transmission isn&amp;#39;t very reliable - sending fewer packets likely results in no successful transmissions&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;So this is something you see on your project, using NCS 2.7 right? Are you seeing these issues with the sample in 2.9 as well?&amp;nbsp;&lt;/p&gt;
[quote user="drfhaust"]I need to send at least 1000 packets (the system crashes in continuous mode)[/quote]
&lt;p&gt;Could you send me this crash log?&lt;/p&gt;
[quote user="drfhaust"]For UDP sockets, I can see fully formed UDP packets in Wireshark, but on the listening sockets I don&amp;#39;t see the actual data being receivedin my socket listener.[/quote]
&lt;p&gt;If it is fully formed on Wireshark, that sounds like an error on the recieving side - not an nRF issue. How are you setting up the listener socket?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raw TX Packet Transmission Issues with nRF WiFi</title><link>https://devzone.nordicsemi.com/thread/526256?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 20:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eace586-ec8b-4d75-824e-22628046bcb2</guid><dc:creator>drfhaust</dc:creator><description>&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p class="whitespace-pre-wrap break-words"&gt;Hi elfving,&lt;/p&gt;
&lt;p class="whitespace-pre-wrap break-words"&gt;I was able to transmit beacon packets in connected mode. I also successfully modified my UDP packets to send, however I&amp;#39;m facing a few issues:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="whitespace-normal break-words"&gt;I need to send at least 1000 packets (the system crashes in continuous mode)&lt;/li&gt;
&lt;li class="whitespace-normal break-words"&gt;Out of those 0000 packets, I only see about 5-20 of them received (with sequence numbers that are often sequential&amp;nbsp;and randomly placed between 2 and 1000)&lt;/li&gt;
&lt;li class="whitespace-normal break-words"&gt;The transmission isn&amp;#39;t very reliable - sending fewer packets likely results in no successful transmissions&lt;/li&gt;
&lt;/ol&gt;
&lt;p class="whitespace-pre-wrap break-words"&gt;For UDP sockets, I can see fully formed UDP packets in Wireshark, but on the listening sockets I don&amp;#39;t see the actual data being receivedin my socket listener.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Frame 781202: 143 bytes on wire (1144 bits), 143 bytes captured (1144 bits) on interface \Device\NPF_{05A6AE1F-1522-4B0D-AE5F-5F66B116ECD9}, id 0
Radiotap Header v0, Length 15
802.11 radio information
    Signal strength (dBm): -84 dBm
IEEE 802.11 Data, Flags: .......T
    Type/Subtype: Data (0x0020)
    Frame Control Field: 0x0801
        .... ..00 = Version: 0
        .... 10.. = Type: Data frame (2)
        0000 .... = Subtype: 0
        Flags: 0x01
            .... ..01 = DS status: Frame from STA to DS via an AP (To DS: 1 From DS: 0) (0x1)
            .... .0.. = More Fragments: This is the last fragment
            .... 0... = Retry: Frame is not being retransmitted
            ...0 .... = PWR MGT: STA will stay up
            ..0. .... = More Data: No data buffered
            .0.. .... = Protected flag: Data is not protected
            0... .... = +HTC/Order flag: Not strictly ordered
    .000 0000 0000 0000 = Duration: 0 microseconds
    Receiver address: d6:35:1d:b4:d6:42 (d6:35:1d:b4:d6:42)
        .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Transmitter address: NordicSemico_00:69:ed (f4:ce:36:00:69:ed)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Destination address: fa:95:82:89:69:e4 (fa:95:82:89:69:e4)
        .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Source address: NordicSemico_00:69:ed (f4:ce:36:00:69:ed)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    BSS Id: d6:35:1d:b4:d6:42 (d6:35:1d:b4:d6:42)
        .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    STA address: NordicSemico_00:69:ed (f4:ce:36:00:69:ed)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    .... .... .... 0000 = Fragment number: 0
    0100 1001 0111 .... = Sequence number: 1175
    [WLAN Flags: .......T]
Logical-Link Control
    DSAP: SNAP (0xaa)
    SSAP: SNAP (0xaa)
    Control field: U, func=UI (0x03)
    Organization Code: 00:00:00 (Officially Xerox, but 0:0:0:0:0:0 is more common)
    Type: IPv4 (0x0800)
Internet Protocol Version 4, Src: 192.168.1.30, Dst: 192.168.1.159
    0100 .... = Version: 4
    .... 0101 = Header Length: 20 bytes (5)
    Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT)
    Total Length: 43
    Identification: 0xabcd (43981)
    000. .... = Flags: 0x0
    ...0 0000 0000 0000 = Fragment Offset: 0
    Time to Live: 64
    Protocol: UDP (17)
    Header Checksum: 0xe74a [validation disabled]
    [Header checksum status: Unverified]
    Source Address: 192.168.1.30
    Destination Address: 192.168.1.159
    [Stream index: 3]
User Datagram Protocol, Src Port: 12345, Dst Port: 1234
    Source Port: 12345
    Destination Port: 1234
    Length: 23
    Checksum: 0x0000 [zero-value ignored]
    [Stream index: 7]
    [Stream Packet Number: 100]
    [Timestamps]
    UDP payload (15 bytes)
Data (15 bytes)
    Data: 48656c6c6f2c2057692d4669210d0a
    [Length: 15]
&lt;/pre&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p class="whitespace-pre-wrap break-words"&gt;Do you have any additional pointers that might help improve the reliability of transmission? Would it be helpful to share my code for you to review?&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raw TX Packet Transmission Issues with nRF WiFi</title><link>https://devzone.nordicsemi.com/thread/526218?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 15:13:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1872be0-93a8-4af1-a596-9cd8b3721f5c</guid><dc:creator>Elfving</dc:creator><description>[quote user="drfhaust"]Yes, I&amp;#39;m using NCS 2.7 for my main project, but I tested the raw tx packet sample in NCS 2.9 where I was able to successfully capture the beacon frames in Wireshark.[/quote]
&lt;p&gt;I would&amp;#39;ve ofcourse expected this to work in 2.7 as well, so that is a problem. Though I guess this is also still a problem for you and your application, right? Since you are not going to migrate to 2.9 because of this?&amp;nbsp;&lt;/p&gt;
[quote user="drfhaust"]However, when I switched the sample to connection mode and it successfully connects to WiFi, I&amp;#39;m encountering memory allocation errors in the logs and no longer see any data packets in Wireshark. Here are some of the errors I&amp;#39;m seeing:[/quote]
&lt;p&gt;Could you try increasing the network buffers and stack sizes? Ie:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;CONFIG_NET_PKT_RX_COUNT=16&lt;br /&gt;CONFIG_NET_PKT_TX_COUNT=16&lt;br /&gt;CONFIG_NET_BUF_RX_COUNT=80&lt;br /&gt;CONFIG_NET_BUF_TX_COUNT=80&lt;br /&gt;CONFIG_NET_BUF_DATA_SIZE=512&lt;br /&gt;CONFIG_HEAP_MEM_POOL_SIZE=120000&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MAIN_STACK_SIZE=8192&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_TX_STACK_SIZE=4096&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_RX_STACK_SIZE=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/wifi/advanced_modes/raw_tx_operation.html"&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;[quote user="drfhaust"]Also do you have any documentation on the &lt;span&gt;RAW socket type ?&lt;/span&gt;[/quote]&lt;/div&gt;
&lt;div&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/wifi/advanced_modes/raw_tx_operation.html"&gt;We do have this.&lt;/a&gt;&amp;nbsp;I&amp;#39;ll ask the relevant R&amp;amp;D team about the rest. I&amp;#39;ll let you know once I hear from them.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Regards,&lt;/div&gt;
&lt;div&gt;Elfving&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raw TX Packet Transmission Issues with nRF WiFi</title><link>https://devzone.nordicsemi.com/thread/525806?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 18:06:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:934a9ca9-dffe-42e3-b038-d15f3ccecf70</guid><dc:creator>drfhaust</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;Thank you for your response. Yes, I&amp;#39;m using NCS 2.7 for my main project, but I tested the raw tx packet sample in NCS 2.9 where I was able to successfully capture the beacon frames in Wireshark.&lt;/p&gt;
&lt;p&gt;However, when I switched the sample to connection mode and it successfully connects to WiFi, I&amp;#39;m encountering memory allocation errors in the logs and no longer see any data packets in Wireshark. Here are some of the errors I&amp;#39;m seeing:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.9.0-7787b2649840 ***
*** Using Zephyr OS v3.7.99-1f8f3dc29142 ***
[00:00:00.361,816] &amp;lt;inf&amp;gt; net_config: Initializing network
[00:00:00.361,846] &amp;lt;inf&amp;gt; net_config: Waiting interface 1 (0x200011b8) to be up...
[00:00:00.361,999] &amp;lt;inf&amp;gt; net_config: IPv4 address: 192.168.1.99
[00:00:00.362,060] &amp;lt;inf&amp;gt; net_config: Running dhcpv4 client...
[00:00:00.363,952] &amp;lt;inf&amp;gt; wifi_supplicant: wpa_supplicant initialized
[00:00:00.366,302] &amp;lt;inf&amp;gt; raw_tx_packet: TX Injection mode enabled
[00:00:01.366,821] &amp;lt;inf&amp;gt; wifi_connect: Static IP address (overridable): 192.168.1.99/255.255.255.0 -&amp;gt; 192.168.1.1
[00:00:03.288,787] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested
[00:00:03.288,818] &amp;lt;inf&amp;gt; wifi_connect: Connection requested
[00:00:03.288,879] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:03.288,879] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:03.589,050] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:03.589,080] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:03.889,190] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:03.889,221] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:04.189,361] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:04.189,392] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:04.489,501] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:04.489,532] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:04.789,733] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:04.789,764] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:05.089,874] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:05.089,904] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:05.390,045] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:05.390,075] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:05.690,216] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:05.690,246] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:05.990,447] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:05.990,478] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:06.290,618] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:06.290,618] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:06.590,759] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:06.590,789] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:06.890,930] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:06.890,960] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:07.191,162] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:07.191,192] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:07.491,333] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:07.491,333] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:07.791,473] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:07.791,503] &amp;lt;inf&amp;gt; wifi_connect: State: SCANNING
[00:00:08.091,674] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:08.091,705] &amp;lt;inf&amp;gt; wifi_connect: State: AUTHENTICATING
[00:00:08.395,233] &amp;lt;inf&amp;gt; wifi_connect: ==================
[00:00:08.395,263] &amp;lt;inf&amp;gt; wifi_connect: State: 4WAY_HANDSHAKE
[00:00:08.395,294] &amp;lt;inf&amp;gt; wifi_connect: Interface Mode: STATION
[00:00:08.395,294] &amp;lt;inf&amp;gt; wifi_connect: Link Mode: WIFI 6 (802.11ax/HE)
[00:00:08.395,324] &amp;lt;inf&amp;gt; wifi_connect: SSID: TELUS3784
[00:00:08.395,355] &amp;lt;inf&amp;gt; wifi_connect: BSSID: D6:35:1D:B4:D6:4A
[00:00:08.395,385] &amp;lt;inf&amp;gt; wifi_connect: Band: 5GHz
[00:00:08.395,385] &amp;lt;inf&amp;gt; wifi_connect: Channel: 52
[00:00:08.395,416] &amp;lt;inf&amp;gt; wifi_connect: Security: WPA2-PSK
[00:00:08.395,416] &amp;lt;inf&amp;gt; wifi_connect: MFP: Optional
[00:00:08.395,446] &amp;lt;inf&amp;gt; wifi_connect: RSSI: -33
[00:00:08.395,446] &amp;lt;inf&amp;gt; wifi_connect: TWT: Not supported
[00:00:08.418,609] &amp;lt;inf&amp;gt; wifi_connect: Connected
[00:00:08.480,834] &amp;lt;inf&amp;gt; net_dhcpv4: Received: 192.168.1.253
[00:00:08.481,506] &amp;lt;inf&amp;gt; net_config: IPv4 address: 192.168.1.253
[00:00:08.481,506] &amp;lt;inf&amp;gt; net_config: Lease time: 86400 seconds
[00:00:08.481,567] &amp;lt;inf&amp;gt; net_config: Subnet: 255.255.255.0
[00:00:08.481,597] &amp;lt;inf&amp;gt; net_config: Router: 192.168.1.1
[00:00:08.483,245] &amp;lt;inf&amp;gt; wifi_connect: DHCP IP address: 192.168.1.253
[00:00:08.695,648] &amp;lt;inf&amp;gt; raw_tx_packet: Sending raw tx packets continuously
[00:00:10.829,925] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:10.930,755] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:11.031,860] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:11.132,690] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:11.233,551] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:11.936,553] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:12.037,384] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:12.334,960] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:12.863,739] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:13.214,111] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:13.314,910] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:13.416,137] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:13.517,913] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:13.618,255] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:13.719,970] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:13.839,447] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:14.364,746] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:14.864,135] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:14.964,874] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:15.065,887] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:15.166,473] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:15.734,130] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:15.952,362] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:16.053,161] &amp;lt;wrn&amp;gt; net_conn: pkt cloning failed, pkt 0x20047ae4 dropped
[00:00:16.258,850] &amp;lt;err&amp;gt; wifi_nrf: zep_shim_llist_node_alloc: Unable to allocate memory for linked list node
[00:00:16.258,911] &amp;lt;err&amp;gt; wifi_nrf: nrf_wifi_utils_list_add_tail: Unable to allocate list node
[00:00:16.258,972] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to queue event
[00:00:16.259,033] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get_all: Failed to queue event
[00:00:16.259,429] &amp;lt;err&amp;gt; wifi_nrf: zep_shim_llist_node_alloc: Unable to allocate memory for linked list node
[00:00:16.259,490] &amp;lt;err&amp;gt; wifi_nrf: nrf_wifi_utils_list_add_tail: Unable to allocate list node
[00:00:16.259,552] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to queue event
[00:00:16.259,643] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get_all: Failed to queue event
[00:00:16.965,423] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:16.965,728] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:16.966,064] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:16.966,339] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:16.966,644] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:16.966,918] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:16.967,193] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:16.967,498] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:16.967,773] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:17.573,486] &amp;lt;err&amp;gt; wifi_nrf: zep_shim_llist_node_alloc: Unable to allocate memory for linked list node
[00:00:17.573,547] &amp;lt;err&amp;gt; wifi_nrf: nrf_wifi_utils_list_add_tail: Unable to allocate list node
[00:00:17.573,608] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to queue event
[00:00:17.573,669] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get_all: Failed to queue event
[00:00:18.279,541] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:18.279,846] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:18.280,120] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:19.190,856] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:19.191,131] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:19.191,436] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:20.825,653] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:20.825,958] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (25 bytes)
[00:00:24.353,851] &amp;lt;err&amp;gt; wifi_nrf: zep_shim_llist_node_alloc: Unable to allocate memory for linked list node
[00:00:24.353,912] &amp;lt;err&amp;gt; wifi_nrf: nrf_wifi_utils_list_add_tail: Unable to allocate list node
[00:00:24.353,973] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to queue event
[00:00:24.354,034] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get_all: Failed to queue event
[00:00:25.563,781] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:25.564,056] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:25.564,361] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:25.564,666] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:25.564,941] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:28.997,131] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_cmd_queue: Unable to allocate buffer for HAL command
[00:00:28.997,192] &amp;lt;err&amp;gt; wifi_nrf: nrf_wifi_hal_ctrl_cmd_send: Queueing of command failed
[00:00:32.360,137] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:32.360,443] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:32.360,717] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:32.361,022] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:32.361,297] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:37.803,924] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (49 bytes)
[00:00:41.330,261] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (100 bytes)
[00:01:25.567,352] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (100 bytes)
[00:02:37.127,563] &amp;lt;err&amp;gt; wifi_nrf: hal_rpu_event_get: Unable to alloc HAL msg for event (117 bytes)
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;For my WiFi test setup, I&amp;#39;ve configured my laptop&amp;#39;s WiFi card in monitor mode and I&amp;#39;m tracking all WiFi traffic through Wireshark. This setup works well for beacon frames, but I can&amp;#39;t see any data packets when in connection mode.&lt;/p&gt;
&lt;p&gt;I did receive the email from the FAE, which was helpful, but I&amp;#39;m still working through the issues, my eventual task is to operate a socket raw to transmit data.&amp;nbsp;Would increasing the network buffer configurations in my project help with these errors?&lt;/p&gt;
&lt;p&gt;Any additional guidance would be greatly appreciated.&lt;br /&gt;i modified the sketch with this to test sending data frames&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;struct data_frame {
    uint16_t frame_control;
    uint16_t duration;
    uint8_t da[6];      // Destination Address
    uint8_t sa[6];      // Source Address
    uint8_t bssid[6];   // BSSID
    uint16_t seq_ctrl;
    // For a data frame containing UDP, we add LLC/SNAP headers followed by IP and UDP headers
    uint8_t payload[BEACON_PAYLOAD_LENGTH]; // Reusing the same buffer size
} __packed;

static struct data_frame test_data_frame = {
    .frame_control = htons(0x0208),  // Data frame (0x08) with &amp;quot;to DS&amp;quot; bit set (0x02)
    .duration = 0x0000,
    .da = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55},  // Access Point MAC
    .sa = {0xA0, 0x69, 0x60, 0xE3, 0x52, 0x15},  // Your MAC address
    .bssid = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55},  // Access Point BSSID
    .seq_ctrl = 0x0001,
    .payload = {
        // LLC/SNAP Header
        0xAA, 0xAA, 0x03, 0x00, 0x00, 0x00, 0x08, 0x00,
        
        // IP Header (simplified)
        0x45, 0x00, 0x00, 0x1C, // Version, IHL, TOS, Total Length
        0xAB, 0xCD, 0x00, 0x00, // Identification, Flags, Fragment Offset
        0x40, 0x11, 0x00, 0x00, // TTL, Protocol (UDP=17), Header Checksum (to be calculated)
        0xC0, 0xA8, 0x01, 0x02, // Source IP: 192.168.1.2
        0xC0, 0xA8, 0x01, 0x01, // Destination IP: 192.168.1.1
        
        // UDP Header
        0x12, 0x34, 0x45, 0x67, // Source Port (4660), Destination Port (17767)
        0x00, 0x08, 0x00, 0x00, // Length (8 bytes), Checksum (to be calculated)
        
        // UDP Payload - &amp;quot;HELLO&amp;quot;
        0x48, 0x45, 0x4C, 0x4C, 0x4F
    }
};&lt;/pre&gt;&lt;br /&gt;Also do you have any documentation on the &lt;span&gt;RAW socket type ?&lt;br /&gt;&lt;/span&gt;I was wondering if i could connect that to the wifi interface and send data that way as opposed to raw_tx_transmit&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Olaifa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Raw TX Packet Transmission Issues with nRF WiFi</title><link>https://devzone.nordicsemi.com/thread/525684?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 10:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:679da245-71a3-4b40-ad94-effaf898bf56</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Olaifa,&lt;/p&gt;
&lt;p&gt;What NCS version are you using?&lt;/p&gt;
&lt;p&gt;And I hear you have already gotten&amp;nbsp;an email with some help from an FAE on this. I hope that will clear things up.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>