mirror of
https://github.com/google/bumble.git
synced 2026-05-10 04:18:03 +00:00
only use 1M parameters by default
This commit is contained in:
@@ -1611,7 +1611,7 @@ class Device(CompositeEventEmitter):
|
|||||||
pending connection.
|
pending connection.
|
||||||
|
|
||||||
connection_parameters_preferences: (BLE only, ignored for BR/EDR)
|
connection_parameters_preferences: (BLE only, ignored for BR/EDR)
|
||||||
* None: use all PHYs with default parameters
|
* None: use the 1M PHY with default parameters
|
||||||
* map: each entry has a PHY as key and a ConnectionParametersPreferences
|
* map: each entry has a PHY as key and a ConnectionParametersPreferences
|
||||||
object as value
|
object as value
|
||||||
|
|
||||||
@@ -1680,9 +1680,7 @@ class Device(CompositeEventEmitter):
|
|||||||
if connection_parameters_preferences is None:
|
if connection_parameters_preferences is None:
|
||||||
if connection_parameters_preferences is None:
|
if connection_parameters_preferences is None:
|
||||||
connection_parameters_preferences = {
|
connection_parameters_preferences = {
|
||||||
HCI_LE_1M_PHY: ConnectionParametersPreferences.default,
|
HCI_LE_1M_PHY: ConnectionParametersPreferences.default
|
||||||
HCI_LE_2M_PHY: ConnectionParametersPreferences.default,
|
|
||||||
HCI_LE_CODED_PHY: ConnectionParametersPreferences.default,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.connect_own_address_type = own_address_type
|
self.connect_own_address_type = own_address_type
|
||||||
|
|||||||
Reference in New Issue
Block a user