From c1b3600035bf99c96d65413603e9215cf1872e97 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sat, 1 Feb 2020 09:27:35 +0100 Subject: [PATCH] rtl8812a_phycfg: Workaround for clang bug 42576 --- hal/rtl8812a/rtl8812a_phycfg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hal/rtl8812a/rtl8812a_phycfg.c b/hal/rtl8812a/rtl8812a_phycfg.c index 164d697..cffb8de 100644 --- a/hal/rtl8812a/rtl8812a_phycfg.c +++ b/hal/rtl8812a/rtl8812a_phycfg.c @@ -1465,6 +1465,7 @@ phy_SwBand8812( return ret_value; } +#pragma clang optimize off u8 phy_GetSecondaryChnl_8812( IN PADAPTER Adapter @@ -1506,6 +1507,7 @@ phy_GetSecondaryChnl_8812( /*RTW_INFO("SCMapping: SC Value %x\n", ((SCSettingOf40 << 4) | SCSettingOf20));*/ return (SCSettingOf40 << 4) | SCSettingOf20; } +#pragma clang optimize on VOID phy_SetRegBW_8812(