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:
Hamad Kadmany
2016-06-12 12:24:38 +03:00
parent c160697b1f
commit 421ce6f83e
3 changed files with 23 additions and 2 deletions

View File

@@ -54,6 +54,7 @@
#include "qsap_api.h"
#include "qsap.h"
#include "wifi_fst.h"
#include <sys/system_properties.h>
@@ -695,3 +696,20 @@ s32 wifi_qsap_stop_wigig_softap(void)
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();
}