From 5a32942fec9836ab486e8fced3ee5667f930df53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Sun, 29 Dec 2024 02:09:18 +0100 Subject: [PATCH] add ap_name identifier --- src/c3nav/routing/locator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/c3nav/routing/locator.py b/src/c3nav/routing/locator.py index 878a92cb..58100402 100644 --- a/src/c3nav/routing/locator.py +++ b/src/c3nav/routing/locator.py @@ -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))