Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_ble_adv_scan_status' into 'master'
Browse files Browse the repository at this point in the history
fix(bt/bluedroid): Fix ble adv and scan status when deinit bluedroid

Closes BLERP-324

See merge request espressif/esp-idf!27636
  • Loading branch information
Isl2017 committed Dec 7, 2023
2 parents fecd858 + 1eb0522 commit 9bdcfa6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/bt/host/bluedroid/bta/dm/bta_dm_act.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,14 @@ void bta_dm_disable (tBTA_DM_MSG *p_data)
bta_dm_disable_search_and_disc();
bta_dm_cb.disabling = TRUE;

#if BLE_INCLUDED == TRUE
/* reset scan activity status*/
btm_cb.ble_ctr_cb.scan_activity = 0;

/* reset advertising activity status*/
btm_cb.ble_ctr_cb.inq_var.state = 0;
#endif

#if BLE_INCLUDED == TRUE && BTA_GATT_INCLUDED == TRUE
BTM_BleClearBgConnDev();
#endif
Expand Down

0 comments on commit 9bdcfa6

Please sign in to comment.