From: Jouni Malinen Date: Thu, 30 Jul 2015 12:57:05 +0000 (+0300) Subject: tests: Make wifi_display enforce social channel as operating channel X-Git-Tag: hostap_2_5~255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=191d8c4f7819842130e8736755bb1bcc75e7f759;p=thirdparty%2Fhostap.git 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 --- 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())