Hi!
We're evaluating the nRF7002 with its DK. As part of that I'm trying to run the sample in ncs/sdk/v3.0.2/nrf/samples/wifi/raw_tx_packet. I build it with:
`west build -b nrf7002dk/nrf5340/cpuapp -- -DCONFIG_RAW_TX_PKT_SAMPLE_NON_CONNECTED_MODE=y -DCONFIG_RAW_TX_PKT_SAMPLE_TX_MODE_CONTINUOUS=y -DCONFIG_RAW_TX_PKT_SAMPLE_INTER_FRAME_DELAY_MS=10`.
That works fine. The board sends out the beacon packets and with a modified version of the monitoring sample, I can see them being received by a second card. (You should perhaps have a sample to receive these packets among the samples...).
I then recompile it by with 4 ms inter-frame delay. Then it works for a short while, then it starts logging:
```
[09:27:59.068,054] <err> net_ctx: Failed to allocate net_pkt
[09:27:59.068,084] <err> raw_tx_packet: Unable to send beacon frame: No buffer space available
[09:28:00.069,244] <err> net_ctx: Failed to allocate net_pkt
[09:28:00.069,274] <err> raw_tx_packet: Unable to send beacon frame: No buffer space available
[09:28:01.070,526] <err> net_ctx: Failed to allocate net_pkt
[09:28:01.070,556] <err> raw_tx_packet: Unable to send beacon frame: No buffer space available
[09:28:02.071,746] <err> net_ctx: Failed to allocate net_pkt
[09:28:02.071,807] <err> raw_tx_packet: Unable to send beacon frame: No buffer space available
```
It is line 2482 in `zephyr/subsys/net/ip/net_context.c` that logs the "Failed to allocate net_pkt" messages.
Once this has happened, it doesn't send packets anymore until I reset the card. I guess there is some other place where it tries to allocate memory, fails and doesn't log it as part of the packet processing so it can never empty the queue.
We've also tried setting the CONFIG_RAW_TX_PKT_SAMPLE_RATE_VALUE, CONFIG_RAW_TX_PKT_SAMPLE_RATE_FLAGS and CONFIG_RAW_TX_PKT_SAMPLE_QUEUE_NUM to 4, 3, 3. Then we should have enough bandwidth and also our packets shouldn't so often be blocked by other wi-fi traffic in the air, but it doesn't seem to change anything.
Is there a working sample somewhere that can be used to measure the possible sending rates with raw packet injection?