bluedroid: fix adv and scan state conflict

This commit is contained in:
chenjianhua
2023-02-09 10:46:04 +08:00
parent 38b036e9ae
commit 7bbfd28d44
3 changed files with 16 additions and 19 deletions
@@ -280,7 +280,7 @@ void l2cble_notify_le_connection (BD_ADDR bda)
tBTM_BLE_INQ_CB *p_cb = &btm_cb.ble_ctr_cb.inq_var;
if(p_cb) {
p_cb->adv_mode = BTM_BLE_ADV_DISABLE;
p_cb->state = BTM_BLE_STOP_ADV;
p_cb->state &= ~BTM_BLE_ADVERTISING;
}
}
/* update link status */