diff options
author | San Mehat <san@google.com> | 2009-05-12 14:36:32 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-05-12 14:36:32 -0700 |
commit | 8d3fc3fde308fbda1b04759b26bb4fc29d41339f (patch) | |
tree | d966244c47d18a9621c20eb774e6548f7d5669d3 /nexus/Supplicant.cpp | |
parent | d530592848985ba4edeafeb413eb5ff58c138eab (diff) | |
download | system_core-8d3fc3fde308fbda1b04759b26bb4fc29d41339f.zip system_core-8d3fc3fde308fbda1b04759b26bb4fc29d41339f.tar.gz system_core-8d3fc3fde308fbda1b04759b26bb4fc29d41339f.tar.bz2 |
nexus: Use constants for errorcodes
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'nexus/Supplicant.cpp')
-rw-r--r-- | nexus/Supplicant.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nexus/Supplicant.cpp b/nexus/Supplicant.cpp index 63ab503..fd56128 100644 --- a/nexus/Supplicant.cpp +++ b/nexus/Supplicant.cpp @@ -38,6 +38,7 @@ #include "SupplicantEvent.h" #include "ScanResult.h" #include "NetworkManager.h" +#include "ErrorCode.h" #include "libwpa_client/wpa_ctrl.h" @@ -173,9 +174,7 @@ int Supplicant::stop() { bool Supplicant::isStarted() { char supp_status[PROPERTY_VALUE_MAX] = {'\0'}; - int rc = property_get(SUPP_PROP_NAME, supp_status, NULL); - - LOGD("rc = %d, property = '%s'", rc, supp_status); + property_get(SUPP_PROP_NAME, supp_status, NULL); if (!strcmp(supp_status, "running")) return true; @@ -359,7 +358,8 @@ int Supplicant::onScanResultsEvent(SupplicantEvent *evt) { char tmp[128]; sprintf(tmp, "%d scan results ready", mLatestScanResults->size()); - NetworkManager::Instance()->getBroadcaster()->sendBroadcast(600, tmp, false); + NetworkManager::Instance()->getBroadcaster()-> + sendBroadcast(ErrorCode::UnsolicitedInformational, tmp, false); pthread_mutex_unlock(&mLatestScanResultsLock); free(reply); } else { |