qsap: Point the hostapd configuration location to /data/misc/wifi

1) This commit points the hostapd configuration location
   to /data/misc/wifi.
2) Aims to enable configure ctrl_interface via qsap command.

CRs-Fixed: 2091779
Change-Id: I8ebfdd4b5c359659272209ab2e0f7b92793e51c9
This commit is contained in:
Ajit Vaishya
2017-08-11 16:52:38 +05:30
parent 0e5ec067f7
commit 8c3357cbe4
2 changed files with 3 additions and 1 deletions

View File

@@ -179,6 +179,7 @@ static struct Command cmd_list[eCMD_LAST] = {
{ "interface", NULL },
{ "ssid2", NULL },
{ "bridge", NULL },
{ "ctrl_interface", NULL },
};
struct Command qsap_str[eSTR_LAST] = {

View File

@@ -93,7 +93,7 @@ enum error_val {
#define CONFIG_FILE_5G "/data/vendor/wifi/hostapd_dual5g.conf"
/** Configuration file name */
#define CONFIG_FILE "/data/vendor/wifi/hostapd.conf"
#define CONFIG_FILE "/data/misc/wifi/hostapd.conf"
/** Default configuration file path */
#define DEFAULT_CONFIG_FILE_PATH "/system/etc/hostapd/hostapd_default.conf"
@@ -347,6 +347,7 @@ typedef enum esap_cmd {
eCMD_INTERFACE = 73,
eCMD_SSID2 = 74,
eCMD_BRIDGE = 75,
eCMD_CTRL_INTERFACE = 76,
eCMD_LAST /** New command numbers should be added above this */
} esap_cmd_t;