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:
@@ -357,8 +357,8 @@ s32 is_softap_enabled(void)
|
||||
{
|
||||
s8 stat[32] = {0};
|
||||
|
||||
if ( property_get("init.svc.hostapd", stat, NULL) &&
|
||||
(strcmp(stat, "running") == 0)) {
|
||||
if ( property_get("wifi.hostapd", stat, NULL) &&
|
||||
(strcmp(stat, "1") == 0)) {
|
||||
LOGD("HOSTAPD enabled \n");
|
||||
return ENABLE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user