| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # Purpose: This test case verifies that the DUT aheres to the | 5 # Purpose: This test case verifies that the DUT aheres to the |
| 6 # maximum and minimum SSID length requirements. | 6 # maximum and minimum SSID length requirements. |
| 7 { "name":"Limits_Length_SSID", | 7 { "name":"Limits_Length_SSID", |
| 8 "steps":[ | 8 "steps":[ |
| 9 [ "create", { "type":"hostap" } ], | 9 [ "create", { "type":"hostap" } ], |
| 10 [ "config", { "channel":"2412", "mode":"11g" } ], | 10 [ "config", { "channel":"2412", "mode":"11g" } ], |
| 11 | 11 |
| 12 # Test maximum SSID length | 12 # Test maximum SSID length |
| 13 [ "config", { "ssid":str("Max_Length_SSID"*8)[:32] } ], | 13 [ "config", { "ssid":str("Max_Length_SSID"*8)[:32] } ], |
| 14 [ "connect", { "ssid":str("Max_Length_SSID"*8)[:32], | 14 [ "connect", { "ssid":str("Max_Length_SSID"*8)[:32], |
| 15 "security":"none" } ], | 15 "security":"none" } ], |
| 16 [ "client_ping", { "count":"10" } ], | 16 [ "client_ping", { "count":"10" } ], |
| 17 [ "disconnect" ], | 17 [ "disconnect" ], |
| 18 [ "deconfig" ], | 18 [ "deconfig" ], |
| 19 | 19 |
| 20 # Test minimum SSID length | 20 # Test minimum SSID length |
| 21 [ "config", { "ssid": "a" } ], | 21 [ "config", { "ssid": "a" } ], |
| 22 [ "connect", { "ssid":"a", "security":"none" } ], | 22 [ "connect", { "ssid":"a", "security":"none" } ], |
| 23 [ "client_ping", { "count":"10" } ], | 23 [ "client_ping", { "count":"10" } ], |
| 24 [ "disconnect" ], | 24 [ "disconnect" ], |
| 25 [ "deconfig" ], | 25 [ "deconfig" ], |
| 26 | 26 |
| 27 # Test MAX+1 ssid length |
| 28 [ "!connect", { "ssid":str("Max_Length_SSID"*8)[:33], |
| 29 "security":"none", "hidden":True }, |
| 30 "org.chromium.flimflam.Error.InvalidNetworkName" ], |
| 27 [ "destroy" ], | 31 [ "destroy" ], |
| 28 ], | 32 ], |
| 29 } | 33 } |
| OLD | NEW |