mukesh agrawal | 4d0401c | 2012-01-06 16:05:31 -0800 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "shill/wpa_supplicant.h" |
| 6 | |
| 7 | namespace shill { |
| 8 | |
| 9 | namespace wpa_supplicant { |
| 10 | const char kBSSPropertyBSSID[] = "BSSID"; |
| 11 | const char kBSSPropertySSID[] = "SSID"; |
| 12 | const char kBSSPropertyMode[] = "Mode"; |
| 13 | const char kBSSPropertySignal[] = "Signal"; |
mukesh agrawal | 1590839 | 2011-11-16 18:29:25 +0000 | [diff] [blame] | 14 | const char kCurrentBSSNull[] = "/"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 15 | const char kDBusAddr[] = "fi.w1.wpa_supplicant1"; |
| 16 | const char kDBusPath[] = "/fi/w1/wpa_supplicant1"; |
| 17 | const char kDriverNL80211[] = "nl80211"; |
| 18 | const char kErrorInterfaceExists[] = "fi.w1.wpa_supplicant1.InterfaceExists"; |
mukesh agrawal | 1590839 | 2011-11-16 18:29:25 +0000 | [diff] [blame] | 19 | const char kInterfacePropertyCurrentBSS[] = "CurrentBSS"; |
mukesh agrawal | 7ec7131 | 2011-11-10 02:08:26 +0000 | [diff] [blame] | 20 | const char kInterfacePropertyState[] = "State"; |
| 21 | const char kInterfaceState4WayHandshake[] = "4way_handshake"; |
| 22 | const char kInterfaceStateAssociated[] = "associated"; |
| 23 | const char kInterfaceStateAssociating[] = "associating"; |
| 24 | const char kInterfaceStateAuthenticating[] = "authenticating"; |
| 25 | const char kInterfaceStateCompleted[] = "completed"; |
| 26 | const char kInterfaceStateDisconnected[] = "disconnected"; |
| 27 | const char kInterfaceStateGroupHandshake[] = "group_handshake"; |
| 28 | const char kInterfaceStateInactive[] = "inactive"; |
| 29 | const char kInterfaceStateScanning[] = "scanning"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 30 | const char kKeyManagementMethodSuffixEAP[] = "-eap"; |
| 31 | const char kKeyManagementMethodSuffixPSK[] = "-psk"; |
| 32 | const char kKeyModeNone[] = "NONE"; |
mukesh agrawal | 4d0401c | 2012-01-06 16:05:31 -0800 | [diff] [blame] | 33 | const char kNetworkBgscanMethodLearn[] = "learn"; |
| 34 | const char kNetworkBgscanMethodSimple[] = "simple"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 35 | const char kNetworkModeInfrastructure[] = "infrastructure"; |
| 36 | const char kNetworkModeAdHoc[] = "ad-hoc"; |
| 37 | const char kNetworkModeAccessPoint[] = "ap"; |
mukesh agrawal | 4d0401c | 2012-01-06 16:05:31 -0800 | [diff] [blame] | 38 | const char kNetworkPropertyBgscan[] = "bgscan"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 39 | const char kNetworkPropertyMode[] = "mode"; |
mukesh agrawal | 6489632 | 2011-12-01 01:13:10 +0000 | [diff] [blame] | 40 | const char kNetworkPropertyScanSSID[] = "scan_ssid"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 41 | const char kNetworkPropertySSID[] = "ssid"; |
Thieu Le | f4cbda9 | 2011-11-10 23:41:24 +0000 | [diff] [blame] | 42 | const char kPropertyAuthAlg[] = "auth_alg"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 43 | const char kPropertyKeyManagement[] = "key_mgmt"; |
| 44 | const char kPropertyPreSharedKey[] = "psk"; |
| 45 | const char kPropertyPrivacy[] = "Privacy"; |
| 46 | const char kPropertyRSN[] = "RSN"; |
Paul Stewart | ced6a0b | 2011-11-08 15:32:04 -0800 | [diff] [blame] | 47 | const char kPropertyScanSSIDs[] = "SSIDs"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 48 | const char kPropertyScanType[] = "Type"; |
| 49 | const char kPropertySecurityProtocol[] = "proto"; |
Thieu Le | f4cbda9 | 2011-11-10 23:41:24 +0000 | [diff] [blame] | 50 | const char kPropertyWEPKey[] = "wep_key"; |
| 51 | const char kPropertyWEPTxKeyIndex[] = "wep_tx_keyidx"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 52 | const char kPropertyWPA[] = "WPA"; |
| 53 | const char kScanTypeActive[] = "active"; |
Thieu Le | f4cbda9 | 2011-11-10 23:41:24 +0000 | [diff] [blame] | 54 | const char kSecurityAuthAlg[] = "OPEN SHARED"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 55 | const char kSecurityMethodPropertyKeyManagement[] = "KeyMgmt"; |
| 56 | const char kSecurityModeRSN[] = "RSN"; |
| 57 | const char kSecurityModeWPA[] = "WPA"; |
| 58 | |
| 59 | const uint32_t kNetworkModeInfrastructureInt = 0; |
| 60 | const uint32_t kNetworkModeAdHocInt = 1; |
| 61 | const uint32_t kNetworkModeAccessPointInt = 2; |
Paul Stewart | ced6a0b | 2011-11-08 15:32:04 -0800 | [diff] [blame] | 62 | const uint32_t kScanMaxSSIDsPerScan = 4; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 63 | }; |
| 64 | |
| 65 | } // namespace shill |