From e361b610c52906eafdff1a907fc06983887eecab Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sun, 26 Aug 2018 22:23:38 +0200 Subject: [PATCH] Fixed build on POWER systems + moved a switch --- Makefile | 2 +- hal/hal_mp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 72b81b8..9e2b673 100755 --- a/Makefile +++ b/Makefile @@ -1075,7 +1075,7 @@ EXTRA_CFLAGS += -DDM_ODM_SUPPORT_TYPE=0x04 ifeq ($(CONFIG_PLATFORM_I386_PC), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT -SUBARCH := $(shell uname -m | sed -e s/i.86/i386/) +SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/ppc64le/powerpc/) ARCH ?= $(SUBARCH) CROSS_COMPILE ?= KVER := $(shell uname -r) diff --git a/hal/hal_mp.c b/hal/hal_mp.c index bf74a7a..6821e0c 100644 --- a/hal/hal_mp.c +++ b/hal/hal_mp.c @@ -960,7 +960,6 @@ void mpt_SetRFPath_8812A(PADAPTER pAdapter) u8 bandwidth = pmp->bandwidth; u8 eLNA_2g = pHalData->ExternalLNA_2G; u32 ulAntennaTx, ulAntennaRx; - u32 reg0xC50 = 0; ulAntennaTx = pHalData->antenna_tx_path; ulAntennaRx = pHalData->AntennaRxPath; @@ -991,6 +990,7 @@ void mpt_SetRFPath_8812A(PADAPTER pAdapter) } switch (ulAntennaRx) { + u32 reg0xC50; case ANTENNA_A: phy_set_bb_reg(pAdapter, rRxPath_Jaguar, bMaskByte0, 0x11); phy_set_rf_reg(pAdapter, RF_PATH_B, RF_AC_Jaguar, 0xF0000, 0x1); /*/ RF_B_0x0[19:16] = 1, Standby mode*/