wlan: Change location of hostapd files.
Change location of hostapd accept and deny files from /data/hostapd to /data/misc/wifi because SElinux does not allow netd and hostapd to access /data/hostapd directory. Change-Id: I61e8521b3a4b6aab759d3b7cbc04acd3da3c8cf3 CRs-Fixed: 756614
This commit is contained in:
committed by
Neelansh Mittal
parent
00e8d69b78
commit
587b8b3d67
@@ -3196,7 +3196,6 @@ void check_for_configuration_files(void)
|
|||||||
FILE * fp;
|
FILE * fp;
|
||||||
|
|
||||||
/* Check if configuration files are present, if not create the default files */
|
/* Check if configuration files are present, if not create the default files */
|
||||||
mkdir("/data/hostapd", 0771);
|
|
||||||
|
|
||||||
/* If configuration file does not exist copy the default file */
|
/* If configuration file does not exist copy the default file */
|
||||||
if ( NULL == (fp = fopen(CONFIG_FILE, "r")) ) {
|
if ( NULL == (fp = fopen(CONFIG_FILE, "r")) ) {
|
||||||
|
|||||||
@@ -98,19 +98,19 @@ enum error_val {
|
|||||||
#define DEFAULT_ACCEPT_LIST_FILE_PATH "/system/etc/hostapd/hostapd.accept"
|
#define DEFAULT_ACCEPT_LIST_FILE_PATH "/system/etc/hostapd/hostapd.accept"
|
||||||
|
|
||||||
/** Accept list file name */
|
/** 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 */
|
/** Default Deny list file name */
|
||||||
#define DEFAULT_DENY_LIST_FILE_PATH "/system/etc/hostapd/hostapd.deny"
|
#define DEFAULT_DENY_LIST_FILE_PATH "/system/etc/hostapd/hostapd.deny"
|
||||||
|
|
||||||
/** Deny list file name */
|
/** Deny list file name */
|
||||||
#define DENY_LIST_FILE "/data/hostapd/hostapd.deny"
|
#define DENY_LIST_FILE "/data/misc/wifi/hostapd.deny"
|
||||||
|
|
||||||
/** Default Ini file */
|
/** Default Ini file */
|
||||||
#define DEFAULT_INI_FILE "/persist/qcom/softap/qcom_cfg_default.ini"
|
#define DEFAULT_INI_FILE "/persist/qcom/softap/qcom_cfg_default.ini"
|
||||||
|
|
||||||
/** SDK control interface path */
|
/** 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 */
|
/** Maximum length of the line in the configuration file */
|
||||||
#define MAX_CONF_LINE_LEN (156)
|
#define MAX_CONF_LINE_LEN (156)
|
||||||
|
|||||||
Reference in New Issue
Block a user