From 8c3357cbe43dcc6c3040f95013a8bff13bcfb1e4 Mon Sep 17 00:00:00 2001 From: Ajit Vaishya Date: Fri, 11 Aug 2017 16:52:38 +0530 Subject: [PATCH] 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 --- softap/sdk/qsap_api.c | 1 + softap/sdk/qsap_api.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/softap/sdk/qsap_api.c b/softap/sdk/qsap_api.c index 9c3599f..8b18c78 100755 --- a/softap/sdk/qsap_api.c +++ b/softap/sdk/qsap_api.c @@ -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] = { diff --git a/softap/sdk/qsap_api.h b/softap/sdk/qsap_api.h index 5d841e7..0c5bf53 100755 --- a/softap/sdk/qsap_api.h +++ b/softap/sdk/qsap_api.h @@ -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;