mirror of
https://github.com/google/bumble.git
synced 2026-05-08 03:58:01 +00:00
use ad_data directly
This commit is contained in:
@@ -65,13 +65,9 @@ class OobData:
|
||||
elif ad_type == AdvertisingData.LE_ROLE:
|
||||
instance.role = LeRole(ad_data[0])
|
||||
elif ad_type == AdvertisingData.LE_SECURE_CONNECTIONS_CONFIRMATION_VALUE:
|
||||
shared_data_c = AdvertisingData.ad_data_to_object(
|
||||
ad_type, ad_data
|
||||
)
|
||||
shared_data_c = ad_data
|
||||
elif ad_type == AdvertisingData.LE_SECURE_CONNECTIONS_RANDOM_VALUE:
|
||||
shared_data_r = AdvertisingData.ad_data_to_object(
|
||||
ad_type, ad_data
|
||||
)
|
||||
shared_data_r = ad_data
|
||||
elif ad_type == AdvertisingData.SECURITY_MANAGER_TK_VALUE:
|
||||
instance.legacy_context = OobLegacyContext(tk=ad_data)
|
||||
if shared_data_c and shared_data_r:
|
||||
|
||||
Reference in New Issue
Block a user