File gcc.patch of Package rtl8821ce

diff -U 3 -H -d -r -N -- rtl8821ce/hal/btc/halbtc8821c1ant.c rtl8821ce-git20181124/hal/btc/halbtc8821c1ant.c
--- rtl8821ce/hal/btc/halbtc8821c1ant.c	2018-11-24 21:20:17.540786883 +0100
+++ rtl8821ce-git20181124/hal/btc/halbtc8821c1ant.c	2018-11-25 08:17:48.240492224 +0100
@@ -2330,11 +2330,11 @@
 	/*  Normal switch polarity for DPDT, 0xcb4[29:28] = 2b'01 => BTG to Main, WLG to Aux,  0xcb4[29:28] = 2b'10 => BTG to Aux, WLG to Main */
 	/*  Normal switch polarity for SPDT, 0xcb4[29:28] = 2b'01 => Ant to BTG,  0xcb4[29:28] = 2b'10 => Ant to WLG */
 	if (rfe_type->ext_ant_switch_ctrl_polarity)
-		switch_polatiry_inverse =  ~switch_polatiry_inverse;
+		switch_polatiry_inverse =  !switch_polatiry_inverse;
 
 	/* swap control polarity if 1-Ant at Aux */
 	if (rfe_type->ant_at_main_port == FALSE)
-		switch_polatiry_inverse =  ~switch_polatiry_inverse;
+		switch_polatiry_inverse =  !switch_polatiry_inverse;
 
 	switch (pos_type) {
 	default:
@@ -2345,7 +2345,7 @@
 		break;
 	case BT_8821C_1ANT_EXT_ANT_SWITCH_TO_WLG:
 		if (!rfe_type->wlg_Locate_at_btg)
-			switch_polatiry_inverse =  ~switch_polatiry_inverse;
+			switch_polatiry_inverse =  !switch_polatiry_inverse;
 		break;
 	}
 
diff -U 3 -H -d -r -N -- rtl8821ce/hal/btc/halbtc8821c2ant.c rtl8821ce-git20181124/hal/btc/halbtc8821c2ant.c
--- rtl8821ce/hal/btc/halbtc8821c2ant.c	2018-11-24 21:20:17.540786883 +0100
+++ rtl8821ce-git20181124/hal/btc/halbtc8821c2ant.c	2018-11-25 08:17:40.652803294 +0100
@@ -2061,11 +2061,11 @@
 	/*  Normal switch polarity for DPDT, 0xcb4[29:28] = 2b'01 => BTG to Main, WLG to Aux,  0xcb4[29:28] = 2b'10 => BTG to Aux, WLG to Main */
 	/*  Normal switch polarity for SPDT, 0xcb4[29:28] = 2b'01 => Ant to BTG,  0xcb4[29:28] = 2b'10 => Ant to WLG */
 	if (rfe_type->ext_ant_switch_ctrl_polarity)
-		switch_polatiry_inverse =  ~switch_polatiry_inverse;
+		switch_polatiry_inverse =  !switch_polatiry_inverse;
 
 	/* swap control polarity if 1-Ant at Aux */
 	if (rfe_type->ant_at_main_port == FALSE)
-		switch_polatiry_inverse =  ~switch_polatiry_inverse;
+		switch_polatiry_inverse =  !switch_polatiry_inverse;
 
 	switch (pos_type) {
 	default:
@@ -2076,7 +2076,7 @@
 		break;
 	case BT_8821C_2ANT_EXT_ANT_SWITCH_MAIN_TO_WLG:
 		if (!rfe_type->wlg_Locate_at_btg)
-			switch_polatiry_inverse =  ~switch_polatiry_inverse;
+			switch_polatiry_inverse =  !switch_polatiry_inverse;
 
 		break;
 	}
openSUSE Build Service is sponsored by