summarylogtreecommitdiffstats
path: root/etherboot-gcc5.patch
blob: 38838ce9b8343ef3d6717758c7624da0cda8448e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- a/src/drivers/net/ath/ath9k/ath9k_ar5008_phy.c	2011-12-11 03:28:04.000000000 +0100
+++ b/src/drivers/net/ath/ath9k/ath9k_ar5008_phy.c	2015-05-25 11:14:30.732759966 +0200
@@ -1141,7 +1141,7 @@
 			REG_CLR_BIT(ah, AR_PHY_SFCORR_LOW,
 				    AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
 
-		if (!on != aniState->ofdmWeakSigDetectOff) {
+		if ((!on) != aniState->ofdmWeakSigDetectOff) {
 			if (on)
 				ah->stats.ast_ani_ofdmon++;
 			else
@@ -1307,7 +1307,7 @@
 			REG_CLR_BIT(ah, AR_PHY_SFCORR_LOW,
 				    AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
 
-		if (!on != aniState->ofdmWeakSigDetectOff) {
+		if ((!on) != aniState->ofdmWeakSigDetectOff) {
 			DBG2("ath9k: "
 				"** ch %d: ofdm weak signal: %s=>%s\n",
 				chan->channel,
--- a/src/drivers/net/ath/ath9k/ath9k_ar9003_phy.c	2011-12-11 03:28:04.000000000 +0100
+++ b/src/drivers/net/ath/ath9k/ath9k_ar9003_phy.c	2015-05-25 10:33:05.576229086 +0200
@@ -859,7 +859,7 @@
 			REG_CLR_BIT(ah, AR_PHY_SFCORR_LOW,
 				    AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
 
-		if (!on != aniState->ofdmWeakSigDetectOff) {
+		if ((!on) != aniState->ofdmWeakSigDetectOff) {
 			DBG2("ath9k: "
 				"** ch %d: ofdm weak signal: %s=>%s\n",
 				chan->channel,
@@ -1013,7 +1013,7 @@
 			      AR_PHY_MRC_CCK_ENABLE, is_on);
 		REG_RMW_FIELD(ah, AR_PHY_MRC_CCK_CTRL,
 			      AR_PHY_MRC_CCK_MUX_REG, is_on);
-		if (!is_on != aniState->mrcCCKOff) {
+		if ((!is_on) != aniState->mrcCCKOff) {
 			DBG2("ath9k: "
 				"** ch %d: MRC CCK: %s=>%s\n",
 				chan->channel,