Home
last modified time | relevance | path

Searched refs:chdef (Results 1 – 25 of 60) sorted by relevance

123

/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/
H A Dhal_chan.c40 struct rtw_chan_def *chdef, bool do_rfk) in rtw_hal_set_ch_bw() argument
51 if ((chdef->chan != cur_chdef->chan) || in rtw_hal_set_ch_bw()
52 (chdef->bw != cur_chdef->bw) || in rtw_hal_set_ch_bw()
53 (chdef->offset != cur_chdef->offset)) { in rtw_hal_set_ch_bw()
63 center_ch = rtw_phl_get_center_ch(chdef->chan, chdef->bw, chdef->offset); in rtw_hal_set_ch_bw()
65 center_ch, chdef->chan, chdef->bw); in rtw_hal_set_ch_bw()
67 change_band = chdef->band; in rtw_hal_set_ch_bw()
69 status = rtw_hal_mac_set_bw(hal_info, band_idx, chdef->chan, in rtw_hal_set_ch_bw()
71 chdef->bw); in rtw_hal_set_ch_bw()
78 if(chdef->bw == CHANNEL_WIDTH_80_80 && central_ch_seg1 == 0) { in rtw_hal_set_ch_bw()
[all …]
H A Dhal_chan.h19 struct rtw_chan_def *chdef, bool do_rfk);
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/
H A Dhal_chan.c40 struct rtw_chan_def *chdef, bool do_rfk) in rtw_hal_set_ch_bw() argument
51 if ((chdef->chan != cur_chdef->chan) || in rtw_hal_set_ch_bw()
52 (chdef->bw != cur_chdef->bw) || in rtw_hal_set_ch_bw()
53 (chdef->offset != cur_chdef->offset)) { in rtw_hal_set_ch_bw()
63 center_ch = rtw_phl_get_center_ch(chdef->chan, chdef->bw, chdef->offset); in rtw_hal_set_ch_bw()
65 center_ch, chdef->chan, chdef->bw); in rtw_hal_set_ch_bw()
67 change_band = chdef->band; in rtw_hal_set_ch_bw()
69 status = rtw_hal_mac_set_bw(hal_info, band_idx, chdef->chan, in rtw_hal_set_ch_bw()
71 chdef->bw); in rtw_hal_set_ch_bw()
78 if(chdef->bw == CHANNEL_WIDTH_80_80 && central_ch_seg1 == 0) { in rtw_hal_set_ch_bw()
[all …]
H A Dhal_chan.h19 struct rtw_chan_def *chdef, bool do_rfk);
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/
H A Dphl_regulation_6g.c23 static void _get_6ghz_ch_info(const struct chdef_6ghz *chdef, in _get_6ghz_ch_info() argument
28 *ch = ((chdef->support_ch_u5[2] << 16) | in _get_6ghz_ch_info()
29 (chdef->support_ch_u5[1] << 8) | in _get_6ghz_ch_info()
30 (chdef->support_ch_u5[0])); in _get_6ghz_ch_info()
31 *passive = ((chdef->passive_u5[2] << 16) | in _get_6ghz_ch_info()
32 (chdef->passive_u5[1] << 8) | in _get_6ghz_ch_info()
33 (chdef->passive_u5[0])); in _get_6ghz_ch_info()
38 *ch = chdef->support_ch_u6; in _get_6ghz_ch_info()
39 *passive = chdef->passive_u6; in _get_6ghz_ch_info()
44 *ch = ((chdef->support_ch_u7[2] << 16) | in _get_6ghz_ch_info()
[all …]
H A Dphl_regulation.c71 const struct chdef_2ghz *chdef = NULL; in _chnlplan_update_2g() local
83 chdef = &chdef2g[i]; in _chnlplan_update_2g()
88 if (!chdef) in _chnlplan_update_2g()
96 ch = ((chdef->support_ch[1] << 8) | (chdef->support_ch[0])); in _chnlplan_update_2g()
97 passive = ((chdef->passive[1] << 8) | (chdef->passive[0])); in _chnlplan_update_2g()
105 static void _get_5ghz_ch_info(const struct chdef_5ghz *chdef, in _get_5ghz_ch_info() argument
110 *ch = chdef->support_ch_b1; in _get_5ghz_ch_info()
111 *passive = chdef->passive_b1; in _get_5ghz_ch_info()
112 *dfs = chdef->dfs_b1; in _get_5ghz_ch_info()
117 *ch = chdef->support_ch_b2; in _get_5ghz_ch_info()
[all …]
H A Dphl_chan.h33 struct rtw_chan_def *chdef, bool do_rfk);
50 struct rtw_chan_def *chdef,
H A Dphl_chan.c110 struct rtw_chan_def *chdef, bool do_rfk) in phl_set_ch_bw() argument
115 chdef->band = rtw_phl_get_band_type(chdef->chan); in phl_set_ch_bw()
117 phl_radar_detect_hdl(phl_info, chdef->chan, chdef->bw, chdef->offset); in phl_set_ch_bw()
120 chdef, do_rfk); in phl_set_ch_bw()
130 struct rtw_chan_def chdef; member
291 &(ch_param->chdef), in phl_cmd_set_ch_bw_hdl()
306 struct rtw_chan_def *chdef, in rtw_phl_cmd_set_ch_bw() argument
318 psts = phl_set_ch_bw(wifi_role, chdef, do_rfk); in rtw_phl_cmd_set_ch_bw()
329 _os_mem_cpy(drv, &param->chdef, chdef, sizeof(struct rtw_chan_def)); in rtw_phl_cmd_set_ch_bw()
H A Dphl_cmd_scan.c512 struct rtw_chan_def chdef = {0}; in _cmd_scan_hdl_internal_evt() local
616 chdef.band = scan_ch->band; in _cmd_scan_hdl_internal_evt()
617 chdef.chan = (u8)scan_ch->channel; in _cmd_scan_hdl_internal_evt()
618 chdef.bw = scan_ch->bw; in _cmd_scan_hdl_internal_evt()
619 chdef.offset = scan_ch->offset; in _cmd_scan_hdl_internal_evt()
621 phl_set_ch_bw(wifi_role, &chdef, false); in _cmd_scan_hdl_internal_evt()
H A Dphl_scan_fsm.c379 struct rtw_chan_def chdef = {0}; in scan_set_channel_bw() local
386 chdef.chan = (u8)ch; in scan_set_channel_bw()
387 chdef.bw = bw; in scan_set_channel_bw()
388 chdef.offset = offset; in scan_set_channel_bw()
390 phl_set_ch_bw(pscan->param->wifi_role, &chdef, false); in scan_set_channel_bw()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/
H A Dphl_regulation_6g.c23 static void _get_6ghz_ch_info(const struct chdef_6ghz *chdef, in _get_6ghz_ch_info() argument
28 *ch = ((chdef->support_ch_u5[2] << 16) | in _get_6ghz_ch_info()
29 (chdef->support_ch_u5[1] << 8) | in _get_6ghz_ch_info()
30 (chdef->support_ch_u5[0])); in _get_6ghz_ch_info()
31 *passive = ((chdef->passive_u5[2] << 16) | in _get_6ghz_ch_info()
32 (chdef->passive_u5[1] << 8) | in _get_6ghz_ch_info()
33 (chdef->passive_u5[0])); in _get_6ghz_ch_info()
38 *ch = chdef->support_ch_u6; in _get_6ghz_ch_info()
39 *passive = chdef->passive_u6; in _get_6ghz_ch_info()
44 *ch = ((chdef->support_ch_u7[2] << 16) | in _get_6ghz_ch_info()
[all …]
H A Dphl_regulation.c71 const struct chdef_2ghz *chdef = NULL; in _chnlplan_update_2g() local
83 chdef = &chdef2g[i]; in _chnlplan_update_2g()
88 if (!chdef) in _chnlplan_update_2g()
96 ch = ((chdef->support_ch[1] << 8) | (chdef->support_ch[0])); in _chnlplan_update_2g()
97 passive = ((chdef->passive[1] << 8) | (chdef->passive[0])); in _chnlplan_update_2g()
105 static void _get_5ghz_ch_info(const struct chdef_5ghz *chdef, in _get_5ghz_ch_info() argument
110 *ch = chdef->support_ch_b1; in _get_5ghz_ch_info()
111 *passive = chdef->passive_b1; in _get_5ghz_ch_info()
112 *dfs = chdef->dfs_b1; in _get_5ghz_ch_info()
117 *ch = chdef->support_ch_b2; in _get_5ghz_ch_info()
[all …]
H A Dphl_chan.h33 struct rtw_chan_def *chdef, bool do_rfk);
50 struct rtw_chan_def *chdef,
H A Dphl_chan.c110 struct rtw_chan_def *chdef, bool do_rfk) in phl_set_ch_bw() argument
115 chdef->band = rtw_phl_get_band_type(chdef->chan); in phl_set_ch_bw()
117 phl_radar_detect_hdl(phl_info, chdef->chan, chdef->bw, chdef->offset); in phl_set_ch_bw()
120 chdef, do_rfk); in phl_set_ch_bw()
130 struct rtw_chan_def chdef; member
291 &(ch_param->chdef), in phl_cmd_set_ch_bw_hdl()
306 struct rtw_chan_def *chdef, in rtw_phl_cmd_set_ch_bw() argument
318 psts = phl_set_ch_bw(wifi_role, chdef, do_rfk); in rtw_phl_cmd_set_ch_bw()
329 _os_mem_cpy(drv, &param->chdef, chdef, sizeof(struct rtw_chan_def)); in rtw_phl_cmd_set_ch_bw()
H A Dphl_cmd_scan.c512 struct rtw_chan_def chdef = {0}; in _cmd_scan_hdl_internal_evt() local
616 chdef.band = scan_ch->band; in _cmd_scan_hdl_internal_evt()
617 chdef.chan = (u8)scan_ch->channel; in _cmd_scan_hdl_internal_evt()
618 chdef.bw = scan_ch->bw; in _cmd_scan_hdl_internal_evt()
619 chdef.offset = scan_ch->offset; in _cmd_scan_hdl_internal_evt()
621 phl_set_ch_bw(wifi_role, &chdef, false); in _cmd_scan_hdl_internal_evt()
H A Dphl_scan_fsm.c379 struct rtw_chan_def chdef = {0}; in scan_set_channel_bw() local
386 chdef.chan = (u8)ch; in scan_set_channel_bw()
387 chdef.bw = bw; in scan_set_channel_bw()
388 chdef.offset = offset; in scan_set_channel_bw()
390 phl_set_ch_bw(pscan->param->wifi_role, &chdef, false); in scan_set_channel_bw()
/OK3568_Linux_fs/kernel/drivers/net/wireless/quantenna/qtnfmac/
H A Dqlink_util.c117 struct cfg80211_chan_def *chdef) in qlink_chandef_q2cfg() argument
123 chdef->chan = chan; in qlink_chandef_q2cfg()
124 chdef->center_freq1 = le16_to_cpu(qch->center_freq1); in qlink_chandef_q2cfg()
125 chdef->center_freq2 = le16_to_cpu(qch->center_freq2); in qlink_chandef_q2cfg()
126 chdef->width = qlink_chanwidth_to_nl(qch->width); in qlink_chandef_q2cfg()
127 chdef->edmg.bw_config = 0; in qlink_chandef_q2cfg()
128 chdef->edmg.channels = 0; in qlink_chandef_q2cfg()
131 void qlink_chandef_cfg2q(const struct cfg80211_chan_def *chdef, in qlink_chandef_cfg2q() argument
134 struct ieee80211_channel *chan = chdef->chan; in qlink_chandef_cfg2q()
140 qch->center_freq1 = cpu_to_le16(chdef->center_freq1); in qlink_chandef_cfg2q()
[all …]
H A Dqlink_util.h46 struct cfg80211_chan_def *chdef);
47 void qlink_chandef_cfg2q(const struct cfg80211_chan_def *chdef,
H A Dcommands.h66 int qtnf_cmd_get_channel(struct qtnf_vif *vif, struct cfg80211_chan_def *chdef);
68 const struct cfg80211_chan_def *chdef,
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/test/mp/
H A Dhal_test_mp_config.c325 struct rtw_chan_def chdef = {0}; in rtw_hal_mp_config_set_ch_bw() local
341 chdef.chan = pri_chan; in rtw_hal_mp_config_set_ch_bw()
342 chdef.band = rtw_phl_get_band_type(pri_chan); in rtw_hal_mp_config_set_ch_bw()
343 chdef.bw = bw; in rtw_hal_mp_config_set_ch_bw()
344 chdef.offset = hal_mp_chan_offset_decision(pri_chan, cent_ch, bw); in rtw_hal_mp_config_set_ch_bw()
347 __FUNCTION__, chdef.chan, chdef.bw, chdef.offset); in rtw_hal_mp_config_set_ch_bw()
350 &chdef, false); in rtw_hal_mp_config_set_ch_bw()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/test/mp/
H A Dhal_test_mp_config.c325 struct rtw_chan_def chdef = {0}; in rtw_hal_mp_config_set_ch_bw() local
341 chdef.chan = pri_chan; in rtw_hal_mp_config_set_ch_bw()
342 chdef.band = rtw_phl_get_band_type(pri_chan); in rtw_hal_mp_config_set_ch_bw()
343 chdef.bw = bw; in rtw_hal_mp_config_set_ch_bw()
344 chdef.offset = hal_mp_chan_offset_decision(pri_chan, cent_ch, bw); in rtw_hal_mp_config_set_ch_bw()
347 __FUNCTION__, chdef.chan, chdef.bw, chdef.offset); in rtw_hal_mp_config_set_ch_bw()
350 &chdef, false); in rtw_hal_mp_config_set_ch_bw()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/test/
H A Dphl_dbg_cmd.c245 struct rtw_chan_def chdef = {0}; in _phl_dbg_cmd_switch_chbw() local
289 chdef.chan = (u8)ch; in _phl_dbg_cmd_switch_chbw()
290 chdef.band = rtw_phl_get_band_type(chdef.chan); in _phl_dbg_cmd_switch_chbw()
291 chdef.bw = (enum channel_width)bw; in _phl_dbg_cmd_switch_chbw()
292 chdef.offset = (enum chan_offset)offset; in _phl_dbg_cmd_switch_chbw()
294 rtw_hal_set_ch_bw(phl_info->hal, (u8)band, &chdef, false); in _phl_dbg_cmd_switch_chbw()
520 struct rtw_chan_def *chdef = NULL; in _dump_mcc_info() local
594 chdef = mrole->chandef; in _dump_mcc_info()
596 if (NULL == chdef) in _dump_mcc_info()
600 i, mrole->macid, mrole->bcn_intvl, chdef->band, in _dump_mcc_info()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/test/
H A Dphl_dbg_cmd.c245 struct rtw_chan_def chdef = {0}; in _phl_dbg_cmd_switch_chbw() local
289 chdef.chan = (u8)ch; in _phl_dbg_cmd_switch_chbw()
290 chdef.band = rtw_phl_get_band_type(chdef.chan); in _phl_dbg_cmd_switch_chbw()
291 chdef.bw = (enum channel_width)bw; in _phl_dbg_cmd_switch_chbw()
292 chdef.offset = (enum chan_offset)offset; in _phl_dbg_cmd_switch_chbw()
294 rtw_hal_set_ch_bw(phl_info->hal, (u8)band, &chdef, false); in _phl_dbg_cmd_switch_chbw()
520 struct rtw_chan_def *chdef = NULL; in _dump_mcc_info() local
594 chdef = mrole->chandef; in _dump_mcc_info()
596 if (NULL == chdef) in _dump_mcc_info()
600 i, mrole->macid, mrole->bcn_intvl, chdef->band, in _dump_mcc_info()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/core/
H A Drtw_phl.c972 struct rtw_chan_def chdef = {0}; in rtw_hw_set_ch_bw() local
983 chdef.chan = ch; in rtw_hw_set_ch_bw()
984 chdef.bw = bw; in rtw_hw_set_ch_bw()
985 chdef.offset = offset; in rtw_hw_set_ch_bw()
986 chdef.band = (ch > 14) ? BAND_ON_5G : BAND_ON_24G; in rtw_hw_set_ch_bw()
1000 &chdef, do_rfk, in rtw_hw_set_ch_bw()
2764 struct rtw_chan_def chdef; in rtw_update_phl_edcca_mode() local
2772 if (rtw_phl_mr_get_chandef(phl, a->phl_role, &chdef) != RTW_PHL_STATUS_SUCCESS) { in rtw_update_phl_edcca_mode()
2778 if (chdef.chan != 0 && rtw_mi_check_fwstate(a, WIFI_ASOC_STATE)) { in rtw_update_phl_edcca_mode()
2779 band = chdef.band; in rtw_update_phl_edcca_mode()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/core/
H A Drtw_phl.c969 struct rtw_chan_def chdef = {0}; in rtw_hw_set_ch_bw() local
980 chdef.chan = ch; in rtw_hw_set_ch_bw()
981 chdef.bw = bw; in rtw_hw_set_ch_bw()
982 chdef.offset = offset; in rtw_hw_set_ch_bw()
983 chdef.band = (ch > 14) ? BAND_ON_5G : BAND_ON_24G; in rtw_hw_set_ch_bw()
997 &chdef, do_rfk, in rtw_hw_set_ch_bw()
2713 struct rtw_chan_def chdef; in rtw_update_phl_edcca_mode() local
2721 if (rtw_phl_mr_get_chandef(phl, a->phl_role, &chdef) != RTW_PHL_STATUS_SUCCESS) { in rtw_update_phl_edcca_mode()
2727 if (chdef.chan != 0 && rtw_mi_check_fwstate(a, WIFI_ASOC_STATE)) { in rtw_update_phl_edcca_mode()
2728 band = chdef.band; in rtw_update_phl_edcca_mode()
[all …]

123