Skip to content

Commit 9a0e8a4

Browse files
aescolarfabiobaltieri
authored andcommitted
modules: nrf_wifi: Fix net API use
In d45cd67 the mayority of the Zephyr codebased was changed to use the Zephyr native net_ prefixed types, but some were forgotten. Without this fix/change the code still builds as we are by now setting CONFIG_NET_NAMESPACE_COMPAT_MODE. But when this is not set, things fail to build. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 0a8d588 commit 9a0e8a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/nrf_wifi/os/shim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ void *net_raw_pkt_from_nbuf(void *iface, void *frm,
607607
goto out;
608608
}
609609

610-
pkt = net_pkt_rx_alloc_with_buffer(iface, total_len, AF_PACKET, ETH_P_ALL, K_MSEC(100));
610+
pkt = net_pkt_rx_alloc_with_buffer(iface, total_len, NET_AF_PACKET, ETH_P_ALL, K_MSEC(100));
611611
if (!pkt) {
612612
LOG_ERR("%s: Unable to allocate net packet buffer", __func__);
613613
goto out;

0 commit comments

Comments
 (0)