Replace init.svc.hostapd with wifi.hostapd.

Check softap enable status,by getting wifi.hostapd property.

Change-Id: Iee3a0a21fbfbf1cb65d9050c7274b9fc5b245db6
CRs-fixed: 329942
This commit is contained in:
Deepthi Gowri 2012-01-31 19:26:37 +05:30
parent 6344a80689
commit 9e0869e184

View file

@ -357,8 +357,8 @@ s32 is_softap_enabled(void)
{ {
s8 stat[32] = {0}; s8 stat[32] = {0};
if ( property_get("init.svc.hostapd", stat, NULL) && if ( property_get("wifi.hostapd", stat, NULL) &&
(strcmp(stat, "running") == 0)) { (strcmp(stat, "1") == 0)) {
LOGD("HOSTAPD enabled \n"); LOGD("HOSTAPD enabled \n");
return ENABLE; return ENABLE;
} }