We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc11c88 + e64d78d commit afe9a5dCopy full SHA for afe9a5d
components/bt/bluedroid/stack/btm/btm_ble_gap.c
@@ -3598,6 +3598,14 @@ void btm_ble_write_adv_enable_complete(UINT8 *p)
3598
} else if (p_cb->p_stop_adv_cb && p_cb->adv_mode == BTM_BLE_ADV_DISABLE) {
3599
p_cb->state = BTM_BLE_STOP_ADV;
3600
(*p_cb->p_stop_adv_cb)(status);
3601
+ }else {
3602
+ // p_cb->p_adv_cb is NULL or p_cb->p_stop_adv_cb is NULL
3603
+ if (p_cb->adv_mode == BTM_BLE_ADV_ENABLE) {
3604
+ p_cb->state = BTM_BLE_ADVERTISING;
3605
3606
+ p_cb->state = BTM_BLE_STOP_ADV;
3607
+ }
3608
+ p_cb->adv_callback_twice = FALSE;
3609
}
3610
/* if write adv enable/disbale not succeed */
3611
if (*p != HCI_SUCCESS) {
0 commit comments