Lines Matching refs:ch

880 #define CHECK_AND_PRINT_I(x) ((eeprom_ch_info[ch].flags & EEPROM_CHANNEL_##x) \
892 int band, ch;
929 for (ch = 0; ch < eeprom_ch_count; ch++) {
930 ch_info->channel = eeprom_ch_idx[ch];
937 ch_info->eeprom = eeprom_ch_info[ch];
941 ch_info->flags = eeprom_ch_info[ch].flags;
959 eeprom_ch_info[ch].max_power_avg;
960 ch_info->scan_power = eeprom_ch_info[ch].max_power_avg;
972 eeprom_ch_info[ch].flags,
973 eeprom_ch_info[ch].max_power_avg,
974 ((eeprom_ch_info[ch].
976 !(eeprom_ch_info[ch].
1001 for (ch = 0; ch < eeprom_ch_count; ch++) {
1003 il_mod_ht40_chan_info(il, ieeeband, eeprom_ch_idx[ch],
1004 &eeprom_ch_info[ch],
1009 eeprom_ch_idx[ch] + 4,
1010 &eeprom_ch_info[ch],
1423 D_SCAN("Scan ch.res: " "%d [802.11%s] " "(TSF: 0x%08X:%08X) - %d "
3420 struct il_channel_info *ch;
3470 ch = &il->channel_info[i];
3472 if (!il_is_channel_valid(ch))
3475 sband = &il->bands[ch->band];
3480 ieee80211_channel_to_frequency(ch->channel, ch->band);
3481 geo_ch->max_power = ch->max_power_avg;
3483 geo_ch->hw_value = ch->channel;
3485 if (il_is_channel_valid(ch)) {
3486 if (!(ch->flags & EEPROM_CHANNEL_IBSS))
3489 if (!(ch->flags & EEPROM_CHANNEL_ACTIVE))
3492 if (ch->flags & EEPROM_CHANNEL_RADAR)
3495 geo_ch->flags |= ch->ht40_extension_channel;
3497 if (ch->max_power_avg > max_tx_power)
3498 max_tx_power = ch->max_power_avg;
3503 D_INFO("Channel %d Freq=%d[%sGHz] %s flag=0x%X\n", ch->channel,
3505 il_is_channel_a_band(ch) ? "5.2" : "2.4",
3940 * @ch: requested channel as a pointer to struct ieee80211_channel
3943 * in the staging RXON flag structure based on the ch->band
3946 il_set_rxon_channel(struct il_priv *il, struct ieee80211_channel *ch)
3948 enum nl80211_band band = ch->band;
3949 u16 channel = ch->hw_value;
5020 u16 ch;
5057 ch = channel->hw_value;
5058 ch_info = il_get_channel_info(il, channel->band, ch);
5105 if ((le16_to_cpu(il->staging.channel) != ch))