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"; |
Thieu Le | e41a72d | 2012-02-06 20:46:51 +0000 | [diff] [blame] | 11 | const char kBSSPropertyFrequency[] = "Frequency"; |
Thieu Le | 1df7f4e | 2012-02-10 15:21:45 -0800 | [diff] [blame] | 12 | const char kBSSPropertyIEs[] = "IEs"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 13 | const char kBSSPropertyMode[] = "Mode"; |
Thieu Le | 1df7f4e | 2012-02-10 15:21:45 -0800 | [diff] [blame] | 14 | const char kBSSPropertyRates[] = "Rates"; |
Thieu Le | e41a72d | 2012-02-06 20:46:51 +0000 | [diff] [blame] | 15 | const char kBSSPropertySSID[] = "SSID"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 16 | const char kBSSPropertySignal[] = "Signal"; |
Gaurav Shah | 10109f2 | 2011-11-11 20:16:22 -0800 | [diff] [blame] | 17 | // TODO(gauravsh): Make this path be a configurable option. crosbug.com/25661 |
| 18 | // Location of the system root CA certificates. |
| 19 | const char kCaPath[] = "/etc/ssl/certs"; |
mukesh agrawal | 1590839 | 2011-11-16 18:29:25 +0000 | [diff] [blame] | 20 | const char kCurrentBSSNull[] = "/"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 21 | const char kDBusAddr[] = "fi.w1.wpa_supplicant1"; |
| 22 | const char kDBusPath[] = "/fi/w1/wpa_supplicant1"; |
| 23 | const char kDriverNL80211[] = "nl80211"; |
Paul Stewart | 2055098 | 2012-04-16 12:16:11 -0700 | [diff] [blame] | 24 | const char kEnginePKCS11[] = "pkcs11"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 25 | const char kErrorInterfaceExists[] = "fi.w1.wpa_supplicant1.InterfaceExists"; |
Paul Stewart | 2055098 | 2012-04-16 12:16:11 -0700 | [diff] [blame] | 26 | const char kInterfacePropertyConfigFile[] = "ConfigFile"; |
mukesh agrawal | 1590839 | 2011-11-16 18:29:25 +0000 | [diff] [blame] | 27 | const char kInterfacePropertyCurrentBSS[] = "CurrentBSS"; |
Paul Stewart | bc6e739 | 2012-05-24 07:07:48 -0700 | [diff] [blame] | 28 | const char kInterfacePropertyDepth[] = "depth"; |
Paul Stewart | 2055098 | 2012-04-16 12:16:11 -0700 | [diff] [blame] | 29 | const char kInterfacePropertyDriver[] = "Driver"; |
| 30 | const char kInterfacePropertyName[] = "Ifname"; |
mukesh agrawal | 7ec7131 | 2011-11-10 02:08:26 +0000 | [diff] [blame] | 31 | const char kInterfacePropertyState[] = "State"; |
Paul Stewart | bc6e739 | 2012-05-24 07:07:48 -0700 | [diff] [blame] | 32 | const char kInterfacePropertySubject[] = "subject"; |
mukesh agrawal | 7ec7131 | 2011-11-10 02:08:26 +0000 | [diff] [blame] | 33 | const char kInterfaceState4WayHandshake[] = "4way_handshake"; |
| 34 | const char kInterfaceStateAssociated[] = "associated"; |
| 35 | const char kInterfaceStateAssociating[] = "associating"; |
| 36 | const char kInterfaceStateAuthenticating[] = "authenticating"; |
| 37 | const char kInterfaceStateCompleted[] = "completed"; |
| 38 | const char kInterfaceStateDisconnected[] = "disconnected"; |
| 39 | const char kInterfaceStateGroupHandshake[] = "group_handshake"; |
| 40 | const char kInterfaceStateInactive[] = "inactive"; |
| 41 | const char kInterfaceStateScanning[] = "scanning"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 42 | const char kKeyManagementMethodSuffixEAP[] = "-eap"; |
| 43 | const char kKeyManagementMethodSuffixPSK[] = "-psk"; |
| 44 | const char kKeyModeNone[] = "NONE"; |
Christopher Wiley | a998df2 | 2012-07-11 15:14:55 -0700 | [diff] [blame] | 45 | const char kNetworkBgscanMethodLearn[] = "learn"; |
| 46 | // None is not a real method name, but we interpret 'none' as a request that |
| 47 | // no background scan parameter should be supplied to wpa_supplicant. |
| 48 | const char kNetworkBgscanMethodNone[] = "none"; |
mukesh agrawal | 4d0401c | 2012-01-06 16:05:31 -0800 | [diff] [blame] | 49 | const char kNetworkBgscanMethodSimple[] = "simple"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 50 | const char kNetworkModeInfrastructure[] = "infrastructure"; |
| 51 | const char kNetworkModeAdHoc[] = "ad-hoc"; |
| 52 | const char kNetworkModeAccessPoint[] = "ap"; |
mukesh agrawal | 4d0401c | 2012-01-06 16:05:31 -0800 | [diff] [blame] | 53 | const char kNetworkPropertyBgscan[] = "bgscan"; |
Gaurav Shah | 10109f2 | 2011-11-11 20:16:22 -0800 | [diff] [blame] | 54 | const char kNetworkPropertyCaPath[] = "ca_path"; |
| 55 | const char kNetworkPropertyEapKeyManagement[] = "key_mgmt"; |
| 56 | const char kNetworkPropertyEapIdentity[] = "identity"; |
| 57 | const char kNetworkPropertyEapEap[] = "eap"; |
| 58 | const char kNetworkPropertyEapInnerEap[] = "phase2"; |
| 59 | const char kNetworkPropertyEapAnonymousIdentity[] = "anonymous_identity"; |
| 60 | const char kNetworkPropertyEapClientCert[] = "client_cert"; |
| 61 | const char kNetworkPropertyEapPrivateKey[] = "private_key"; |
| 62 | const char kNetworkPropertyEapPrivateKeyPassword[] = "private_key_passwd"; |
| 63 | const char kNetworkPropertyEapCaCert[] = "ca_cert"; |
| 64 | const char kNetworkPropertyEapCaPassword[] = "password"; |
| 65 | const char kNetworkPropertyEapCertId[] = "cert_id"; |
| 66 | const char kNetworkPropertyEapKeyId[] = "key_id"; |
| 67 | const char kNetworkPropertyEapCaCertId[] = "ca_cert_id"; |
| 68 | const char kNetworkPropertyEapPin[] = "pin"; |
Paul Stewart | bc6e739 | 2012-05-24 07:07:48 -0700 | [diff] [blame] | 69 | const char kNetworkPropertyEapSubjectMatch[] = "subject_match"; |
Paul Stewart | 2055098 | 2012-04-16 12:16:11 -0700 | [diff] [blame] | 70 | const char kNetworkPropertyEngine[] = "engine"; |
| 71 | const char kNetworkPropertyEngineId[] = "engine_id"; |
Paul Stewart | e2d7c50 | 2012-07-16 16:35:10 -0700 | [diff] [blame] | 72 | const char kNetworkPropertyFrequency[] = "frequency"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 73 | const char kNetworkPropertyMode[] = "mode"; |
mukesh agrawal | 6489632 | 2011-12-01 01:13:10 +0000 | [diff] [blame] | 74 | const char kNetworkPropertyScanSSID[] = "scan_ssid"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 75 | const char kNetworkPropertySSID[] = "ssid"; |
Thieu Le | f4cbda9 | 2011-11-10 23:41:24 +0000 | [diff] [blame] | 76 | const char kPropertyAuthAlg[] = "auth_alg"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 77 | const char kPropertyPreSharedKey[] = "psk"; |
| 78 | const char kPropertyPrivacy[] = "Privacy"; |
| 79 | const char kPropertyRSN[] = "RSN"; |
Paul Stewart | ced6a0b | 2011-11-08 15:32:04 -0800 | [diff] [blame] | 80 | const char kPropertyScanSSIDs[] = "SSIDs"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 81 | const char kPropertyScanType[] = "Type"; |
| 82 | const char kPropertySecurityProtocol[] = "proto"; |
Thieu Le | f4cbda9 | 2011-11-10 23:41:24 +0000 | [diff] [blame] | 83 | const char kPropertyWEPKey[] = "wep_key"; |
| 84 | const char kPropertyWEPTxKeyIndex[] = "wep_tx_keyidx"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 85 | const char kPropertyWPA[] = "WPA"; |
| 86 | const char kScanTypeActive[] = "active"; |
Thieu Le | f4cbda9 | 2011-11-10 23:41:24 +0000 | [diff] [blame] | 87 | const char kSecurityAuthAlg[] = "OPEN SHARED"; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 88 | const char kSecurityMethodPropertyKeyManagement[] = "KeyMgmt"; |
| 89 | const char kSecurityModeRSN[] = "RSN"; |
| 90 | const char kSecurityModeWPA[] = "WPA"; |
| 91 | |
Paul Stewart | 2055098 | 2012-04-16 12:16:11 -0700 | [diff] [blame] | 92 | const uint32_t kDefaultEngine = 1; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 93 | const uint32_t kNetworkModeInfrastructureInt = 0; |
| 94 | const uint32_t kNetworkModeAdHocInt = 1; |
| 95 | const uint32_t kNetworkModeAccessPointInt = 2; |
Paul Stewart | ced6a0b | 2011-11-08 15:32:04 -0800 | [diff] [blame] | 96 | const uint32_t kScanMaxSSIDsPerScan = 4; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 97 | }; |
| 98 | |
| 99 | } // namespace shill |