Skip to content

Commit b7c4fa8

Browse files
Fix crash in deinit path
Remove the nrf_wifi_osal_deinit invocation in the failure case of nrf70_bm_sys_fmac_init/nrf70_bm_rt_fmac_init, since the nrf70_bm_sys_fmac_deinit/nrf70_bm_rt_fmac_deinit need an handle to the os_ops. Also they invoke the osal deinit themselves thereby making the invocation from the init functions unnecessary. Signed-off-by: Sachin D Kulkarni <Sachin.Kulkarni@nordicsemi.no>
1 parent 72e3938 commit b7c4fa8

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

nrf70_bm_lib/source/radio_test/nrf70_bm_core.c

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ int nrf70_bm_rt_fmac_init(void)
9999

100100
return 0;
101101
deinit:
102-
nrf_wifi_osal_deinit();
103102
nrf70_bm_rt_fmac_deinit();
104103
err:
105104
return -1;

nrf70_bm_lib/source/system/nrf70_bm_core.c

-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ int nrf70_bm_sys_fmac_init(void)
400400

401401
return 0;
402402
deinit:
403-
nrf_wifi_osal_deinit();
404403
nrf70_bm_sys_fmac_deinit();
405404
err:
406405
return -1;

0 commit comments

Comments
 (0)