mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
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.
This commit is contained in:
parent
f7efb9e28e
commit
0efc449468
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250172
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user