diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2010-05-11 18:04:13 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2010-05-11 18:04:13 +0000 |
commit | 372869fe603bd9497c86ff9f35fb8c498d1a4153 (patch) | |
tree | 48ae0f1b70386e63299d3623198b7f550e974e90 /sys/dev | |
parent | 5953f681a255638abfd7e4c5b3b3a9c0aaad210d (diff) |
put code that is meaningful only if HT is enabled under
#ifndef IEEE80211_NO_HT for consistency.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/ar9280.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/ar9280.c b/sys/dev/ic/ar9280.c index bca481545a5..9e05c47b5a3 100644 --- a/sys/dev/ic/ar9280.c +++ b/sys/dev/ic/ar9280.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar9280.c,v 1.5 2010/05/10 17:44:21 damien Exp $ */ +/* $OpenBSD: ar9280.c,v 1.6 2010/05/11 18:04:12 damien Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> @@ -494,6 +494,7 @@ ar9280_spur_mitigate(struct athn_softc *sc, struct ieee80211_channel *c, AR_PHY_SPUR_REG_ENABLE_VIT_SPUR_RSSI | SM(AR_PHY_SPUR_REG_SPUR_RSSI_THRESH, AR_SPUR_RSSI_THRESH)); +#ifndef IEEE80211_NO_HT if (extc != NULL) { spur_delta_phase = (spur * 262144) / 10; if (spur < 0) { @@ -503,7 +504,9 @@ ar9280_spur_mitigate(struct athn_softc *sc, struct ieee80211_channel *c, spur_subchannel_sd = 0; spur_off = spur - 10; } - } else { + } else +#endif + { spur_delta_phase = (spur * 524288) / 10; spur_subchannel_sd = 0; spur_off = spur; |