dpp-nfc: Own MAC address fetching from hostapd
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
8f96f2c3b1
commit
24efcdf74d
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue