File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
drivers/wifi/nrf_wifi/src Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ enum ethernet_hw_caps nrf_wifi_if_caps_get(const struct device *dev)
363
363
int nrf_wifi_if_send (const struct device * dev ,
364
364
struct net_pkt * pkt )
365
365
{
366
- int ret = -1 ;
366
+ int ret = - EINVAL ;
367
367
#ifdef CONFIG_NRF70_DATA_TX
368
368
struct nrf_wifi_vif_ctx_zep * vif_ctx_zep = NULL ;
369
369
struct nrf_wifi_ctx_zep * rpu_ctx_zep = NULL ;
@@ -404,6 +404,7 @@ int nrf_wifi_if_send(const struct device *dev,
404
404
405
405
if (nbuf == NULL ) {
406
406
LOG_ERR ("%s: allocation failed" , __func__ );
407
+ ret = - ENOMEM ;
407
408
goto drop ;
408
409
}
409
410
@@ -420,6 +421,7 @@ int nrf_wifi_if_send(const struct device *dev,
420
421
#endif /* CONFIG_NRF70_RAW_DATA_TX */
421
422
if ((vif_ctx_zep -> if_carr_state != NRF_WIFI_FMAC_IF_CARR_STATE_ON ) ||
422
423
(!vif_ctx_zep -> authorized && !is_eapol (pkt ))) {
424
+ ret = - EPERM ;
423
425
goto drop ;
424
426
}
425
427
@@ -432,6 +434,8 @@ int nrf_wifi_if_send(const struct device *dev,
432
434
if (ret == NRF_WIFI_STATUS_FAIL ) {
433
435
/* FMAC API takes care of freeing the nbuf */
434
436
host_stats -> total_tx_drop_pkts ++ ;
437
+ /* Could be many reasons, but likely no space in the queue */
438
+ ret = - ENOBUFS ;
435
439
}
436
440
goto unlock ;
437
441
drop :
You can’t perform that action at this time.
0 commit comments