dpp-nfc: Own MAC address fetching from hostapd

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-05-15 00:44:27 +03:00 committed by Jouni Malinen
parent 8f96f2c3b1
commit 24efcdf74d

View file

@ -144,7 +144,10 @@ def get_status_field(wpas, field, extra=None):
return None return None
def own_addr(wpas): 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, def dpp_bootstrap_gen(wpas, type="qrcode", chan=None, mac=None, info=None,
curve=None, key=None): curve=None, key=None):