mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #14111 from paul-szczepanek-arm/ble-fix-ext
BLE: fix scanning/advertising when extended features are available but disabled on hostpull/14100/head
commit
e1d1753726
|
@ -1209,7 +1209,11 @@ ble_error_t PalGap::periodic_advertising_enable(
|
||||||
|
|
||||||
uint16_t PalGap::get_maximum_advertising_data_length()
|
uint16_t PalGap::get_maximum_advertising_data_length()
|
||||||
{
|
{
|
||||||
|
#if BLE_FEATURE_EXTENDED_ADVERTISING
|
||||||
return HciGetMaxAdvDataLen();
|
return HciGetMaxAdvDataLen();
|
||||||
|
#else
|
||||||
|
return HCI_ADV_DATA_LEN;
|
||||||
|
#endif // BLE_FEATURE_EXTENDED_ADVERTISING
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -326,8 +326,10 @@ void NRFCordioHCIDriver::do_terminate()
|
||||||
|
|
||||||
void NRFCordioHCIDriver::start_reset_sequence()
|
void NRFCordioHCIDriver::start_reset_sequence()
|
||||||
{
|
{
|
||||||
|
#if BLE_FEATURE_EXTENDED_ADVERTISING
|
||||||
// Make sure extended adv is init
|
// Make sure extended adv is init
|
||||||
DmExtAdvInit();
|
DmExtAdvInit();
|
||||||
|
#endif // BLE_FEATURE_EXTENDED_ADVERTISING
|
||||||
|
|
||||||
CordioHCIDriver::start_reset_sequence();
|
CordioHCIDriver::start_reset_sequence();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue