Lines Matching refs:center_chan
213 u8 center_chan; in rtw_get_channel_params() local
218 center_chan = channel->hw_value; in rtw_get_channel_params()
235 center_chan -= 2; in rtw_get_channel_params()
238 center_chan += 2; in rtw_get_channel_params()
246 center_chan -= 2; in rtw_get_channel_params()
249 center_chan -= 6; in rtw_get_channel_params()
254 cch_by_bw[RTW_CHANNEL_WIDTH_40] = center_chan + 4; in rtw_get_channel_params()
258 center_chan += 2; in rtw_get_channel_params()
261 center_chan += 6; in rtw_get_channel_params()
266 cch_by_bw[RTW_CHANNEL_WIDTH_40] = center_chan - 4; in rtw_get_channel_params()
270 center_chan = 0; in rtw_get_channel_params()
274 chan_params->center_chan = center_chan; in rtw_get_channel_params()
279 cch_by_bw[bandwidth] = center_chan; in rtw_get_channel_params()
291 u8 center_chan, bandwidth, primary_chan_idx; in rtw_set_channel() local
295 if (WARN(ch_param.center_chan == 0, "Invalid channel\n")) in rtw_set_channel()
298 center_chan = ch_param.center_chan; in rtw_set_channel()
303 hal->current_channel = center_chan; in rtw_set_channel()
304 hal->current_band_type = center_chan > 14 ? RTW_BAND_5G : RTW_BAND_2G; in rtw_set_channel()
309 chip->ops->set_channel(rtwdev, center_chan, bandwidth, primary_chan_idx); in rtw_set_channel()
320 rtw_phy_set_tx_power_level(rtwdev, center_chan); in rtw_set_channel()