Skip to content

Commit cbc7f21

Browse files
committed
Fix Raw TX drops
Support for "net raw send" and TX sample, temp WAR. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent c5d8a08 commit cbc7f21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/wifi/nrf_wifi/src/net_if.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ int nrf_wifi_if_send(const struct device *dev,
397397

398398
#ifdef CONFIG_NRF70_RAW_DATA_TX
399399
memcpy(&raw_hdr, net_pkt_data(pkt), sizeof(raw_hdr));
400-
if (ntohl(raw_hdr.magic_num) == NRF_WIFI_MAGIC_NUM_RAWTX) {
400+
if ((ntohl(raw_hdr.magic_num) == NRF_WIFI_MAGIC_NUM_RAWTX) ||
401+
ntohl(raw_hdr.magic_num) == ntohl(NRF_WIFI_MAGIC_NUM_RAWTX)) {
401402
if (vif_ctx_zep->if_carr_state != NRF_WIFI_FMAC_IF_CARR_STATE_ON) {
402403
goto drop;
403404
}

0 commit comments

Comments
 (0)