mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/btdm_conn_fail_after_deinit_and_init_spp' into 'master'
component/bt: Fix can't be connected if init SPP again after SPP deinit See merge request idf/esp-idf!2369
This commit is contained in:
commit
325920046f
@ -353,6 +353,7 @@ static void btc_spp_uninit(void)
|
|||||||
}
|
}
|
||||||
for (size_t i = 1; i <= BTA_JV_MAX_RFC_SR_SESSION; i++) {
|
for (size_t i = 1; i <= BTA_JV_MAX_RFC_SR_SESSION; i++) {
|
||||||
if (spp_local_param.spp_slots[i] != NULL && !(spp_local_param.spp_slots[i]->connected)) {
|
if (spp_local_param.spp_slots[i] != NULL && !(spp_local_param.spp_slots[i]->connected)) {
|
||||||
|
BTA_JvRfcommStopServer(spp_local_param.spp_slots[i]->sdp_handle, (void *)spp_local_param.spp_slots[i]->id);
|
||||||
BTA_JvDeleteRecord(spp_local_param.spp_slots[i]->sdp_handle);
|
BTA_JvDeleteRecord(spp_local_param.spp_slots[i]->sdp_handle);
|
||||||
BTA_JvFreeChannel(spp_local_param.spp_slots[i]->scn, BTA_JV_CONN_TYPE_RFCOMM);
|
BTA_JvFreeChannel(spp_local_param.spp_slots[i]->scn, BTA_JV_CONN_TYPE_RFCOMM);
|
||||||
free_spp_slot(spp_local_param.spp_slots[i]);
|
free_spp_slot(spp_local_param.spp_slots[i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user