data0 = 0;
data0 = data1 = 0;
ar5k_ar5111_channel(hal, channel)	struct ath_hal *hal;	HAL_CHANNEL *channel;{	u_int ieee_channel, ath_channel;	u_int32_t data0, data1, clock;	struct ar5k_athchan_2ghz ath_channel_2ghz;	/*	 * Set the channel on the AR5111 radio	 */	data0 = 0;	ath_channel = ieee_channel = ath_hal_mhz2ieee(channel->c_channel,	    channel->c_channel_flags);	if (channel->c_channel_flags & IEEE80211_CHAN_2GHZ) {		/* Map 2GHz channel to 5GHz Atheros channel ID */		if (ar5k_ar5111_chan2athchan(ieee_channel,			&ath_channel_2ghz) == AH_FALSE)			return (AH_FALSE);		ath_channel = ath_channel_2ghz.a2_athchan;		data0 = ((ar5k_bitswap(ath_channel_2ghz.a2_flags, 8) & 0xff)		    << 5) | (1 << 4);	}	if (ath_channel < 145 || !(ath_channel & 1)) {		clock = 1;		data1 = ((ar5k_bitswap(ath_channel - 24, 8) & 0xff) << 2)		    | (clock << 1) | (1 << 10) | 1;	} else {		clock = 0;		data1 = ((ar5k_bitswap((ath_channel - 24) / 2, 8) & 0xff) << 2)		    | (clock << 1) | (1 << 10) | 1;	}	AR5K_PHY_WRITE(0x27, (data1 & 0xff) | ((data0 & 0xff) << 8));	AR5K_PHY_WRITE(0x34, ((data1 >> 8) & 0xff) | (data0 & 0xff00));	return (AH_TRUE);}