Lines Matching defs:channel
602 il4965_get_tx_atten_grp(u16 channel)
604 if (channel >= CALIB_IL_TX_ATTEN_GR5_FCH &&
605 channel <= CALIB_IL_TX_ATTEN_GR5_LCH)
608 if (channel >= CALIB_IL_TX_ATTEN_GR1_FCH &&
609 channel <= CALIB_IL_TX_ATTEN_GR1_LCH)
612 if (channel >= CALIB_IL_TX_ATTEN_GR2_FCH &&
613 channel <= CALIB_IL_TX_ATTEN_GR2_LCH)
616 if (channel >= CALIB_IL_TX_ATTEN_GR3_FCH &&
617 channel <= CALIB_IL_TX_ATTEN_GR3_LCH)
620 if (channel >= CALIB_IL_TX_ATTEN_GR4_FCH &&
621 channel <= CALIB_IL_TX_ATTEN_GR4_LCH)
628 il4965_get_sub_band(const struct il_priv *il, u32 channel)
636 if (channel >= il->calib_info->band_info[b].ch_from &&
637 channel <= il->calib_info->band_info[b].ch_to)
658 * il4965_interpolate_chan - Interpolate factory measurements for one channel
661 * sub-band, to apply to channel of interest. Interpolation is proportional to
662 * differences in channel frequencies, which is proportional to differences
663 * in channel number.
666 il4965_interpolate_chan(struct il_priv *il, u32 channel,
678 s = il4965_get_sub_band(il, channel);
680 IL_ERR("Tx Power can not find channel %d\n", channel);
686 chan_info->ch_num = (u8) channel;
688 D_TXPOWER("channel %d subband %d factory cal ch %d & %d\n", channel, s,
700 (u8) il4965_interpolate_value(channel, ch_i1,
704 (u8) il4965_interpolate_value(channel, ch_i1,
708 (u8) il4965_interpolate_value(channel, ch_i1,
713 (s8) il4965_interpolate_value(channel, ch_i1,
1003 il4965_fill_txpower_tbl(struct il_priv *il, u8 band, u16 channel, u8 is_ht40,
1035 /* Get current (RXON) channel, band, width */
1036 D_TXPOWER("chan %d band %d is_ht40 %d\n", channel, band, is_ht40);
1038 ch_info = il_get_channel_info(il, il->band, channel);
1045 txatten_grp = il4965_get_tx_atten_grp(channel);
1047 IL_ERR("Can't find txatten group for channel %d.\n", channel);
1051 D_TXPOWER("channel %d belongs to txatten group %d\n", channel,
1056 channel -= 2;
1058 channel += 2;
1091 /* Interpolate txpower calibration values for this channel,
1093 il4965_interpolate_chan(il, channel, &ch_eeprom_info);
1109 /* select thermal txpower adjustment params, based on channel group
1163 * for this rate on this channel */
1237 * Uses the active RXON for channel, band, and characteristics (ht40, high)
1262 cmd.channel = il->active.channel;
1265 il4965_fill_txpower_tbl(il, band, le16_to_cpu(il->active.channel),
1339 * abort any previous channel switch if still in process
1342 il->switch_channel != il->staging.channel) {
1343 D_11H("abort channel switch on %d\n",
1361 * We do not commit tx power settings while channel changing,
1397 "* channel = %d\n" "* bssid = %pM\n", (new_assoc ? "" : "out"),
1398 le16_to_cpu(il->staging.channel), il->staging.bssid_addr);
1482 cmd.channel = cpu_to_le16(ch);
1488 * calculate the ucode channel switch time
1516 IL_ERR("invalid channel switch from %u to %u\n",
1517 il->active.channel, ch);
1904 * because the device has off-channel reception on chain A.