Commit 2a0b50c7 authored by Gabor Juhos's avatar Gabor Juhos Committed by John W. Linville

ath9k: fix indentation in ar9003_hw_set_power_per_rate_table

The current indentation is off by one tab.
Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5fc51243
...@@ -4901,84 +4901,79 @@ static void ar9003_hw_set_power_per_rate_table(struct ath_hw *ah, ...@@ -4901,84 +4901,79 @@ static void ar9003_hw_set_power_per_rate_table(struct ath_hw *ah,
i, cfgCtl, pCtlMode[ctlMode], ctlIndex[i], i, cfgCtl, pCtlMode[ctlMode], ctlIndex[i],
chan->channel); chan->channel);
/* /*
* compare test group from regulatory * compare test group from regulatory
* channel list with test mode from pCtlMode * channel list with test mode from pCtlMode
* list * list
*/ */
if ((((cfgCtl & ~CTL_MODE_M) | if ((((cfgCtl & ~CTL_MODE_M) |
(pCtlMode[ctlMode] & CTL_MODE_M)) == (pCtlMode[ctlMode] & CTL_MODE_M)) ==
ctlIndex[i]) || ctlIndex[i]) ||
(((cfgCtl & ~CTL_MODE_M) | (((cfgCtl & ~CTL_MODE_M) |
(pCtlMode[ctlMode] & CTL_MODE_M)) == (pCtlMode[ctlMode] & CTL_MODE_M)) ==
((ctlIndex[i] & CTL_MODE_M) | ((ctlIndex[i] & CTL_MODE_M) |
SD_NO_CTL))) { SD_NO_CTL))) {
twiceMinEdgePower = twiceMinEdgePower =
ar9003_hw_get_max_edge_power(pEepData, ar9003_hw_get_max_edge_power(pEepData,
freq, i, freq, i,
is2ghz); is2ghz);
if ((cfgCtl & ~CTL_MODE_M) == SD_NO_CTL) if ((cfgCtl & ~CTL_MODE_M) == SD_NO_CTL)
/* /*
* Find the minimum of all CTL * Find the minimum of all CTL
* edge powers that apply to * edge powers that apply to
* this channel * this channel
*/ */
twiceMaxEdgePower = twiceMaxEdgePower =
min(twiceMaxEdgePower, min(twiceMaxEdgePower,
twiceMinEdgePower); twiceMinEdgePower);
else { else {
/* specific */ /* specific */
twiceMaxEdgePower = twiceMaxEdgePower = twiceMinEdgePower;
twiceMinEdgePower; break;
break;
}
} }
} }
}
minCtlPower = (u8)min(twiceMaxEdgePower, scaledPower); minCtlPower = (u8)min(twiceMaxEdgePower, scaledPower);
ath_dbg(common, REGULATORY, ath_dbg(common, REGULATORY,
"SEL-Min ctlMode %d pCtlMode %d 2xMaxEdge %d sP %d minCtlPwr %d\n", "SEL-Min ctlMode %d pCtlMode %d 2xMaxEdge %d sP %d minCtlPwr %d\n",
ctlMode, pCtlMode[ctlMode], twiceMaxEdgePower, ctlMode, pCtlMode[ctlMode], twiceMaxEdgePower,
scaledPower, minCtlPower); scaledPower, minCtlPower);
/* Apply ctl mode to correct target power set */ /* Apply ctl mode to correct target power set */
switch (pCtlMode[ctlMode]) { switch (pCtlMode[ctlMode]) {
case CTL_11B: case CTL_11B:
for (i = ALL_TARGET_LEGACY_1L_5L; for (i = ALL_TARGET_LEGACY_1L_5L;
i <= ALL_TARGET_LEGACY_11S; i++) i <= ALL_TARGET_LEGACY_11S; i++)
pPwrArray[i] = pPwrArray[i] = (u8)min((u16)pPwrArray[i],
(u8)min((u16)pPwrArray[i], minCtlPower);
minCtlPower); break;
break; case CTL_11A:
case CTL_11A: case CTL_11G:
case CTL_11G: for (i = ALL_TARGET_LEGACY_6_24;
for (i = ALL_TARGET_LEGACY_6_24; i <= ALL_TARGET_LEGACY_54; i++)
i <= ALL_TARGET_LEGACY_54; i++) pPwrArray[i] = (u8)min((u16)pPwrArray[i],
pPwrArray[i] = minCtlPower);
(u8)min((u16)pPwrArray[i], break;
minCtlPower); case CTL_5GHT20:
break; case CTL_2GHT20:
case CTL_5GHT20: for (i = ALL_TARGET_HT20_0_8_16;
case CTL_2GHT20: i <= ALL_TARGET_HT20_23; i++)
for (i = ALL_TARGET_HT20_0_8_16; pPwrArray[i] = (u8)min((u16)pPwrArray[i],
i <= ALL_TARGET_HT20_23; i++) minCtlPower);
pPwrArray[i] = break;
(u8)min((u16)pPwrArray[i], case CTL_5GHT40:
minCtlPower); case CTL_2GHT40:
break; for (i = ALL_TARGET_HT40_0_8_16;
case CTL_5GHT40: i <= ALL_TARGET_HT40_23; i++)
case CTL_2GHT40: pPwrArray[i] = (u8)min((u16)pPwrArray[i],
for (i = ALL_TARGET_HT40_0_8_16; minCtlPower);
i <= ALL_TARGET_HT40_23; i++) break;
pPwrArray[i] = default:
(u8)min((u16)pPwrArray[i], break;
minCtlPower); }
break;
default:
break;
}
} /* end ctl mode checking */ } /* end ctl mode checking */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment