mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-21 19:31:55 +00:00
Some checks failed
Build OpenWrt/uCentral images / build (cig_wf186h) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf186w) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf188n) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf189) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf196) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cybertan_eww631-a1) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cybertan_eww631-b1) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap101) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap102) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap104) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap105) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap111) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap112) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101-6e) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101e) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101e-6e) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x_2) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x_3) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x_w) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4xe) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4xi) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4xi_w) (push) Has been cancelled
Build OpenWrt/uCentral images / build (indio_um-305ax) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sercomm_ap72tip) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sonicfi_rap630c-311g) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sonicfi_rap630w-211g) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sonicfi_rap630w-311g) (push) Has been cancelled
Build OpenWrt/uCentral images / build (udaya_a6-id2) (push) Has been cancelled
Build OpenWrt/uCentral images / build (udaya_a6-od2) (push) Has been cancelled
Build OpenWrt/uCentral images / build (wallys_dr5018) (push) Has been cancelled
Build OpenWrt/uCentral images / build (wallys_dr6018) (push) Has been cancelled
Build OpenWrt/uCentral images / build (wallys_dr6018-v4) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_ax820) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_ax840) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_fap640) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_fap650) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_fap655) (push) Has been cancelled
Build OpenWrt/uCentral images / trigger-testing (push) Has been cancelled
Build OpenWrt/uCentral images / create-x64_vm-ami (push) Has been cancelled
Signed-off-by: John Crispin <john@phrozen.org>
90 lines
3.0 KiB
Diff
90 lines
3.0 KiB
Diff
From ed93959f61e103703d04b85351eed7a1c4fe644b Mon Sep 17 00:00:00 2001
|
|
From: Karthikeyan Kathirvel <kathirve@codeaurora.org>
|
|
Date: Fri, 28 Aug 2020 14:16:10 +0530
|
|
Subject: [PATCH] hostapd: Fixed compilation warnings
|
|
|
|
Below warnings are fixed
|
|
|
|
Uninitialized and redefined macro warnings has been fixed
|
|
|
|
../src/crypto/sha1-internal.c:152:0: error: "R3" redefined [-Werror]
|
|
#define R3(v,w,x,y,z,i) \
|
|
^
|
|
In file included from qsdk/staging_dir/toolchain-arm_cortex-a7_gcc-5.2.0_uClibc-1.0.14_eabi/include/signal.h:358:0,
|
|
from qsdk/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/hostapd-supplicant-full/hostapd-2021-12-13/src/utils/includes.h:26,
|
|
from ../src/crypto/sha1-internal.c:9:
|
|
qsdk/staging_dir/toolchain-arm_cortex-a7_gcc-5.2.0_uClibc-1.0.14_eabi/include/sys/ucontext.h:49:0:
|
|
note: this is the location of the previous definition
|
|
#define R3 R3
|
|
|
|
Signed-off-by: Karthikeyan Kathirvel <kathirve@codeaurora.org>
|
|
---
|
|
src/ap/ieee802_11.c | 2 +-
|
|
src/ap/wpa_auth.c | 4 ++++
|
|
src/rsn_supp/wpa.c | 2 +-
|
|
3 files changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/crypto/sha1-internal.c b/src/crypto/sha1-internal.c
|
|
index ffa04df..0b66286 100644
|
|
--- a/src/crypto/sha1-internal.c
|
|
+++ b/src/crypto/sha1-internal.c
|
|
@@ -141,17 +141,32 @@ A million repetitions of "a"
|
|
block->l[(i + 8) & 15] ^ block->l[(i + 2) & 15] ^ block->l[i & 15], 1))
|
|
|
|
/* (R0+R1), R2, R3, R4 are the different operations used in SHA1 */
|
|
+#ifdef R0
|
|
+#undef R0
|
|
+#endif
|
|
#define R0(v,w,x,y,z,i) \
|
|
z += ((w & (x ^ y)) ^ y) + blk0(i) + 0x5A827999 + rol(v, 5); \
|
|
w = rol(w, 30);
|
|
+#ifdef R1
|
|
+#undef R1
|
|
+#endif
|
|
#define R1(v,w,x,y,z,i) \
|
|
z += ((w & (x ^ y)) ^ y) + blk(i) + 0x5A827999 + rol(v, 5); \
|
|
w = rol(w, 30);
|
|
+#ifdef R2
|
|
+#undef R2
|
|
+#endif
|
|
#define R2(v,w,x,y,z,i) \
|
|
z += (w ^ x ^ y) + blk(i) + 0x6ED9EBA1 + rol(v, 5); w = rol(w, 30);
|
|
+#ifdef R3
|
|
+#undef R3
|
|
+#endif
|
|
#define R3(v,w,x,y,z,i) \
|
|
z += (((w | x) & y) | (w & x)) + blk(i) + 0x8F1BBCDC + rol(v, 5); \
|
|
w = rol(w, 30);
|
|
+#ifdef R4
|
|
+#undef R4
|
|
+#endif
|
|
#define R4(v,w,x,y,z,i) \
|
|
z += (w ^ x ^ y) + blk(i) + 0xCA62C1D6 + rol(v, 5); \
|
|
w=rol(w, 30);
|
|
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
|
|
index 826c401..c5995a6 100644
|
|
--- a/src/drivers/driver_nl80211.c
|
|
+++ b/src/drivers/driver_nl80211.c
|
|
@@ -5564,7 +5564,7 @@ static int wpa_driver_nl80211_sta_add(void *priv,
|
|
|
|
if (params->he_capab) {
|
|
wpa_hexdump(MSG_DEBUG, " * he_capab",
|
|
- params->he_capab, params->he_capab_len);
|
|
+ (u8 *) params->he_capab, params->he_capab_len);
|
|
if (nla_put(msg, NL80211_ATTR_HE_CAPABILITY,
|
|
params->he_capab_len, params->he_capab))
|
|
goto fail;
|
|
diff --git a/src/tls/tlsv1_client_ocsp.c b/src/tls/tlsv1_client_ocsp.c
|
|
index 128f4b5..1dac33e 100644
|
|
--- a/src/tls/tlsv1_client_ocsp.c
|
|
+++ b/src/tls/tlsv1_client_ocsp.c
|
|
@@ -315,7 +315,7 @@ tls_process_ocsp_responses(struct tlsv1_client *conn,
|
|
{
|
|
struct asn1_hdr hdr;
|
|
const u8 *pos, *end;
|
|
- enum tls_ocsp_result res;
|
|
+ enum tls_ocsp_result res = TLS_OCSP_NO_RESPONSE;
|
|
|
|
pos = resp;
|
|
end = resp + len;
|