Bluetooth: Relax minimum advertising interval for 5.0 controllers
The 100ms limit is only valid for controllers before version 5.0. For a 5.0 controller the minimum is 20ms (0x00a0) which is already checked for later in the valid_adv_param() function. Change-Id: I0566a38ff855800d2e46e1d2c0a5c7bc9bc610cd Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
ff3e6e333f
commit
0ed68c7680
1 changed files with 2 additions and 1 deletions
|
@ -3761,7 +3761,8 @@ static bool valid_adv_param(const struct bt_le_adv_param *param)
|
|||
* shall not be set to less than 0x00A0 (100 ms) if the
|
||||
* Advertising_Type is set to ADV_SCAN_IND or ADV_NONCONN_IND.
|
||||
*/
|
||||
if (param->interval_min < 0x00a0) {
|
||||
if (bt_dev.hci_version < BT_HCI_VERSION_5_0 &&
|
||||
param->interval_min < 0x00a0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue