dpp-nfc: Enable hostapd beaconing for listen state
This is needed to be able to receive Public Action frames when hostapd was initially started with start_disabled=1. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
134ad50b0e
commit
7adea21d2f
1 changed files with 6 additions and 1 deletions
|
@ -139,7 +139,7 @@ def get_status(wpas, extra=None):
|
||||||
try:
|
try:
|
||||||
[name, value] = l.split('=', 1)
|
[name, value] = l.split('=', 1)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
logger.info("Ignore unexpected status line: " + l)
|
summary("Ignore unexpected status line: %s" % l)
|
||||||
continue
|
continue
|
||||||
vals[name] = value
|
vals[name] = value
|
||||||
return vals
|
return vals
|
||||||
|
@ -466,6 +466,11 @@ class HandoverServer(nfc.handover.HandoverServer):
|
||||||
summary("Negotiated channel: %d MHz" % freq)
|
summary("Negotiated channel: %d MHz" % freq)
|
||||||
if get_status_field(wpas, "bssid[0]"):
|
if get_status_field(wpas, "bssid[0]"):
|
||||||
summary("Own AP freq: %s MHz" % str(get_status_field(wpas, "freq")))
|
summary("Own AP freq: %s MHz" % str(get_status_field(wpas, "freq")))
|
||||||
|
if get_status_field(wpas, "beacon_set", extra="DRIVER") is None:
|
||||||
|
summary("Enable beaconing to have radio ready for RX")
|
||||||
|
wpas.request("DISABLE")
|
||||||
|
wpas.request("SET start_disabled 0")
|
||||||
|
wpas.request("ENABLE")
|
||||||
cmd = "DPP_LISTEN %d" % freq
|
cmd = "DPP_LISTEN %d" % freq
|
||||||
global enrollee_only
|
global enrollee_only
|
||||||
global configurator_only
|
global configurator_only
|
||||||
|
|
Loading…
Reference in a new issue