dpp-nfc: Skip P2P management interfaces
Do not try to perform DPP operations on the P2P management interface when no specific interface has been identified. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
a80ab0ea95
commit
1d3e16d0b0
1 changed files with 6 additions and 3 deletions
|
@ -80,15 +80,18 @@ def wpas_connect():
|
||||||
return None
|
return None
|
||||||
|
|
||||||
for ctrl in ifaces:
|
for ctrl in ifaces:
|
||||||
if ifname:
|
if ifname and ifname not in ctrl:
|
||||||
if ifname not in ctrl:
|
continue
|
||||||
continue
|
if os.path.basename(ctrl).startswith("p2p-dev-"):
|
||||||
|
# skip P2P management interface
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
summary("Trying to use control interface " + ctrl)
|
summary("Trying to use control interface " + ctrl)
|
||||||
wpas = wpaspy.Ctrl(ctrl)
|
wpas = wpaspy.Ctrl(ctrl)
|
||||||
return wpas
|
return wpas
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
summary("Could not connect to wpa_supplicant")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def dpp_nfc_uri_process(uri):
|
def dpp_nfc_uri_process(uri):
|
||||||
|
|
Loading…
Reference in a new issue