Home | History | Annotate | Download | only in wifi

Lines Matching refs:Error

39 #include "shill/error.h"
164 LOG(ERROR) << "Unsupported security method " << security_;
262 bool WiFiService::SetPassphrase(const string& passphrase, Error* error) {
264 ValidateWEPPassphrase(passphrase, error);
268 ValidateWPAPassphrase(passphrase, error);
270 error->Populate(Error::kNotSupported);
273 if (!error->IsSuccess()) {
274 LOG(ERROR) << "Passphrase could not be set: " << error->message();
298 void WiFiService::ClearPassphrase(Error* /*error*/) {
304 string WiFiService::GetPreferredDevice(Error* /*error*/) {
309 Error* /*error*/) {
318 string WiFiService::GetTethering(Error* /*error*/) const {
441 Error unused_error;
545 string(WiFiService::*get)(Error*)) {
554 string(WiFiService::*get)(Error* error),
555 bool(WiFiService::*set)(const string&, Error*)) {
563 bool(WiFiService::*set)(const string&, Error*),
564 void(WiFiService::*clear)(Error* error),
575 uint16_t(WiFiService::*get)(Error* error),
576 bool(WiFiService::*set)(const uint16_t& value, Error* error),
577 void(WiFiService::*clear)(Error* error)) {
583 void WiFiService::Connect(Error* error, const char* reason) {
585 LOG(ERROR) << "Can't connect. Service " << unique_name()
587 Error::PopulateAndLog(FROM_HERE,
588 error,
589 Error::kOperationFailed,
590 Error::GetDefaultMessage(Error::kOperationFailed));
596 Error::PopulateAndLog(FROM_HERE,
597 error,
598 Error::kAlreadyConnected,
599 Error::GetDefaultMessage(Error::kAlreadyConnected));
612 LOG(ERROR) << "Can't connect. Service " << unique_name()
614 Error::PopulateAndLog(FROM_HERE,
615 error,
616 Error::kOperationFailed,
617 Error::GetDefaultMessage(Error::kOperationFailed));
626 Error::PopulateAndLog(FROM_HERE,
627 error,
628 Error::kInProgress,
629 Error::GetDefaultMessage(Error::kInProgress));
644 Service::Connect(error, reason);
675 Error unused_error;
706 void WiFiService::Disconnect(Error* error, const char* reason) {
707 Service::Disconnect(error, reason);
711 // a wifi_ reference. This is not a fatal error.
712 LOG_IF(ERROR, IsConnecting())
718 error->Populate(Error::kOperationFailed);
724 string WiFiService::GetDeviceRpcId(Error* error) const {
726 error->Populate(Error::kNotFound, "Not associated with a device");
921 Error* error) {
922 ParseWEPPassphrase(passphrase, nullptr, nullptr, error);
927 Error* error) {
935 error->Populate(Error::kInvalidPassphrase);
940 error->Populate(Error::kInvalidPassphrase);
949 Error* error) {
963 if (CheckWEPKeyIndex(passphrase, error)) {
970 if (CheckWEPIsHex(passphrase, error)) {
978 if (CheckWEPKeyIndex(passphrase, error) &&
979 CheckWEPIsHex(passphrase.substr(2), error)) {
983 } else if (CheckWEPPrefix(passphrase, error) &&
984 CheckWEPIsHex(passphrase.substr(2), error)) {
992 if (CheckWEPKeyIndex(passphrase, error) &&
993 CheckWEPPrefix(passphrase.substr(2), error) &&
994 CheckWEPIsHex(passphrase.substr(4), error)) {
1001 error->Populate(Error::kInvalidPassphrase);
1005 if (error->IsSuccess()) {
1020 bool WiFiService::CheckWEPIsHex(const string& passphrase, Error* error) {
1025 error->Populate(Error::kInvalidPassphrase);
1031 bool WiFiService::CheckWEPKeyIndex(const string& passphrase, Error* error) {
1039 error->Populate(Error::kInvalidPassphrase);
1045 bool WiFiService::CheckWEPPrefix(const string& passphrase, Error* error) {
1050 error->Populate(Error::kInvalidPassphrase);
1186 string WiFiService::GetSecurity(Error* /*error*/) {
1193 string WiFiService::GetSecurityClass(Error* error) {
1194 return ComputeSecurityClass(GetSecurity(error));
1281 uint16_t WiFiService::GetRoamThreshold(Error* /*error*/) {
1286 Error* /*error*/) {
1292 void WiFiService::ClearRoamThreshold(Error* /*error*/) {