Browse Source

tests: Add update_identifier to one of the HS 2.0 test cases

This allows debug logs to be used to verify byte order in the
PPS MO ID fields.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen 11 years ago
parent
commit
5f1e31cfc8
2 changed files with 3 additions and 2 deletions
  1. 2 1
      tests/hwsim/test_ap_hs20.py
  2. 1 1
      tests/hwsim/wpasupplicant.py

+ 2 - 1
tests/hwsim/test_ap_hs20.py

@@ -403,7 +403,8 @@ def test_ap_hs20_username(dev, apdev):
     id = dev[0].add_cred_values({ 'realm': "example.com",
                                   'username': "hs20-test",
                                   'password': "password",
-                                  'domain': "example.com" })
+                                  'domain': "example.com",
+                                  'update_identifier': "1234" })
     interworking_select(dev[0], bssid, "home", freq="2412")
     interworking_connect(dev[0], bssid, "TTLS")
     check_sp_type(dev[0], "home")

+ 1 - 1
tests/hwsim/wpasupplicant.py

@@ -217,7 +217,7 @@ class WpaSupplicant:
 
         not_quoted = [ "eap", "roaming_consortium",
                        "required_roaming_consortium", "sp_priority",
-                       "max_bss_load" ]
+                       "max_bss_load", "update_identifier" ]
         for field in not_quoted:
             if field in params:
                 self.set_cred(id, field, params[field])