From 2d6512e7c4fe151f6fa236119c45a8bb6e3b7af4 Mon Sep 17 00:00:00 2001 From: Christian B Date: Fri, 8 Dec 2017 13:12:11 +0100 Subject: [PATCH 1/2] Fix compile warning * Fixed a simple compile warning --- os_dep/linux/wifi_regd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_dep/linux/wifi_regd.c b/os_dep/linux/wifi_regd.c index 7e9d39a..fa8ba7b 100644 --- a/os_dep/linux/wifi_regd.c +++ b/os_dep/linux/wifi_regd.c @@ -12,7 +12,7 @@ void rtw_reg_notify_by_driver(_adapter *adapter) { - return 0; + return; } int rtw_regd_init(_adapter *padapter) From e0da194c36fe6c9b1d59ea991a419a1c0803cfc0 Mon Sep 17 00:00:00 2001 From: Christian B Date: Sun, 10 Dec 2017 17:59:26 +0100 Subject: [PATCH 2/2] Hal_SetAntenna(): fix -Wswitch-unreachable * Fixed unreachable switch in 8812au antenna --- hal/hal_mp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hal/hal_mp.c b/hal/hal_mp.c index 4f53504..f7d8618 100644 --- a/hal/hal_mp.c +++ b/hal/hal_mp.c @@ -985,8 +985,9 @@ void mpt_SetRFPath_8812A(PADAPTER pAdapter) } switch (ulAntennaRx) { - u32 reg0xC50 = 0; + u32 reg0xC50; case ANTENNA_A: + reg0xC50 = 0; PHY_SetBBReg(pAdapter, rRxPath_Jaguar, bMaskByte0, 0x11); PHY_SetRFReg(pAdapter, ODM_RF_PATH_B, RF_AC_Jaguar, 0xF0000, 0x1); /*/ RF_B_0x0[19:16] = 1, Standby mode*/ PHY_SetBBReg(pAdapter, rCCK_RX_Jaguar, bCCK_RX_Jaguar, 0x0); @@ -1013,6 +1014,7 @@ void mpt_SetRFPath_8812A(PADAPTER pAdapter) } break; case ANTENNA_B: + reg0xC50 = 0; PHY_SetBBReg(pAdapter, rRxPath_Jaguar, bMaskByte0, 0x22); PHY_SetRFReg(pAdapter, ODM_RF_PATH_A, RF_AC_Jaguar, 0xF0000, 0x1);/*/ RF_A_0x0[19:16] = 1, Standby mode */ PHY_SetBBReg(pAdapter, rCCK_RX_Jaguar, bCCK_RX_Jaguar, 0x1);