tests: Make wifi_display enforce social channel as operating channel
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 30 Jul 2015 12:57:05 +0000 (15:57 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 31 Jul 2015 12:24:45 +0000 (15:24 +0300)
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>
tests/hwsim/test_p2p_wifi_display.py

index ae50087..e820639 100644 (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())