always set existing set for legacy handle

pull/8738/head
paul-szczepanek-arm 2018-11-26 17:06:38 +00:00
parent 7f33145760
commit 3ae38ac1e8
1 changed files with 4 additions and 3 deletions

View File

@ -458,8 +458,9 @@ GenericGap::GenericGap(
LEGACY_ADVERTISING_HANDLE,
AdvertisingParameters()
);
_existing_sets.set(LEGACY_ADVERTISING_HANDLE);
}
_existing_sets.set(LEGACY_ADVERTISING_HANDLE);
}
GenericGap::~GenericGap()
@ -1377,14 +1378,14 @@ ble_error_t GenericGap::reset(void)
/* clear advertising set data on the controller */
_pal_gap.clear_advertising_sets();
_existing_sets.set(LEGACY_ADVERTISING_HANDLE);
setExtendedAdvertisingParameters(
LEGACY_ADVERTISING_HANDLE,
AdvertisingParameters()
);
}
_existing_sets.set(LEGACY_ADVERTISING_HANDLE);
return BLE_ERROR_NONE;
}