qsap: Remove support for wifi_fst from QSAP APIs
wifi_fst.h is no longer part of /hardware/libhardware_legacy/ , therefore, compilation of libqsap_sdk would fail. Remove dependencies for wifi_fst from QSAP. Additionally, skip calling 'chown' after changing configuration parameters as QSAP is not changing ownership. CRs-Fixed: 2069881 Change-Id: Iaadfa182270f22555e486dac24a5acafc247b943
This commit is contained in:
@@ -12,6 +12,8 @@ LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CFLAGS += -DSDK_VERSION=\"0.0.1.0\"
|
||||
|
||||
LOCAL_LDLIBS := -llog
|
||||
|
||||
LOCAL_COPY_HEADERS_TO := sdk/softap/include
|
||||
LOCAL_COPY_HEADERS := qsap_api.h
|
||||
LOCAL_COPY_HEADERS += qsap.h
|
||||
|
||||
@@ -54,7 +54,6 @@
|
||||
|
||||
#include "qsap_api.h"
|
||||
#include "qsap.h"
|
||||
#include "wifi_fst.h"
|
||||
|
||||
#include <sys/system_properties.h>
|
||||
|
||||
@@ -696,20 +695,3 @@ 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();
|
||||
}
|
||||
|
||||
@@ -399,14 +399,6 @@ static s32 qsap_write_cfg(s8 *pfile, struct Command * pcmd, s8 *pVal, s8 *presp,
|
||||
unlink(pfile);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (chown(pfile, AID_SYSTEM, AID_WIFI) < 0) {
|
||||
ALOGE("Error changing group ownership of %s to %d: %s",
|
||||
pfile, AID_WIFI, strerror(errno));
|
||||
unlink(pfile);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(result == eERR_UNKNOWN)
|
||||
return eERR_FEATURE_NOT_ENABLED;
|
||||
|
||||
@@ -552,14 +544,6 @@ static s32 qsap_change_cfg(s8 *pfile, struct Command * pcmd, u32 status)
|
||||
unlink(pfile);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (chown(pfile, AID_SYSTEM, AID_WIFI) < 0) {
|
||||
ALOGE("Error changing group ownership of %s to %d: %s",
|
||||
pfile, AID_WIFI, strerror(errno));
|
||||
unlink(pfile);
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -3314,12 +3298,6 @@ void check_for_configuration_files(void)
|
||||
ALOGE("Error changing permissions of %s to 0660: %s",
|
||||
pfile, strerror(errno));
|
||||
}
|
||||
|
||||
if (chown(pfile, AID_SYSTEM, AID_WIFI) < 0) {
|
||||
ALOGE("Error changing group ownership of %s to %d: %s",
|
||||
pfile, AID_WIFI, strerror(errno));
|
||||
}
|
||||
|
||||
/* If deny MAC list file does not exist, copy the default file */
|
||||
if ( NULL == (fp = fopen(DENY_LIST_FILE, "r")) ) {
|
||||
wifi_qsap_reset_to_default(DENY_LIST_FILE, DEFAULT_DENY_LIST_FILE_PATH);
|
||||
@@ -3339,12 +3317,6 @@ void check_for_configuration_files(void)
|
||||
ALOGE("Error changing permissions of %s to 0660: %s",
|
||||
pfile, strerror(errno));
|
||||
}
|
||||
|
||||
if (chown(pfile, AID_SYSTEM, AID_WIFI) < 0) {
|
||||
ALOGE("Error changing group ownership of %s to %d: %s",
|
||||
pfile, AID_WIFI, strerror(errno));
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#if __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <android/log.h>
|
||||
typedef unsigned char u8;
|
||||
typedef char s8;
|
||||
typedef unsigned short int u16;
|
||||
|
||||
Reference in New Issue
Block a user