From 24efcdf74dc8c7d46b1022350320bb40ead922e2 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 15 May 2020 00:44:27 +0300 Subject: [PATCH] dpp-nfc: Own MAC address fetching from hostapd Signed-off-by: Jouni Malinen --- wpa_supplicant/examples/dpp-nfc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/examples/dpp-nfc.py b/wpa_supplicant/examples/dpp-nfc.py index 2f220f964..4f64bc250 100755 --- a/wpa_supplicant/examples/dpp-nfc.py +++ b/wpa_supplicant/examples/dpp-nfc.py @@ -144,7 +144,10 @@ def get_status_field(wpas, field, extra=None): return None def own_addr(wpas): - return get_status_field(wpas, "address") + addr = get_status_field(wpas, "address") + if addr is None: + addr = get_status_field(wpas, "bssid[0]") + return addr def dpp_bootstrap_gen(wpas, type="qrcode", chan=None, mac=None, info=None, curve=None, key=None):