qsap: Put files in a sane location
* And set their perms Change-Id: Ifc61a3504433f6b7e1602432ecea70c37785c895
This commit is contained in:
@@ -1943,6 +1943,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);
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user