Skip to content

Commit

Permalink
BLE: Check if extended advertising is available to clear advertising …
Browse files Browse the repository at this point in the history
…set upon connection
  • Loading branch information
pan- committed Oct 5, 2020
1 parent f126793 commit dee20fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions connectivity/FEATURE_BLE/source/generic/GapImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1295,9 +1295,7 @@ void Gap::on_connection_complete(const GapConnectionCompleteEvent &e)
return;
}

// There is no need to check for extending advertising availability as this
// handler is for 4.x controllers
if (e.role == connection_role_t::PERIPHERAL) {
if (!is_extended_advertising_available() && e.role == connection_role_t::PERIPHERAL) {
_active_sets.clear(LEGACY_ADVERTISING_HANDLE);
}

Expand Down

0 comments on commit dee20fe

Please sign in to comment.