Searched refs:chandef (Results 51 - 75 of 225) sorted by relevance

123456789

/linux-master/drivers/net/wireless/quantenna/qtnfmac/
H A Dcfg80211.c750 const struct cfg80211_chan_def *chandef = wdev_chandef(wdev, 0); local
770 if (chandef && chan == chandef->chan)
783 unsigned int link_id, struct cfg80211_chan_def *chandef)
794 ret = qtnf_cmd_get_channel(vif, chandef);
801 if (!cfg80211_chandef_valid(chandef)) {
803 ndev->name, chandef->chan->center_freq,
804 chandef->center_freq1, chandef->center_freq2,
805 chandef
782 qtnf_get_channel(struct wiphy *wiphy, struct wireless_dev *wdev, unsigned int link_id, struct cfg80211_chan_def *chandef) argument
837 qtnf_start_radar_detection(struct wiphy *wiphy, struct net_device *ndev, struct cfg80211_chan_def *chandef, u32 cac_time_ms) argument
[all...]
/linux-master/net/mac80211/
H A Dscan.c347 static void ieee80211_prepare_scan_chandef(struct cfg80211_chan_def *chandef) argument
349 memset(chandef, 0, sizeof(*chandef));
351 chandef->width = NL80211_CHAN_WIDTH_20_NOHT;
359 struct cfg80211_chan_def chandef; local
399 ieee80211_prepare_scan_chandef(&chandef);
409 bands_used, req->rates, &chandef,
662 enum nl80211_band band = local->hw.conf.chandef.chan->band;
685 tx_flags, local->hw.conf.chandef.chan);
796 (req->channels[0] == local->hw.conf.chandef
1295 struct cfg80211_chan_def chandef; local
[all...]
H A Dieee80211_i.h625 struct cfg80211_chan_def chandef; member in struct:ieee80211_if_ibss
2205 * @csa_ie: parsed 802.11 csa elements on count, mode, chandef and mesh ttl.
2240 ieee80211_min_bw_limit_from_chandef(struct cfg80211_chan_def *chandef);
2462 struct cfg80211_chan_def *chandef,
2486 const struct cfg80211_chan_def *chandef,
2489 const struct cfg80211_chan_def *chandef);
2493 const struct cfg80211_chan_def *chandef);
2495 u8 *ieee80211_ie_build_he_oper(u8 *pos, struct cfg80211_chan_def *chandef);
2496 u8 *ieee80211_ie_build_eht_oper(u8 *pos, struct cfg80211_chan_def *chandef,
2527 struct cfg80211_chan_def *chandef);
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dtestmode.c53 struct cfg80211_chan_def *chandef = &mphy->chandef; local
54 int freq = chandef->center_freq1, len, target_chains;
56 enum nl80211_band band = chandef->chan->band;
83 ret = mt7615_eeprom_get_target_power_index(dev, chandef->chan, i);
/linux-master/drivers/net/wireless/marvell/mwifiex/
H A Duap_cmd.c814 struct cfg80211_chan_def chandef)
818 priv->bss_chandef = chandef;
821 chandef.chan->center_freq);
824 if (chandef.chan->band == NL80211_BAND_2GHZ) {
828 if (chandef.width > NL80211_CHAN_WIDTH_20_NOHT)
834 if (chandef.width > NL80211_CHAN_WIDTH_20_NOHT)
837 if (chandef.width > NL80211_CHAN_WIDTH_40)
841 switch (chandef.width) {
848 if (chandef.center_freq1 < chandef
812 mwifiex_uap_set_channel(struct mwifiex_private *priv, struct mwifiex_uap_bss_param *bss_cfg, struct cfg80211_chan_def chandef) argument
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmcu.c113 enum nl80211_band band = msta->vif->phy->mt76->chandef.chan->band;
755 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; local
758 int freq1 = chandef->center_freq1;
763 ch->control_channel = chandef->chan->hw_value;
765 ch->bw = mt76_connac_chan_bw(chandef);
768 ch->band = rlm_ch_band[chandef->chan->band];
770 if (chandef->width == NL80211_CHAN_WIDTH_80P80) {
771 int freq2 = chandef->center_freq2;
845 struct cfg80211_chan_def *chandef local
980 struct cfg80211_chan_def *chandef = &phy->chandef; local
1903 struct cfg80211_chan_def *chandef = &mvif->phy->mt76->chandef; local
1992 struct cfg80211_chan_def *chandef = &mphy->chandef; local
2570 struct cfg80211_chan_def *chandef = &mvif->phy->mt76->chandef; local
3319 mt7996_mcu_background_chain_ctrl(struct mt7996_phy *phy, struct cfg80211_chan_def *chandef, int cmd) argument
3375 mt7996_mcu_rdd_background_enable(struct mt7996_phy *phy, struct cfg80211_chan_def *chandef) argument
3421 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; local
[all...]
/linux-master/net/wireless/
H A Drdev-ops.h448 struct cfg80211_chan_def *chandef)
451 trace_rdev_set_monitor_channel(&rdev->wiphy, chandef);
452 ret = rdev->ops->set_monitor_channel(&rdev->wiphy, chandef);
966 struct cfg80211_chan_def *chandef)
971 ret = rdev->ops->get_channel(&rdev->wiphy, wdev, link_id, chandef);
972 trace_rdev_return_chandef(&rdev->wiphy, ret, chandef);
1131 struct cfg80211_chan_def *chandef)
1135 trace_rdev_set_ap_chanwidth(&rdev->wiphy, dev, link_id, chandef);
1136 ret = rdev->ops->set_ap_chanwidth(&rdev->wiphy, dev, link_id, chandef);
1176 u8 oper_class, struct cfg80211_chan_def *chandef)
447 rdev_set_monitor_channel(struct cfg80211_registered_device *rdev, struct cfg80211_chan_def *chandef) argument
963 rdev_get_channel(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev, unsigned int link_id, struct cfg80211_chan_def *chandef) argument
1128 rdev_set_ap_chanwidth(struct cfg80211_registered_device *rdev, struct net_device *dev, unsigned int link_id, struct cfg80211_chan_def *chandef) argument
1174 rdev_tdls_channel_switch(struct cfg80211_registered_device *rdev, struct net_device *dev, const u8 *addr, u8 oper_class, struct cfg80211_chan_def *chandef) argument
1198 rdev_start_radar_detection(struct cfg80211_registered_device *rdev, struct net_device *dev, struct cfg80211_chan_def *chandef, u32 cac_time_ms) argument
1420 rdev_set_radar_background(struct cfg80211_registered_device *rdev, struct cfg80211_chan_def *chandef) argument
[all...]
H A Dcore.h345 struct cfg80211_chan_def *chandef);
466 const struct cfg80211_chan_def *chandef,
476 struct cfg80211_chan_def *chandef);
489 bool cfg80211_is_sub_chan(struct cfg80211_chan_def *chandef,
496 const struct cfg80211_chan_def *chandef,
510 struct cfg80211_chan_def *chandef);
H A Dtrace.h145 #define CHAN_DEF_ASSIGN(chandef) \
147 if ((chandef) && (chandef)->chan) { \
148 __entry->band = (chandef)->chan->band; \
150 (chandef)->chan->center_freq; \
152 (chandef)->chan->freq_offset; \
153 __entry->width = (chandef)->width; \
154 __entry->center_freq1 = (chandef)->center_freq1;\
155 __entry->freq1_offset = (chandef)->freq1_offset;\
156 __entry->center_freq2 = (chandef)
[all...]
H A Dnl80211.c3223 struct cfg80211_chan_def *chandef)
3241 memset(chandef, 0, sizeof(*chandef));
3242 chandef->chan = ieee80211_get_channel_khz(&rdev->wiphy, control_freq);
3243 chandef->width = NL80211_CHAN_WIDTH_20_NOHT;
3244 chandef->center_freq1 = KHZ_TO_MHZ(control_freq);
3245 chandef->freq1_offset = control_freq % 1000;
3246 chandef->center_freq2 = 0;
3248 if (!chandef->chan) {
3264 cfg80211_chandef_create(chandef, chande
3221 _nl80211_parse_chandef(struct cfg80211_registered_device *rdev, struct genl_info *info, bool monitor, struct cfg80211_chan_def *chandef) argument
3362 nl80211_parse_chandef(struct cfg80211_registered_device *rdev, struct genl_info *info, struct cfg80211_chan_def *chandef) argument
3374 struct cfg80211_chan_def chandef; local
3797 nl80211_send_chandef(struct sk_buff *msg, const struct cfg80211_chan_def *chandef) argument
3869 struct cfg80211_chan_def chandef = {}; local
3933 struct cfg80211_chan_def chandef = {}; local
5062 struct cfg80211_chan_def *chandef; local
9044 struct cfg80211_chan_def *chandef; local
9925 struct cfg80211_chan_def chandef; local
10007 struct cfg80211_chan_def chandef; local
12368 struct cfg80211_chan_def chandef; local
12541 struct cfg80211_chan_def chandef; local
15375 struct cfg80211_chan_def chandef = {}; local
19344 nl80211_ch_switch_notify(struct cfg80211_registered_device *rdev, struct net_device *netdev, unsigned int link_id, struct cfg80211_chan_def *chandef, gfp_t gfp, enum nl80211_commands notif, u8 count, bool quiet) argument
19394 cfg80211_ch_switch_notify(struct net_device *dev, struct cfg80211_chan_def *chandef, unsigned int link_id) argument
19438 cfg80211_ch_switch_started_notify(struct net_device *dev, struct cfg80211_chan_def *chandef, unsigned int link_id, u8 count, bool quiet) argument
19509 nl80211_radar_notify(struct cfg80211_registered_device *rdev, const struct cfg80211_chan_def *chandef, enum nl80211_radar_event event, struct net_device *netdev, gfp_t gfp) argument
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dmcu.c857 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; local
858 int freq1 = chandef->center_freq1;
877 .control_ch = chandef->chan->hw_value,
879 .bw = mt76_connac_chan_bw(chandef),
885 if (chandef->chan->band == NL80211_BAND_6GHZ)
888 req.channel_band = chandef->chan->band;
895 else if (!cfg80211_reg_can_beacon(dev->mt76.hw->wiphy, chandef,
904 if (chandef->width == NL80211_CHAN_WIDTH_80P80) {
905 int freq2 = chandef
1155 struct cfg80211_chan_def *chandef = &ctx->def; local
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/
H A Dmac80211.c414 phy->chandef.chan = &sband->channels[0];
936 struct cfg80211_chan_def *chandef = &hw->conf.chandef; local
943 if (phy->chandef.chan->center_freq != chandef->chan->center_freq ||
944 phy->chandef.width != chandef->width)
947 phy->chandef = *chandef;
948 phy->chan_state = mt76_channel_state(phy, chandef
1772 struct cfg80211_chan_def *chandef = mvif->ctx ? local
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dmcu.c1157 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; local
1158 int freq1 = chandef->center_freq1;
1159 u8 band_idx = chandef->chan->band != NL80211_BAND_2GHZ;
1185 .control_ch = chandef->chan->hw_value,
1187 .bw = mt76_connac_chan_bw(chandef),
1191 .channel_band = ch_band[chandef->chan->band],
1194 if (chandef->chan->band == NL80211_BAND_6GHZ)
1197 req.channel_band = chandef->chan->band;
1204 else if (!cfg80211_reg_can_beacon(phy->mt76->hw->wiphy, chandef,
1505 struct cfg80211_chan_def *chandef = &mvif->mt76.ctx->def; local
1572 struct cfg80211_chan_def *chandef = &mvif->mt76.ctx->def; local
1768 struct cfg80211_chan_def *chandef = ctx ? &ctx->def : &mphy->chandef; local
1924 struct cfg80211_chan_def *chandef = ctx ? &ctx->def : &phy->chandef; local
2073 struct cfg80211_chan_def *chandef = ctx ? &ctx->def : &phy->chandef; local
2184 struct cfg80211_chan_def *chandef = ctx ? &ctx->def : &phy->mt76->chandef; local
[all...]
/linux-master/drivers/net/wireless/realtek/rtl818x/rtl8180/
H A Dmax2820.c94 ieee80211_frequency_to_channel(conf->chandef.chan->center_freq) : 1;
/linux-master/drivers/net/wireless/ath/carl9170/
H A Dmac.c51 if (ar->hw->conf.chandef.chan->band == NL80211_BAND_2GHZ)
69 if (ar->hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) {
96 if ((ar->hw->conf.chandef.chan->band == NL80211_BAND_5GHZ) ||
123 if (ar->hw->conf.chandef.chan->band == NL80211_BAND_5GHZ)
/linux-master/drivers/net/wireless/intel/iwlwifi/dvm/
H A Ddevices.c407 ch = ch_switch->chandef.chan->hw_value;
443 ch_switch->chandef.chan->flags & IEEE80211_CHAN_RADAR;
575 ch = ch_switch->chandef.chan->hw_value;
611 ch_switch->chandef.chan->flags & IEEE80211_CHAN_RADAR;
/linux-master/drivers/staging/vt6656/
H A Dwcmd.c132 vnt_rf_setpower(priv, priv->hw->conf.chandef.chan);
/linux-master/drivers/net/wireless/mediatek/mt7601u/
H A Dphy.c343 struct cfg80211_chan_def *chandef)
371 struct ieee80211_channel *chan = chandef->chan;
373 cfg80211_get_chandef_type(chandef);
384 if (chandef->width == NL80211_CHAN_WIDTH_40) {
437 dev->chandef = *chandef;
443 struct cfg80211_chan_def *chandef)
451 ret = __mt7601u_phy_set_channel(dev, chandef);
776 return dev->ee->chan_pwr[dev->chandef.chan->hw_value - 1];
904 if (dev->chandef
342 __mt7601u_phy_set_channel(struct mt7601u_dev *dev, struct cfg80211_chan_def *chandef) argument
442 mt7601u_phy_set_channel(struct mt7601u_dev *dev, struct cfg80211_chan_def *chandef) argument
[all...]
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dftm-initiator.c317 u32 freq = peer->chandef.chan->center_freq;
321 switch (peer->chandef.width) {
336 peer->chandef.width);
340 *ctrl_ch_position = (peer->chandef.width > NL80211_CHAN_WIDTH_20) ?
341 iwl_mvm_get_ctrl_pos(&peer->chandef) : 0;
352 u32 freq = peer->chandef.chan->center_freq;
357 switch (peer->chandef.width) {
387 peer->chandef.width);
395 *ctrl_ch_position = (peer->chandef.width > NL80211_CHAN_WIDTH_20) ?
396 iwl_mvm_get_ctrl_pos(&peer->chandef)
[all...]
/linux-master/drivers/net/wireless/realtek/rtlwifi/
H A Drc.c251 struct cfg80211_chan_def *chandef,
258 struct cfg80211_chan_def *chandef,
249 rtl_rate_init(void *ppriv, struct ieee80211_supported_band *sband, struct cfg80211_chan_def *chandef, struct ieee80211_sta *sta, void *priv_sta) argument
256 rtl_rate_update(void *ppriv, struct ieee80211_supported_band *sband, struct cfg80211_chan_def *chandef, struct ieee80211_sta *sta, void *priv_sta, u32 changed) argument
/linux-master/drivers/net/wireless/realtek/rtw88/
H A Drx.c159 rx_status->freq = hw->conf.chandef.chan->center_freq;
160 rx_status->band = hw->conf.chandef.chan->band;
/linux-master/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Dinit.c19 if (!cfg80211_chandef_valid(&mphy->chandef))
26 dev->txpower_conf = mt76_get_sar_power(mphy, mphy->chandef.chan,
/linux-master/drivers/net/wireless/broadcom/b43/
H A Dphy_common.c92 if (!phy->chandef) {
93 phy->chandef = &dev->wl->hw->conf.chandef;
94 phy->channel = phy->chandef->chan->hw_value;
559 return dev->phy.chandef->width == NL80211_CHAN_WIDTH_40;
/linux-master/include/net/
H A Dmac80211.h283 * implement this as an on-the-fly chandef switch of the existing
1722 * @chandef: the channel definition to tune to
1747 struct cfg80211_chan_def chandef; member in struct:ieee80211_conf
1766 * @chandef: the new channel to switch to
1777 struct cfg80211_chan_def chandef; member in struct:ieee80211_channel_switch
3056 * @chandef: channel referenced in a TDLS channel-switch request
3067 struct cfg80211_chan_def *chandef; member in struct:ieee80211_tdls_ch_sw_params
4373 * The caller is expected to set chandef pointer to NULL in order to
4674 struct cfg80211_chan_def *chandef);
4699 struct cfg80211_chan_def *chandef,
[all...]
/linux-master/drivers/net/wireless/realtek/rtl8xxxu/
H A D8188f.c521 channel = (u8)hw->conf.chandef.chan->hw_value;
535 val32 |= hw->conf.chandef.width == NL80211_CHAN_WIDTH_40;
540 val32 |= hw->conf.chandef.width == NL80211_CHAN_WIDTH_40;
578 if (hw->conf.chandef.width == NL80211_CHAN_WIDTH_20 ||
579 hw->conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT)
581 else if (hw->conf.chandef.width == NL80211_CHAN_WIDTH_40)
585 if (hw->conf.chandef.width == NL80211_CHAN_WIDTH_40) {
586 if (hw->conf.chandef.center_freq1 >
587 hw->conf.chandef.chan->center_freq) {
618 if (hw->conf.chandef
[all...]

Completed in 387 milliseconds

123456789