mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-23 21:39:02 +00:00
AR-1 - Adding support category for distributions AR-4 - Remove Allwinner legacy AR-5 - Drop Udoo family and move Udoo board into newly created imx6 family AR-9 - Rename sunxi-next to sunxi-legacy AR-10 - Rename sunxi-dev to sunxi-current AR-11 - Adding Radxa Rockpi S support AR-13 - Rename rockchip64-default to rockchip64-legacy AR-14 - Add rockchip64-current as mainline source AR-15 - Drop Rockchip 4.19.y NEXT, current become 5.3.y AR-16 - Rename RK3399 default to legacy AR-17 - Rename Odroid XU4 next and default to legacy 4.14.y, add DEV 5.4.y AR-18 - Add Odroid N2 current mainline AR-19 - Move Odroid C1 to meson family AR-20 - Rename mvebu64-default to mvebu64-legacy AR-21 - Rename mvebu-default to mvebu-legacy AR-22 - Rename mvebu-next to mvebu-current AR-23 - Drop meson64 default and next, current becomes former DEV 5.3.y AR-24 - Drop cubox family and move Cubox/Hummingboard boards under imx6 AR-26 - Adjust motd AR-27 - Enabling distribution release status AR-28 - Added new GCC compilers AR-29 - Implementing Ubuntu Eoan AR-30 - Add desktop packages per board or family AR-31 - Remove (Ubuntu/Debian) distribution name from image filename AR-32 - Move arch configs from configuration.sh to separate arm64 and armhf config files AR-33 - Revision numbers for beta builds changed to day_in_the_year AR-34 - Patches support linked patches AR-35 - Break meson64 family into gxbb and gxl AR-36 - Add Nanopineo2 Black AR-38 - Upgrade option from old branches to new one via armbian-config AR-41 - Show full timezone info AR-43 - Merge Odroid N2 to meson64 AR-44 - Enable FORCE_BOOTSCRIPT_UPDATE for all builds
75 lines
4 KiB
Diff
75 lines
4 KiB
Diff
From 203a5a7727a80ab519ea00181a909e415c5567ab Mon Sep 17 00:00:00 2001
|
|
From: Frank Wunderlich <frank-w@public-files.de>
|
|
Date: Wed, 29 Aug 2018 19:17:00 +0200
|
|
Subject: [PATCH] [gcc] gcc8-fixes by Dominik Koch + nic_rx-patch from
|
|
https://bugs.linaro.org/show_bug.cgi?id=3823
|
|
|
|
---
|
|
.../misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.c | 10 ++++++----
|
|
.../misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c | 2 +-
|
|
.../connectivity/wlan/gen2/os/linux/include/gl_kal.h | 2 +-
|
|
3 files changed, 8 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.c b/drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.c
|
|
index ba4840414da85..65823023cec0e 100644
|
|
--- a/drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.c
|
|
+++ b/drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_rx.c
|
|
@@ -2061,7 +2061,6 @@ VOID nicRxProcessEventPacket(IN P_ADAPTER_T prAdapter, IN OUT P_SW_RFB_T prSwRfb
|
|
case EVENT_ID_BT_OVER_WIFI:
|
|
#if CFG_ENABLE_BT_OVER_WIFI
|
|
{
|
|
- UINT_8 aucTmp[sizeof(AMPC_EVENT) + sizeof(BOW_LINK_DISCONNECTED)];
|
|
P_EVENT_BT_OVER_WIFI prEventBtOverWifi;
|
|
P_AMPC_EVENT prBowEvent;
|
|
P_BOW_LINK_CONNECTED prBowLinkConnected;
|
|
@@ -2069,11 +2068,11 @@ VOID nicRxProcessEventPacket(IN P_ADAPTER_T prAdapter, IN OUT P_SW_RFB_T prSwRfb
|
|
|
|
prEventBtOverWifi = (P_EVENT_BT_OVER_WIFI) (prEvent->aucBuffer);
|
|
|
|
- /* construct event header */
|
|
- prBowEvent = (P_AMPC_EVENT) aucTmp;
|
|
-
|
|
if (prEventBtOverWifi->ucLinkStatus == 0) {
|
|
/* Connection */
|
|
+ UINT_8 aucTmp[sizeof(AMPC_EVENT) + sizeof(BOW_LINK_CONNECTED)];
|
|
+ /* construct event header */
|
|
+ prBowEvent = (P_AMPC_EVENT) aucTmp;
|
|
prBowEvent->rHeader.ucEventId = BOW_EVENT_ID_LINK_CONNECTED;
|
|
prBowEvent->rHeader.ucSeqNumber = 0;
|
|
prBowEvent->rHeader.u2PayloadLength = sizeof(BOW_LINK_CONNECTED);
|
|
@@ -2086,6 +2085,9 @@ VOID nicRxProcessEventPacket(IN P_ADAPTER_T prAdapter, IN OUT P_SW_RFB_T prSwRfb
|
|
kalIndicateBOWEvent(prAdapter->prGlueInfo, prBowEvent);
|
|
} else {
|
|
/* Disconnection */
|
|
+ UINT_8 aucTmp[sizeof(AMPC_EVENT) + sizeof(BOW_LINK_DISCONNECTED)];
|
|
+ /* construct event header */
|
|
+ prBowEvent = (P_AMPC_EVENT) aucTmp;
|
|
prBowEvent->rHeader.ucEventId = BOW_EVENT_ID_LINK_DISCONNECTED;
|
|
prBowEvent->rHeader.ucSeqNumber = 0;
|
|
prBowEvent->rHeader.u2PayloadLength = sizeof(BOW_LINK_DISCONNECTED);
|
|
diff --git a/drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c b/drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c
|
|
index dd00859d46082..ad7107b1d9a44 100644
|
|
--- a/drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c
|
|
+++ b/drivers/misc/mediatek/connectivity/wlan/gen2/nic/que_mgt.c
|
|
@@ -5021,7 +5021,7 @@ VOID qmHandleRxArpPackets(P_ADAPTER_T prAdapter, P_SW_RFB_T prSwRfb)
|
|
if (prBssInfo && prBssInfo->prStaRecOfAP && prBssInfo->prStaRecOfAP->aucMacAddr) {
|
|
if (EQUAL_MAC_ADDR(&(pucData[ETH_TYPE_LEN_OFFSET + 10]), /* source hardware address */
|
|
prBssInfo->prStaRecOfAP->aucMacAddr)) {
|
|
- strncpy(apIp, &(pucData[ETH_TYPE_LEN_OFFSET + 16]), sizeof(apIp)); /* src ip address */
|
|
+ memcpy(apIp, &(pucData[ETH_TYPE_LEN_OFFSET + 16]), sizeof(apIp)); /* src ip address */
|
|
DBGLOG(INIT, TRACE, "get arp response from AP %d.%d.%d.%d\n",
|
|
apIp[0], apIp[1], apIp[2], apIp[3]);
|
|
}
|
|
diff --git a/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h b/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h
|
|
index 1406905095e64..b1386918c08de 100644
|
|
--- a/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h
|
|
+++ b/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h
|
|
@@ -852,7 +852,7 @@ struct KAL_HALT_CTRL_T {
|
|
|
|
/* string operation */
|
|
#define kalStrCpy(dest, src) strcpy(dest, src)
|
|
-#define kalStrnCpy(dest, src, n) strncpy(dest, src, n)
|
|
+#define kalStrnCpy(dest, src, n) memcpy(dest, src, n)
|
|
#define kalStrCmp(ct, cs) strcmp(ct, cs)
|
|
#define kalStrnCmp(ct, cs, n) strncmp(ct, cs, n)
|
|
#define kalStrChr(s, c) strchr(s, c)
|