wifi-test-suite: Update to latest tip

Fix build with gcc10/-fno-common

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2020-08-13 19:25:14 -07:00
parent a116115efb
commit 514a9e31ee
2 changed files with 31 additions and 1 deletions
@@ -0,0 +1,29 @@
Mark extern variables with 'extern' keyword
This ensures that compilers with -fno-common does not generate multiple definitions
Upstream-Status: Pending
Signedd-off-by: Khem Raj <raj.khem@gmail.com>
--- a/lib/wfa_cs.c
+++ b/lib/wfa_cs.c
@@ -71,7 +71,7 @@ int wfaExecuteCLI(char *CLI);
/* Since the two definitions are used all over the CA function */
char gCmdStr[WFA_CMD_STR_SZ];
-dutCmdResponse_t gGenericResp;
+extern dutCmdResponse_t gGenericResp;
int wfaTGSetPrio(int sockfd, int tgClass);
void create_apts_msg(int msg, unsigned int txbuf[],int id);
--- a/lib/wfa_thr.c
+++ b/lib/wfa_thr.c
@@ -41,7 +41,7 @@
/*
* external global thread sync variables
*/
-tgWMM_t wmm_thr[WFA_THREADS_NUM];
+extern tgWMM_t wmm_thr[WFA_THREADS_NUM];
extern int resetsnd;
extern int resetrcv;
extern int newCmdOn;
@@ -8,12 +8,13 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=0542427ed5c315ca34aa09ae7a85ed32"
SECTION = "test"
S = "${WORKDIR}/git"
SRCREV = "f7a8d7ef7d1a831c1bb47de21fa083536ea2f3a9"
SRCREV = "2da947374c8324f88a0e2155aeba4cf75464b0d8"
SRC_URI = "git://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT.git \
file://0001-Use-toolchain-from-environment-variables.patch \
file://0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch \
file://0003-fix-path-to-usr-sbin-for-script-and-make-script-for-.patch \
file://0004-run-ranlib-per-library-and-use-AR.patch \
file://fno-common.patch \
"
# to avoid host path QA error