Browse Source

tests: Fix p2p_autogo_pref_chan_not_in_regulatory with new regdb

5745 MHz was added as an allowed short range device range in
wireless-regdb for DE which made this test case fail. Fix it for now by
using SE instead of DE for the second part of the test case.

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen 8 years ago
parent
commit
1106833537
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/hwsim/test_p2p_channel.py

+ 1 - 1
tests/hwsim/test_p2p_channel.py

@@ -538,7 +538,7 @@ def test_p2p_autogo_pref_chan_not_in_regulatory(dev, apdev):
             raise Exception("Unexpected number of network blocks: " + str(netw))
             raise Exception("Unexpected number of network blocks: " + str(netw))
         id = netw[0]['id']
         id = netw[0]['id']
 
 
-        set_country("DE", dev[0])
+        set_country("SE", dev[0])
         res = autogo(dev[0], persistent=id)
         res = autogo(dev[0], persistent=id)
         if res['freq'] == "5745":
         if res['freq'] == "5745":
             raise Exception("Unexpected channel selected(2): " + res['freq'])
             raise Exception("Unexpected channel selected(2): " + res['freq'])