qsap: add functions for calling FST manager start/stop
FST manager start/stop need to be done in sync with start/stop of softAP controller. To support such functionality, added general functions that can be used pre and post softAP start/stop operations. Change-Id: Ic2dd119b1fbfbf88b7b39000c1633792c8a628c2 CRs-Fixed: 1014736
This commit is contained in:
@@ -4,7 +4,7 @@ LOCAL_PATH := $(call my-dir)
|
|||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_C_INCLUDES :=
|
LOCAL_C_INCLUDES := $(TOP)/hardware/libhardware_legacy/wifi
|
||||||
|
|
||||||
LOCAL_MODULE:= libqsap_sdk
|
LOCAL_MODULE:= libqsap_sdk
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ LOCAL_SRC_FILES := qsap_api.c \
|
|||||||
|
|
||||||
LOCAL_PRELINK_MODULE := false
|
LOCAL_PRELINK_MODULE := false
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES := libnetutils libutils libbinder libcutils
|
LOCAL_SHARED_LIBRARIES := libnetutils libutils libbinder libcutils libhardware_legacy
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,7 @@
|
|||||||
|
|
||||||
#include "qsap_api.h"
|
#include "qsap_api.h"
|
||||||
#include "qsap.h"
|
#include "qsap.h"
|
||||||
|
#include "wifi_fst.h"
|
||||||
|
|
||||||
#include <sys/system_properties.h>
|
#include <sys/system_properties.h>
|
||||||
|
|
||||||
@@ -695,3 +696,20 @@ s32 wifi_qsap_stop_wigig_softap(void)
|
|||||||
usleep(AP_BSS_STOP_DELAY);
|
usleep(AP_BSS_STOP_DELAY);
|
||||||
return eSUCCESS;
|
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();
|
||||||
|
}
|
||||||
|
|||||||
@@ -598,6 +598,9 @@ void qsap_set_ini_filename(void);
|
|||||||
int qsap_set_channel_range(s8 * cmd);
|
int qsap_set_channel_range(s8 * cmd);
|
||||||
int qsap_get_sap_auto_channel_slection(s32 *pautochan);
|
int qsap_get_sap_auto_channel_slection(s32 *pautochan);
|
||||||
int qsap_get_mode(s32 *pmode);
|
int qsap_get_mode(s32 *pmode);
|
||||||
|
int qsap_prepare_softap(void);
|
||||||
|
int qsap_unprepare_softap(void);
|
||||||
|
int qsap_is_fst_enabled(void);
|
||||||
|
|
||||||
#if __cplusplus
|
#if __cplusplus
|
||||||
}; // extern "C"
|
}; // extern "C"
|
||||||
|
|||||||
Reference in New Issue
Block a user