Compare commits
70 Commits
cm-11.0-XN
...
cm-14.1_pr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7bebb68631 | ||
|
|
ed3a0c2a26 | ||
|
|
fc4e0df7b2 | ||
|
|
31e1ef0ca4 | ||
|
|
f4e6d19070 | ||
|
|
f4eef25c34 | ||
|
|
5cf4b594e9 | ||
|
|
421ce6f83e | ||
|
|
f70b065f22 | ||
|
|
c160697b1f | ||
|
|
6228c9263b | ||
|
|
2a1b069ae0 | ||
|
|
7cab567836 | ||
|
|
350c353182 | ||
|
|
4d6c04aa73 | ||
|
|
5c1a3abaf0 | ||
|
|
1e2073ebaf | ||
|
|
c46bf72725 | ||
|
|
bb81a3fc87 | ||
|
|
a1c6f1dbe5 | ||
|
|
cc16315997 | ||
|
|
e1bfb737ad | ||
|
|
cddacfa293 | ||
|
|
e629e82bc8 | ||
|
|
650d036038 | ||
|
|
fddc6bed07 | ||
|
|
4659de289b | ||
|
|
71846207cc | ||
|
|
120aeacf0f | ||
|
|
64f15fc591 | ||
|
|
d98f57876f | ||
|
|
e9159df711 | ||
|
|
5620bb1611 | ||
|
|
a9fe9d38bd | ||
|
|
e601816b24 | ||
|
|
04a6a9712e | ||
|
|
56710aac73 | ||
|
|
9b8ed11141 | ||
|
|
92dd0a5d38 | ||
|
|
f5fecdcc36 | ||
|
|
587b8b3d67 | ||
|
|
8e9475b346 | ||
|
|
00e8d69b78 | ||
|
|
c4bcc0d420 | ||
|
|
005a67d5ca | ||
|
|
62ada8bd10 | ||
|
|
e42000db1a | ||
|
|
bcc62d3cca | ||
|
|
45c32d6e64 | ||
|
|
124fb55d96 | ||
|
|
1e7bd66054 | ||
|
|
8b0be84bab | ||
|
|
083d51563a | ||
|
|
87d01a1158 | ||
|
|
e976b492fe | ||
|
|
0ecf7a3d93 | ||
|
|
549156b81d | ||
|
|
4a7a459864 | ||
|
|
d289ef3449 | ||
|
|
396a3fe49d | ||
|
|
2addd175cc | ||
|
|
fc7138812d | ||
|
|
4533339d61 | ||
|
|
69b91cc907 | ||
|
|
ff6440b26f | ||
|
|
31088846f0 | ||
|
|
41f17f12e4 | ||
|
|
bd4051d8ff | ||
|
|
1c4304379e | ||
|
|
7a2827f169 |
@@ -11,10 +11,10 @@ LOCAL_MODULE := libQWiFiSoftApCfg
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_C_INCLUDES := $(KERNEL_HEADERS) \
|
||||
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
|
||||
$(JNI_H_INCLUDE)
|
||||
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
|
||||
LOCAL_SHARED_LIBRARIES := libsysutils libcutils libnetutils libcrypto
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
|
||||
@@ -319,7 +319,7 @@ JNIEXPORT jstring JNICALL
|
||||
char code[32] = {0};
|
||||
int connect_retry;
|
||||
|
||||
strncpy(cmd, "softap qccmd ", sizeof(cmd));
|
||||
strlcpy(cmd, "softap qccmd ", sizeof(cmd));
|
||||
|
||||
pcmd = (char *) ((*env)->GetStringUTFChars(env, jcmd, NULL));
|
||||
|
||||
@@ -330,12 +330,12 @@ JNIEXPORT jstring JNICALL
|
||||
|
||||
ALOGD("Received Command: %s\n", pcmd);
|
||||
|
||||
if ((strlen(cmd) + strlen(pcmd)) > sizeof(cmd)) {
|
||||
if ((strlen(cmd) + strlen(pcmd)) >= sizeof(cmd)) {
|
||||
UPDATE_ERROR_CODE("Command length is larger than MAX_CMD_SIZE", "");
|
||||
goto end;
|
||||
}
|
||||
|
||||
strcat(cmd, pcmd);
|
||||
strlcat(cmd, pcmd, sizeof(cmd));
|
||||
|
||||
connect_retry = 0;
|
||||
|
||||
|
||||
8
softap/sdk/Android.mk
Normal file → Executable file
8
softap/sdk/Android.mk
Normal file → Executable file
@@ -4,7 +4,7 @@ LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_C_INCLUDES :=
|
||||
LOCAL_C_INCLUDES := $(TOP)/hardware/libhardware_legacy/wifi $(TOP)/external/libnl/include $(TOP)/external/wpa_supplicant_8/wpa_supplicant/src/drivers
|
||||
|
||||
LOCAL_MODULE:= libqsap_sdk
|
||||
|
||||
@@ -12,6 +12,10 @@ LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CFLAGS += -DSDK_VERSION=\"0.0.1.0\"
|
||||
|
||||
LOCAL_COPY_HEADERS_TO := sdk/softap/include
|
||||
LOCAL_COPY_HEADERS := qsap_api.h
|
||||
LOCAL_COPY_HEADERS += qsap.h
|
||||
|
||||
ifdef WIFI_DRIVER_MODULE_PATH
|
||||
LOCAL_CFLAGS += -DWIFI_DRIVER_MODULE_PATH=\"$(WIFI_DRIVER_MODULE_PATH)\"
|
||||
endif
|
||||
@@ -57,7 +61,7 @@ LOCAL_SRC_FILES := qsap_api.c \
|
||||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := libnetutils libutils libbinder libcutils
|
||||
LOCAL_SHARED_LIBRARIES := libnetutils libutils libbinder libcutils libhardware_legacy libnl
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
|
||||
206
softap/sdk/qsap.c
Executable file → Normal file
206
softap/sdk/qsap.c
Executable file → Normal file
@@ -54,7 +54,7 @@
|
||||
|
||||
#include "qsap_api.h"
|
||||
#include "qsap.h"
|
||||
#include "libwpa_client/wpa_ctrl.h"
|
||||
#include "wifi_fst.h"
|
||||
|
||||
#include <sys/system_properties.h>
|
||||
|
||||
@@ -266,12 +266,12 @@ void qsap_send_module_down_indication(void)
|
||||
|
||||
/* Equivalent to: iwpriv wlan0 sendModuleInd */
|
||||
if ((s = socket(PF_INET, SOCK_DGRAM, 0)) >= 0) {
|
||||
strncpy(wrq.ifr_name, "wlan0", IFNAMSIZ);
|
||||
strlcpy(wrq.ifr_name, "wlan0", IFNAMSIZ);
|
||||
wrq.u.data.length = 0; /* No Set arguments */
|
||||
wrq.u.mode = 5; /* WE_MODULE_DOWN_IND sub-command */
|
||||
ret = ioctl(s, (SIOCIWFIRSTPRIV + 1), &wrq);
|
||||
if (ret < 0 ) {
|
||||
strncpy(wrq.ifr_name, "softap.0", IFNAMSIZ);
|
||||
strlcpy(wrq.ifr_name, "softap.0", IFNAMSIZ);
|
||||
ret = ioctl(s, (SIOCIWFIRSTPRIV + 1), &wrq);
|
||||
if (ret < 0 ) {
|
||||
ALOGE("ioctl failed: %s", strerror(errno));
|
||||
@@ -295,7 +295,7 @@ s32 qsap_send_init_ap(void)
|
||||
|
||||
/* Equivalent to: iwpriv wlan0 initAP */
|
||||
if ((s = socket(AF_INET, SOCK_DGRAM, 0)) >= 0) {
|
||||
strncpy(wrq.ifr_name, "wlan0", IFNAMSIZ);
|
||||
strlcpy(wrq.ifr_name, "wlan0", IFNAMSIZ);
|
||||
wrq.u.data.length = 0; /* No Set arguments */
|
||||
wrq.u.data.flags = 2; /* WE_INIT_AP sub-command */
|
||||
ret = ioctl(s, (SIOCIWFIRSTPRIV + 6), &wrq);
|
||||
@@ -323,7 +323,7 @@ s32 qsap_send_exit_ap(void)
|
||||
|
||||
/* Equivalent to: iwpriv wlan0 exitAP */
|
||||
if ((s = socket(AF_INET, SOCK_DGRAM, 0)) >= 0) {
|
||||
strncpy(wrq.ifr_name, "wlan0", IFNAMSIZ);
|
||||
strlcpy(wrq.ifr_name, "wlan0", IFNAMSIZ);
|
||||
wrq.u.data.length = 0; /* No Set arguments */
|
||||
wrq.u.data.flags = 3; /*WE_EXIT_AP sub-command */
|
||||
|
||||
@@ -409,7 +409,7 @@ s32 wifi_qsap_stop_bss(void)
|
||||
return eERR_STOP_BSS;
|
||||
}
|
||||
|
||||
strncpy(wrq.ifr_name, iface, sizeof(wrq.ifr_name));
|
||||
strlcpy(wrq.ifr_name, iface, sizeof(wrq.ifr_name));
|
||||
wrq.u.data.length = sizeof(cmd);
|
||||
wrq.u.data.pointer = cmd;
|
||||
wrq.u.data.flags = 0;
|
||||
@@ -434,26 +434,22 @@ s32 wifi_qsap_stop_bss(void)
|
||||
|
||||
s32 is_softap_enabled(void)
|
||||
{
|
||||
FILE *fp;
|
||||
char buf[1024];
|
||||
s32 mode = 0;
|
||||
int ret;
|
||||
|
||||
fp = popen("ps", "r");
|
||||
if (fp == NULL) {
|
||||
ALOGE("Failed to open file");
|
||||
ret = qsap_get_mode(&mode);
|
||||
if (eSUCCESS != ret) {
|
||||
ALOGD("Failed to get the mode of operation\n");
|
||||
return eERR_UNKNOWN;
|
||||
}
|
||||
|
||||
while (fgets(buf, sizeof(buf)-1, fp) != NULL) {
|
||||
if(NULL !=(strstr(buf,"hostapd")))
|
||||
{
|
||||
pclose(fp);
|
||||
ALOGD("HOSTAPD enabled\n");
|
||||
return ENABLE;
|
||||
}
|
||||
if (mode == IW_MODE_MASTER) {
|
||||
ALOGD("HOSTAPD Enabled\n");
|
||||
return ENABLE;
|
||||
}
|
||||
|
||||
ALOGD("HOSTAPD disabled\n");
|
||||
pclose(fp);
|
||||
ALOGD("HOSTAPD Disabled\n");
|
||||
|
||||
return DISABLE;
|
||||
}
|
||||
|
||||
@@ -589,3 +585,173 @@ s32 wifi_qsap_reload_softap()
|
||||
|
||||
return eSUCCESS;
|
||||
}
|
||||
|
||||
static pid_t wigigSoftApPid = 0;
|
||||
static const char WIGIG_ENTROPY_FILE[] = "/data/misc/wifi/wigig_entropy.bin";
|
||||
static unsigned char dummy_key[21] = { 0x02, 0x11, 0xbe, 0x33, 0x43, 0x35,
|
||||
0x68, 0x47, 0x84, 0x99, 0xa9, 0x2b,
|
||||
0x1c, 0xd3, 0xee, 0xff, 0xf1, 0xe2,
|
||||
0xf3, 0xf4, 0xf5 };
|
||||
static const char HOSTAPD_BIN_FILE[] = "/system/bin/hostapd";
|
||||
static const char WIGIG_HOSTAPD_CONF_FILE[] = "/data/misc/wifi/wigig_hostapd.conf";
|
||||
#define AP_BSS_START_DELAY 200000
|
||||
#define AP_BSS_STOP_DELAY 500000
|
||||
|
||||
int wigig_ensure_entropy_file_exists()
|
||||
{
|
||||
int ret;
|
||||
int destfd;
|
||||
|
||||
ret = access(WIGIG_ENTROPY_FILE, R_OK|W_OK);
|
||||
if ((ret == 0) || (errno == EACCES)) {
|
||||
if ((ret != 0) &&
|
||||
(chmod(WIGIG_ENTROPY_FILE, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP) != 0)) {
|
||||
ALOGE("Cannot set RW to \"%s\": %s", WIGIG_ENTROPY_FILE, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
destfd = TEMP_FAILURE_RETRY(open(WIGIG_ENTROPY_FILE, O_CREAT|O_RDWR, 0660));
|
||||
if (destfd < 0) {
|
||||
ALOGE("Cannot create \"%s\": %s", WIGIG_ENTROPY_FILE, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (TEMP_FAILURE_RETRY(write(destfd, dummy_key, sizeof(dummy_key))) != sizeof(dummy_key)) {
|
||||
ALOGE("Error writing \"%s\": %s", WIGIG_ENTROPY_FILE, strerror(errno));
|
||||
close(destfd);
|
||||
return -1;
|
||||
}
|
||||
close(destfd);
|
||||
|
||||
/* chmod is needed because open() didn't set permisions properly */
|
||||
if (chmod(WIGIG_ENTROPY_FILE, 0660) < 0) {
|
||||
ALOGE("Error changing permissions of %s to 0660: %s",
|
||||
WIGIG_ENTROPY_FILE, strerror(errno));
|
||||
unlink(WIGIG_ENTROPY_FILE);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (chown(WIGIG_ENTROPY_FILE, AID_SYSTEM, AID_WIFI) < 0) {
|
||||
ALOGE("Error changing group ownership of %s to %d: %s",
|
||||
WIGIG_ENTROPY_FILE, AID_WIFI, strerror(errno));
|
||||
unlink(WIGIG_ENTROPY_FILE);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 wifi_qsap_start_wigig_softap(void)
|
||||
{
|
||||
pid_t pid = 1;
|
||||
|
||||
ALOGD("%s", __func__);
|
||||
|
||||
if (wigigSoftApPid) {
|
||||
ALOGE("Wigig SoftAP is already running");
|
||||
return eERR_START_SAP;
|
||||
}
|
||||
|
||||
if (wigig_ensure_entropy_file_exists() < 0) {
|
||||
ALOGE("Wigig entropy file was not created");
|
||||
}
|
||||
|
||||
if ((pid = fork()) < 0) {
|
||||
ALOGE("fork failed (%s)", strerror(errno));
|
||||
return eERR_START_SAP;
|
||||
}
|
||||
|
||||
if (!pid) {
|
||||
if (execl(HOSTAPD_BIN_FILE, HOSTAPD_BIN_FILE,
|
||||
"-e", WIGIG_ENTROPY_FILE, "-dd",
|
||||
WIGIG_HOSTAPD_CONF_FILE, (char *) NULL)) {
|
||||
ALOGE("execl failed (%s)", strerror(errno));
|
||||
}
|
||||
ALOGE("Wigig SoftAP failed to start. Exiting child process...");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
wigigSoftApPid = pid;
|
||||
ALOGD("Wigig SoftAP started successfully");
|
||||
usleep(AP_BSS_START_DELAY);
|
||||
|
||||
return eSUCCESS;
|
||||
}
|
||||
|
||||
s32 wifi_qsap_stop_wigig_softap(void)
|
||||
{
|
||||
ALOGD("%s", __func__);
|
||||
|
||||
if (wigigSoftApPid == 0) {
|
||||
ALOGE("Wigig SoftAP is not running");
|
||||
return eSUCCESS;
|
||||
}
|
||||
|
||||
ALOGD("Stopping the Wigig SoftAP...");
|
||||
kill(wigigSoftApPid, SIGTERM);
|
||||
waitpid(wigigSoftApPid, NULL, 0);
|
||||
|
||||
wigigSoftApPid = 0;
|
||||
ALOGD("Wigig SoftAP stopped successfully");
|
||||
usleep(AP_BSS_STOP_DELAY);
|
||||
return eSUCCESS;
|
||||
}
|
||||
|
||||
int qsap_prepare_softap()
|
||||
{
|
||||
ALOGD("Starting fstman\n");
|
||||
return wifi_start_fstman(TRUE);
|
||||
}
|
||||
|
||||
int qsap_unprepare_softap()
|
||||
{
|
||||
ALOGD("Stopping fstman\n");
|
||||
return wifi_stop_fstman(TRUE);
|
||||
}
|
||||
|
||||
int qsap_is_fst_enabled()
|
||||
{
|
||||
return is_fst_enabled();
|
||||
}
|
||||
|
||||
s32 wifi_qsap_set_tx_power(s32 tx_power)
|
||||
{
|
||||
#define QCSAP_IOCTL_SET_MAX_TX_POWER (SIOCIWFIRSTPRIV + 22)
|
||||
s32 sock;
|
||||
s32 ret = eERR_SET_TX_POWER;
|
||||
s8 interface[128];
|
||||
s8 *iface;
|
||||
s32 len = 128;
|
||||
struct iwreq wrq;
|
||||
|
||||
if(NULL == (iface = qsap_get_config_value(CONFIG_FILE, &qsap_str[STR_INTERFACE], interface, (u32*)&len))) {
|
||||
ALOGE("%s :interface error \n", __func__);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Issue QCSAP_IOCTL_SET_MAX_TX_POWER ioctl */
|
||||
sock = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
|
||||
if (sock < 0) {
|
||||
ALOGE("%s :socket error \n", __func__);
|
||||
return eERR_SET_TX_POWER;
|
||||
}
|
||||
|
||||
strlcpy(wrq.ifr_name, iface, sizeof(wrq.ifr_name));
|
||||
wrq.u.data.length = sizeof(s32);
|
||||
wrq.u.data.pointer = &tx_power;
|
||||
wrq.u.data.flags = 0;
|
||||
|
||||
ret = ioctl(sock, QCSAP_IOCTL_SET_MAX_TX_POWER, &wrq);
|
||||
close(sock);
|
||||
|
||||
if (ret) {
|
||||
ALOGE("%s :IOCTL set tx power failed: %ld\n", __func__, ret);
|
||||
ret = eERR_SET_TX_POWER;
|
||||
} else {
|
||||
ALOGD("%s :IOCTL set tx power issued\n", __func__);
|
||||
ret = eSUCCESS;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -44,6 +44,8 @@ s32 commit(void);
|
||||
s32 is_softap_enabled(void);
|
||||
s32 wifi_qsap_start_softap(void);
|
||||
s32 wifi_qsap_stop_softap(void);
|
||||
s32 wifi_qsap_start_wigig_softap(void);
|
||||
s32 wifi_qsap_stop_wigig_softap(void);
|
||||
s32 wifi_qsap_reload_softap(void);
|
||||
s32 wifi_qsap_unload_wifi_sta_driver(void);
|
||||
|
||||
@@ -52,6 +54,8 @@ s32 wifi_qsap_start_softap_in_concurrency(void);
|
||||
s32 wifi_qsap_stop_softap_in_concurrency(void);
|
||||
#endif
|
||||
|
||||
s32 wifi_qsap_set_tx_power(s32);
|
||||
|
||||
#if __cplusplus
|
||||
}; // extern "C"
|
||||
#endif
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
34
softap/sdk/qsap_api.h
Normal file → Executable file
34
softap/sdk/qsap_api.h
Normal file → Executable file
@@ -39,8 +39,8 @@ typedef unsigned char u8;
|
||||
typedef char s8;
|
||||
typedef unsigned short int u16;
|
||||
typedef signed short int s16;
|
||||
typedef unsigned long int u32;
|
||||
typedef signed long int s32;
|
||||
typedef unsigned int u32;
|
||||
typedef signed int s32;
|
||||
|
||||
/** Success and error messages */
|
||||
#define SUCCESS "success"
|
||||
@@ -77,7 +77,8 @@ enum error_val {
|
||||
eERR_LOAD_FAILED_SDIOIF,
|
||||
eERR_LOAD_FAILED_SOFTAP,
|
||||
eERR_SET_CHAN_RANGE,
|
||||
eERR_GET_AUTO_CHAN
|
||||
eERR_GET_AUTO_CHAN,
|
||||
eERR_SET_TX_POWER
|
||||
};
|
||||
|
||||
#ifndef WIFI_DRIVER_CONF_FILE
|
||||
@@ -98,19 +99,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)
|
||||
@@ -207,7 +208,7 @@ enum error_val {
|
||||
#define MIN_UPC_LEN (1)
|
||||
#define MAX_UPC_LEN (128)
|
||||
|
||||
#define GTK_MIN (600)
|
||||
#define GTK_MIN (30)
|
||||
|
||||
#define MAX_INT_STR (8)
|
||||
|
||||
@@ -323,6 +324,16 @@ typedef enum esap_cmd {
|
||||
eCMD_SET_CHANNEL_RANGE = 62,
|
||||
eCMD_GET_AUTO_CHANNEL = 63,
|
||||
eCMD_IEEE80211W = 64,
|
||||
eCMD_WPA_KEY_MGMT = 65,
|
||||
eCMD_SET_MAX_CLIENTS = 66,
|
||||
eCMD_IEEE80211AC = 67,
|
||||
eCMD_VHT_OPER_CH_WIDTH = 68,
|
||||
eCMD_ACS_CHAN_LIST = 69,
|
||||
eCMD_HT_CAPAB = 70,
|
||||
eCMD_IEEE80211H = 71,
|
||||
|
||||
eCMD_ENABLE_WIGIG_SOFTAP = 72,
|
||||
eCMD_INTERFACE = 73,
|
||||
|
||||
eCMD_LAST /** New command numbers should be added above this */
|
||||
} esap_cmd_t;
|
||||
@@ -574,16 +585,25 @@ typedef struct sap_auto_channel_info {
|
||||
/** Validate the AP shutoff time */
|
||||
#define IS_VALID_ENERGY_DETECT_TH(x) ((((x >= AP_ENERGY_DETECT_TH_MIN) && (x <= AP_ENERGY_DETECT_TH_MAX)) ||( x == 128)) ? TRUE : FALSE)
|
||||
|
||||
/** Validate the 802dot11h state */
|
||||
#define IS_VALID_DFS_STATE(x) (((x == ENABLE) || (x == DISABLE)) ? TRUE: FALSE)
|
||||
|
||||
/** Function declartion */
|
||||
int qsap_hostd_exec(int argc, char ** argv);
|
||||
void qsap_hostd_exec_cmd(s8 *pcmd, s8 *presp, u32 *plen);
|
||||
s8 *qsap_get_config_value(s8 *pfile, struct Command *pcmd, s8 *pbuf, u32 *plen);
|
||||
int qsapsetSoftap(int argc, char *argv[]);
|
||||
int qsap_add_or_remove_interface(const char *iface_name, int create_iface);
|
||||
void qsap_del_ctrl_iface(void);
|
||||
s16 wifi_qsap_reset_to_default(s8 *pcfgfile, s8 *pdefault);
|
||||
void check_for_configuration_files(void);
|
||||
void qsap_set_ini_filename(void);
|
||||
int qsap_set_channel_range(s8 * cmd);
|
||||
int qsap_get_sap_auto_channel_slection(s32 *pautochan);
|
||||
int qsap_get_mode(s32 *pmode);
|
||||
int qsap_prepare_softap(void);
|
||||
int qsap_unprepare_softap(void);
|
||||
int qsap_is_fst_enabled(void);
|
||||
|
||||
#if __cplusplus
|
||||
}; // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user