diff --git a/softap/sdk/qsap_api.c b/softap/sdk/qsap_api.c index 0efe83d..4568cc6 100644 --- a/softap/sdk/qsap_api.c +++ b/softap/sdk/qsap_api.c @@ -1948,6 +1948,11 @@ s16 wifi_qsap_reset_to_default(s8 *pcfgfile, s8 *pdefault) if(eERR_UNKNOWN == rename(buf, pcfgfile)) status = eERR_CONF_FILE; + if (chown(pcfgfile, AID_WIFI, AID_WIFI) < 0) { + ALOGE("Error changing group ownership of %s to %d: %s", + pcfgfile, AID_WIFI, strerror(errno)); + } + /** Remove the temporary file. Dont care the return value */ unlink(buf); diff --git a/softap/sdk/qsap_api.h b/softap/sdk/qsap_api.h index 41ac8a3..3e7035c 100644 --- a/softap/sdk/qsap_api.h +++ b/softap/sdk/qsap_api.h @@ -98,19 +98,19 @@ enum error_val { #define DEFAULT_ACCEPT_LIST_FILE_PATH "/system/etc/hostapd/hostapd.accept" /** Accept list file name */ -#define ACCEPT_LIST_FILE "/data/hostapd/hostapd.accept" +#define ACCEPT_LIST_FILE "/data/misc/wifi/hostapd.accept" /** Default Deny list file name */ #define DEFAULT_DENY_LIST_FILE_PATH "/system/etc/hostapd/hostapd.deny" /** Deny list file name */ -#define DENY_LIST_FILE "/data/hostapd/hostapd.deny" +#define DENY_LIST_FILE "/data/misc/wifi/hostapd.deny" /** Default Ini file */ #define DEFAULT_INI_FILE "/persist/qcom/softap/qcom_cfg_default.ini" /** SDK control interface path */ -#define SDK_CTRL_IF "/data/hostapd/softap_sdk_ctrl" +#define SDK_CTRL_IF "/data/misc/wifi/softap_sdk_ctrl" /** Maximum length of the line in the configuration file */ #define MAX_CONF_LINE_LEN (156)