@@ -249,7 +249,7 @@ enum nrf_wifi_status nrf_wifi_fmac_rx_event_process(struct nrf_wifi_fmac_dev_ctx
249
249
__func__ ,
250
250
desc_id );
251
251
status = NRF_WIFI_STATUS_FAIL ;
252
- goto out ;
252
+ continue ;
253
253
}
254
254
255
255
status = nrf_wifi_fmac_map_desc_to_pool (fmac_dev_ctx ,
@@ -259,7 +259,8 @@ enum nrf_wifi_status nrf_wifi_fmac_rx_event_process(struct nrf_wifi_fmac_dev_ctx
259
259
if (status != NRF_WIFI_STATUS_SUCCESS ) {
260
260
nrf_wifi_osal_log_err ("%s: nrf_wifi_fmac_map_desc_to_pool failed" ,
261
261
__func__ );
262
- goto out ;
262
+ status = NRF_WIFI_STATUS_FAIL ;
263
+ continue ;
263
264
}
264
265
265
266
nwb_data = (void * )nrf_wifi_hal_buf_unmap_rx (fmac_dev_ctx -> hal_dev_ctx ,
@@ -270,7 +271,8 @@ enum nrf_wifi_status nrf_wifi_fmac_rx_event_process(struct nrf_wifi_fmac_dev_ctx
270
271
if (!nwb_data ) {
271
272
nrf_wifi_osal_log_err ("%s: nrf_wifi_hal_buf_unmap_rx failed" ,
272
273
__func__ );
273
- goto out ;
274
+ status = NRF_WIFI_STATUS_FAIL ;
275
+ continue ;
274
276
}
275
277
276
278
rx_buf_info = & def_dev_ctx -> rx_buf_info [desc_id ];
@@ -345,7 +347,7 @@ enum nrf_wifi_status nrf_wifi_fmac_rx_event_process(struct nrf_wifi_fmac_dev_ctx
345
347
__func__ ,
346
348
(config -> rx_buff_info [i ].pkt_type ));
347
349
status = NRF_WIFI_STATUS_FAIL ;
348
- goto out ;
350
+ continue ;
349
351
}
350
352
def_priv -> callbk_fns .rx_frm_callbk_fn (vif_ctx -> os_vif_ctx ,
351
353
nwb );
@@ -360,7 +362,7 @@ enum nrf_wifi_status nrf_wifi_fmac_rx_event_process(struct nrf_wifi_fmac_dev_ctx
360
362
#endif /* CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS */
361
363
nrf_wifi_osal_nbuf_free (nwb );
362
364
#ifdef NRF_WIFI_MGMT_BUFF_OFFLOAD
363
- goto out ;
365
+ continue ;
364
366
#endif /* NRF_WIFI_MGMT_BUFF_OFFLOAD */
365
367
}
366
368
#if defined(NRF70_RAW_DATA_RX ) || defined(NRF70_PROMISC_DATA_RX )
@@ -396,7 +398,7 @@ enum nrf_wifi_status nrf_wifi_fmac_rx_event_process(struct nrf_wifi_fmac_dev_ctx
396
398
__func__ ,
397
399
config -> rx_pkt_type );
398
400
status = NRF_WIFI_STATUS_FAIL ;
399
- goto out ;
401
+ continue ;
400
402
}
401
403
402
404
status = nrf_wifi_fmac_rx_cmd_send (fmac_dev_ctx ,
@@ -406,9 +408,10 @@ enum nrf_wifi_status nrf_wifi_fmac_rx_event_process(struct nrf_wifi_fmac_dev_ctx
406
408
if (status != NRF_WIFI_STATUS_SUCCESS ) {
407
409
nrf_wifi_osal_log_err ("%s: nrf_wifi_fmac_rx_cmd_send failed" ,
408
410
__func__ );
409
- goto out ;
411
+ continue ;
410
412
}
411
413
}
412
- out :
414
+
415
+ /* A single failure returns failure for the entire event */
413
416
return status ;
414
417
}
0 commit comments