From 191d8c4f7819842130e8736755bb1bcc75e7f759 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 30 Jul 2015 15:57:05 +0300 Subject: [PATCH] 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 --- tests/hwsim/test_p2p_wifi_display.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_p2p_wifi_display.py b/tests/hwsim/test_p2p_wifi_display.py index ae5008752..e820639c0 100644 --- a/tests/hwsim/test_p2p_wifi_display.py +++ b/tests/hwsim/test_p2p_wifi_display.py @@ -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())