diff options
author | adrian <adrian@FreeBSD.org> | 2013-05-02 07:02:23 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-05-02 07:02:23 +0000 |
commit | 87b76d8700ad460a083c9dfcfe7b6939bd32ac7b (patch) | |
tree | 54c6f1accb3936d132a4d7cb07ee12604c725faa /sys/contrib | |
parent | adde1f48fc87db23b5f600afc6b03a9f52cf0a69 (diff) | |
download | FreeBSD-src-87b76d8700ad460a083c9dfcfe7b6939bd32ac7b.zip FreeBSD-src-87b76d8700ad460a083c9dfcfe7b6939bd32ac7b.tar.gz |
Fix this code to compile without warnings - AH_DEBUG was pulling in
ichan, but OS_MARK was not using it. It only uses it when
AH_DEBUG_ALQ is also defined.
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c index 32ccce4..1abdeb4 100644 --- a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c +++ b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c @@ -86,11 +86,15 @@ ar9300_set_channel(struct ath_hal *ah, struct ieee80211_channel *chan) u_int8_t clk_25mhz = AH9300(ah)->clk_25mhz; CHAN_CENTERS centers; int load_synth_channel; -#ifdef AH_DEBUG +#ifdef AH_DEBUG_ALQ HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); #endif -#ifdef AH_DEBUG + /* + * Put this behind AH_DEBUG_ALQ for now until the Hornet + * channel_sel code below is made to work. + */ +#ifdef AH_DEBUG_ALQ OS_MARK(ah, AH_MARK_SETCHANNEL, ichan->channel); #endif |