tests: Make wifi_display enforce social channel as operating channel

Previously, this was assumed to be the case due to default channel
selection behavior. However, that may not be the case with driver-based
preference list processing. Enforce a social channel to be used as the
operating channel here since dev[2] uses social channel only device
discovery and needs to find the GO.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-07-30 15:57:05 +03:00 committed by Jouni Malinen
parent 6cc364946c
commit 191d8c4f78

View file

@ -101,7 +101,8 @@ def test_wifi_display(dev):
pin = dev[0].wps_read_pin()
dev[0].p2p_go_neg_auth(dev[1].p2p_dev_addr(), pin, 'display')
res1 = dev[1].p2p_go_neg_init(dev[0].p2p_dev_addr(), pin, 'enter', timeout=20, go_intent=15)
res1 = dev[1].p2p_go_neg_init(dev[0].p2p_dev_addr(), pin, 'enter',
timeout=20, go_intent=15, freq=2437)
res2 = dev[0].p2p_go_neg_auth_result()
bss = dev[0].get_bss("p2p_dev_addr=" + dev[1].p2p_dev_addr())