Skip to content

BLE: fix scanning/advertising when extended features are available but disabled on host #14111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions connectivity/FEATURE_BLE/source/cordio/source/PalGapImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,11 @@ ble_error_t PalGap::periodic_advertising_enable(

uint16_t PalGap::get_maximum_advertising_data_length()
{
#if BLE_FEATURE_EXTENDED_ADVERTISING
return HciGetMaxAdvDataLen();
#else
return HCI_ADV_DATA_LEN;
#endif // BLE_FEATURE_EXTENDED_ADVERTISING
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,10 @@ void NRFCordioHCIDriver::do_terminate()

void NRFCordioHCIDriver::start_reset_sequence()
{
#if BLE_FEATURE_EXTENDED_ADVERTISING
// Make sure extended adv is init
DmExtAdvInit();
#endif // BLE_FEATURE_EXTENDED_ADVERTISING

CordioHCIDriver::start_reset_sequence();
}
Expand Down