File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -978,6 +978,7 @@ enum nrf_wifi_status rawtx_cmd_init(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
978978 struct host_rpu_msg * umac_cmd = NULL ;
979979 unsigned int len = 0 ;
980980 struct nrf_wifi_sys_fmac_dev_ctx * sys_dev_ctx = NULL ;
981+ void * nwb = NULL ;
981982
982983 sys_dev_ctx = wifi_dev_priv (fmac_dev_ctx );
983984
@@ -1003,6 +1004,16 @@ enum nrf_wifi_status rawtx_cmd_init(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
10031004 status = nrf_wifi_hal_ctrl_cmd_send (fmac_dev_ctx -> hal_dev_ctx ,
10041005 umac_cmd ,
10051006 (sizeof (* umac_cmd ) + len ));
1007+
1008+ while (nrf_wifi_utils_q_len (txq )) {
1009+ nwb = nrf_wifi_utils_q_dequeue (txq );
1010+
1011+ if (!nwb ) {
1012+ continue ;
1013+ }
1014+
1015+ nrf_wifi_osal_nbuf_free (nwb );
1016+ }
10061017out :
10071018 return status ;
10081019}
You can’t perform that action at this time.
0 commit comments