modules: nrf_wifi: Fix net API use
In d45cd6716b 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 <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
committed by
Fabio Baltieri
parent
0a8d5881d4
commit
9a0e8a4148
@@ -607,7 +607,7 @@ void *net_raw_pkt_from_nbuf(void *iface, void *frm,
|
||||
goto out;
|
||||
}
|
||||
|
||||
pkt = net_pkt_rx_alloc_with_buffer(iface, total_len, AF_PACKET, ETH_P_ALL, K_MSEC(100));
|
||||
pkt = net_pkt_rx_alloc_with_buffer(iface, total_len, NET_AF_PACKET, ETH_P_ALL, K_MSEC(100));
|
||||
if (!pkt) {
|
||||
LOG_ERR("%s: Unable to allocate net packet buffer", __func__);
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user