add ap_name identifier

This commit is contained in:
Laura Klünder 2024-12-29 02:09:18 +01:00
parent 2325fe6a4d
commit 5a32942fec

View file

@ -96,6 +96,8 @@ class Locator:
identifiers = []
for bssid in beacon.addresses:
identifiers.append(TypedIdentifier(PeerType.WIFI, bssid))
if beacon.ap_name:
identifiers.append(TypedIdentifier(PeerType.WIFI, beacon.ap_name))
if beacon.ibeacon_uuid and beacon.ibeacon_major is not None and beacon.ibeacon_minor is not None:
identifiers.append(
TypedIdentifier(PeerType.IBEACON, (beacon.ibeacon_uuid, beacon.ibeacon_major, beacon.ibeacon_minor))