tests: DPP-CHIRP-RX reception
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
0e8d569d47
commit
fe27c464fd
1 changed files with 7 additions and 0 deletions
|
@ -5329,6 +5329,13 @@ def test_dpp_chirp(dev, apdev):
|
||||||
dpp_cc = True
|
dpp_cc = True
|
||||||
if chan1 != 5 or chan6 != 5 or chan11 != 1:
|
if chan1 != 5 or chan6 != 5 or chan11 != 1:
|
||||||
raise Exception("Unexpected number of presence announcements sent: %d %d %d" % (chan1, chan6, chan11))
|
raise Exception("Unexpected number of presence announcements sent: %d %d %d" % (chan1, chan6, chan11))
|
||||||
|
ev = hapd.wait_event(["DPP-CHIRP-RX"], timeout=1)
|
||||||
|
if ev is None:
|
||||||
|
raise Exception("No chirp received on the AP")
|
||||||
|
if "freq=2462" not in ev:
|
||||||
|
raise Exception("Chirp reception reported on unexpected channel: " + ev)
|
||||||
|
if "src=" + dev[0].own_addr() not in ev:
|
||||||
|
raise Exception("Unexpected chirp source reported: " + ev)
|
||||||
|
|
||||||
@long_duration_test
|
@long_duration_test
|
||||||
def test_dpp_chirp_listen(dev, apdev):
|
def test_dpp_chirp_listen(dev, apdev):
|
||||||
|
|
Loading…
Reference in a new issue