chandef 1303 drivers/net/wireless/admtek/adm8211.c ieee80211_frequency_to_channel(conf->chandef.chan->center_freq); chandef 460 drivers/net/wireless/ath/ar5523/ar5523.c reset.freq = cpu_to_be32(conf->chandef.chan->center_freq); chandef 467 drivers/net/wireless/ath/ar5523/ar5523.c conf->chandef.chan->center_freq); chandef 597 drivers/net/wireless/ath/ar5523/ar5523.c rx_status->band = hw->conf.chandef.chan->band; chandef 1153 drivers/net/wireless/ath/ar5523/ar5523.c band = ar->hw->wiphy->bands[ar->hw->conf.chandef.chan->band]; chandef 1159 drivers/net/wireless/ath/ar5523/ar5523.c sta_rate_set = sta->supp_rates[ar->hw->conf.chandef.chan->band]; chandef 1197 drivers/net/wireless/ath/ar5523/ar5523.c sta_rate_set = sta->supp_rates[ar->hw->conf.chandef.chan->band]; chandef 1201 drivers/net/wireless/ath/ar5523/ar5523.c band = ar->hw->wiphy->bands[ar->hw->conf.chandef.chan->band]; chandef 1051 drivers/net/wireless/ath/ath10k/core.h struct cfg80211_chan_def chandef; chandef 550 drivers/net/wireless/ath/ath10k/mac.c chan_to_phymode(const struct cfg80211_chan_def *chandef) chandef 554 drivers/net/wireless/ath/ath10k/mac.c switch (chandef->chan->band) { chandef 556 drivers/net/wireless/ath/ath10k/mac.c switch (chandef->width) { chandef 558 drivers/net/wireless/ath/ath10k/mac.c if (chandef->chan->flags & IEEE80211_CHAN_NO_OFDM) chandef 579 drivers/net/wireless/ath/ath10k/mac.c switch (chandef->width) { chandef 1013 drivers/net/wireless/ath/ath10k/mac.c struct cfg80211_chan_def *chandef = NULL; chandef 1022 drivers/net/wireless/ath/ath10k/mac.c &chandef); chandef 1023 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON_ONCE(!chandef)) chandef 1026 drivers/net/wireless/ath/ath10k/mac.c channel = chandef->chan; chandef 1030 drivers/net/wireless/ath/ath10k/mac.c arg.channel.band_center_freq1 = chandef->center_freq1; chandef 1031 drivers/net/wireless/ath/ath10k/mac.c arg.channel.band_center_freq2 = chandef->center_freq2; chandef 1036 drivers/net/wireless/ath/ath10k/mac.c arg.channel.mode = chan_to_phymode(chandef); chandef 1465 drivers/net/wireless/ath/ath10k/mac.c const struct cfg80211_chan_def *chandef, chandef 1481 drivers/net/wireless/ath/ath10k/mac.c arg.channel.freq = chandef->chan->center_freq; chandef 1482 drivers/net/wireless/ath/ath10k/mac.c arg.channel.band_center_freq1 = chandef->center_freq1; chandef 1483 drivers/net/wireless/ath/ath10k/mac.c arg.channel.band_center_freq2 = chandef->center_freq2; chandef 1484 drivers/net/wireless/ath/ath10k/mac.c arg.channel.mode = chan_to_phymode(chandef); chandef 1487 drivers/net/wireless/ath/ath10k/mac.c arg.channel.max_power = chandef->chan->max_power * 2; chandef 1488 drivers/net/wireless/ath/ath10k/mac.c arg.channel.max_reg_power = chandef->chan->max_reg_power * 2; chandef 1489 drivers/net/wireless/ath/ath10k/mac.c arg.channel.max_antenna_gain = chandef->chan->max_antenna_gain * 2; chandef 1498 drivers/net/wireless/ath/ath10k/mac.c !!(chandef->chan->flags & IEEE80211_CHAN_RADAR); chandef 447 drivers/net/wireless/ath/ath5k/base.c ath5k_chan_set(struct ath5k_hw *ah, struct cfg80211_chan_def *chandef) chandef 451 drivers/net/wireless/ath/ath5k/base.c ah->curchan->center_freq, chandef->chan->center_freq); chandef 453 drivers/net/wireless/ath/ath5k/base.c switch (chandef->width) { chandef 475 drivers/net/wireless/ath/ath5k/base.c return ath5k_reset(ah, chandef->chan, true); chandef 2746 drivers/net/wireless/ath/ath5k/base.c ah->curchan = ah->hw->conf.chandef.chan; chandef 104 drivers/net/wireless/ath/ath5k/base.h int ath5k_chan_set(struct ath5k_hw *ah, struct cfg80211_chan_def *chandef); chandef 205 drivers/net/wireless/ath/ath5k/mac80211-ops.c ret = ath5k_chan_set(ah, &conf->chandef); chandef 671 drivers/net/wireless/ath/ath5k/mac80211-ops.c survey->channel = conf->chandef.chan; chandef 1109 drivers/net/wireless/ath/ath6kl/cfg80211.c struct cfg80211_chan_def chandef; chandef 1115 drivers/net/wireless/ath/ath6kl/cfg80211.c cfg80211_chandef_create(&chandef, chandef 1122 drivers/net/wireless/ath/ath6kl/cfg80211.c cfg80211_ch_switch_notify(vif->ndev, &chandef); chandef 1633 drivers/net/wireless/ath/ath6kl/cfg80211.c if (ibss_param->chandef.chan) chandef 1634 drivers/net/wireless/ath/ath6kl/cfg80211.c vif->ch_hint = ibss_param->chandef.chan->center_freq; chandef 2894 drivers/net/wireless/ath/ath6kl/cfg80211.c p.ch = cpu_to_le16(info->chandef.chan->center_freq); chandef 2925 drivers/net/wireless/ath/ath6kl/cfg80211.c if (ath6kl_set_htcap(vif, info->chandef.chan->band, chandef 2926 drivers/net/wireless/ath/ath6kl/cfg80211.c cfg80211_get_chandef_type(&info->chandef) chandef 328 drivers/net/wireless/ath/ath9k/ath9k.h struct cfg80211_chan_def chandef; chandef 451 drivers/net/wireless/ath/ath9k/ath9k.h struct cfg80211_chan_def *chandef); chandef 29 drivers/net/wireless/ath/ath9k/channel.c struct cfg80211_chan_def *chandef = &sc->cur_chan->chandef; chandef 30 drivers/net/wireless/ath/ath9k/channel.c struct ieee80211_channel *chan = chandef->chan; chandef 43 drivers/net/wireless/ath/ath9k/channel.c chan->center_freq, chandef->width); chandef 50 drivers/net/wireless/ath/ath9k/channel.c ath9k_cmn_get_channel(hw, ah, chandef); chandef 118 drivers/net/wireless/ath/ath9k/channel.c cfg80211_chandef_create(&ctx->chandef, chan, NL80211_CHAN_HT20); chandef 131 drivers/net/wireless/ath/ath9k/channel.c struct cfg80211_chan_def *chandef) chandef 137 drivers/net/wireless/ath/ath9k/channel.c if (chandef) chandef 138 drivers/net/wireless/ath/ath9k/channel.c memcpy(&ctx->chandef, chandef, sizeof(*chandef)); chandef 511 drivers/net/wireless/ath/ath9k/channel.c sc->cur_chan->chandef.center_freq1, chandef 802 drivers/net/wireless/ath/ath9k/channel.c struct cfg80211_chan_def *chandef) chandef 810 drivers/net/wireless/ath/ath9k/channel.c if (chandef) chandef 811 drivers/net/wireless/ath/ath9k/channel.c ctx->chandef = *chandef; chandef 826 drivers/net/wireless/ath/ath9k/channel.c if (chandef) { chandef 827 drivers/net/wireless/ath/ath9k/channel.c ctx->chandef = *chandef; chandef 829 drivers/net/wireless/ath/ath9k/channel.c "Assigned next_chan to %d MHz\n", chandef->center_freq1); chandef 837 drivers/net/wireless/ath/ath9k/channel.c if (chandef) { chandef 840 drivers/net/wireless/ath/ath9k/channel.c chandef->center_freq1, chandef 852 drivers/net/wireless/ath/ath9k/channel.c struct cfg80211_chan_def chandef; chandef 854 drivers/net/wireless/ath/ath9k/channel.c cfg80211_chandef_create(&chandef, chan, NL80211_CHAN_NO_HT); chandef 856 drivers/net/wireless/ath/ath9k/channel.c "Channel definition created: %d MHz\n", chandef.center_freq1); chandef 858 drivers/net/wireless/ath/ath9k/channel.c ath_chanctx_switch(sc, &sc->offchannel.chan, &chandef); chandef 997 drivers/net/wireless/ath/ath9k/channel.c int band = sc->offchannel.chan.chandef.chan->band; chandef 1032 drivers/net/wireless/ath/ath9k/channel.c if (!(sc->cur_chan->chandef.chan->flags & IEEE80211_CHAN_NO_IR) && chandef 1109 drivers/net/wireless/ath/ath9k/channel.c int band = sc->cur_chan->chandef.chan->band; chandef 1201 drivers/net/wireless/ath/ath9k/channel.c if (sc->cur_chan->chandef.chan != chandef 1202 drivers/net/wireless/ath/ath9k/channel.c sc->offchannel.chan.chandef.chan) chandef 1252 drivers/net/wireless/ath/ath9k/channel.c sc->cur_chan->chandef.center_freq1, chandef 1253 drivers/net/wireless/ath/ath9k/channel.c sc->next_chan->chandef.center_freq1); chandef 1258 drivers/net/wireless/ath/ath9k/channel.c sc->cur_chan->chandef.center_freq1); chandef 1298 drivers/net/wireless/ath/ath9k/channel.c memcmp(&sc->cur_chandef, &sc->cur_chan->chandef, chandef 1302 drivers/net/wireless/ath/ath9k/channel.c __func__, sc->cur_chan->chandef.center_freq1); chandef 1350 drivers/net/wireless/ath/ath9k/channel.c cfg80211_chandef_create(&ctx->chandef, chan, NL80211_CHAN_HT20); chandef 517 drivers/net/wireless/ath/ath9k/common-spectral.c chan_type = cfg80211_get_chandef_type(&common->hw->conf.chandef); chandef 301 drivers/net/wireless/ath/ath9k/common.c struct cfg80211_chan_def *chandef) chandef 303 drivers/net/wireless/ath/ath9k/common.c struct ieee80211_channel *chan = chandef->chan; chandef 312 drivers/net/wireless/ath/ath9k/common.c switch (chandef->width) { chandef 325 drivers/net/wireless/ath/ath9k/common.c if (chandef->center_freq1 > chandef->chan->center_freq) chandef 342 drivers/net/wireless/ath/ath9k/common.c struct cfg80211_chan_def *chandef) chandef 344 drivers/net/wireless/ath/ath9k/common.c struct ieee80211_channel *curchan = chandef->chan; chandef 348 drivers/net/wireless/ath/ath9k/common.c ath9k_cmn_update_ichannel(channel, chandef); chandef 86 drivers/net/wireless/ath/ath9k/common.h struct cfg80211_chan_def *chandef); chandef 188 drivers/net/wireless/ath/ath9k/htc_drv_main.c struct ieee80211_channel *channel = priv->hw->conf.chandef.chan; chandef 248 drivers/net/wireless/ath/ath9k/htc_drv_main.c struct ieee80211_channel *channel = hw->conf.chandef.chan; chandef 602 drivers/net/wireless/ath/ath9k/htc_drv_main.c sband = priv->hw->wiphy->bands[priv->hw->conf.chandef.chan->band]; chandef 912 drivers/net/wireless/ath/ath9k/htc_drv_main.c struct ieee80211_channel *curchan = hw->conf.chandef.chan; chandef 930 drivers/net/wireless/ath/ath9k/htc_drv_main.c init_channel = ath9k_cmn_get_channel(hw, ah, &hw->conf.chandef); chandef 1209 drivers/net/wireless/ath/ath9k/htc_drv_main.c struct ieee80211_channel *curchan = hw->conf.chandef.chan; chandef 1215 drivers/net/wireless/ath/ath9k/htc_drv_main.c ath9k_cmn_get_channel(hw, priv->ah, &hw->conf.chandef); chandef 1858 drivers/net/wireless/ath/ath9k/htc_drv_main.c struct cfg80211_chan_def *chandef) chandef 497 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c if (cur_conf->chandef.chan->band == NL80211_BAND_5GHZ) chandef 799 drivers/net/wireless/ath/ath9k/init.c struct cfg80211_chan_def chandef; chandef 806 drivers/net/wireless/ath/ath9k/init.c cfg80211_chandef_create(&chandef, chan, NL80211_CHAN_HT20); chandef 807 drivers/net/wireless/ath/ath9k/init.c ath9k_cmn_get_channel(sc->hw, ah, &chandef); chandef 314 drivers/net/wireless/ath/ath9k/main.c sc->cur_chandef = sc->cur_chan->chandef; chandef 649 drivers/net/wireless/ath/ath9k/main.c struct ieee80211_channel *curchan = sc->cur_chan->chandef.chan; chandef 661 drivers/net/wireless/ath/ath9k/main.c init_channel = ath9k_cmn_get_channel(hw, ah, &ctx->chandef); chandef 662 drivers/net/wireless/ath/ath9k/main.c sc->cur_chandef = hw->conf.chandef; chandef 882 drivers/net/wireless/ath/ath9k/main.c &sc->cur_chan->chandef); chandef 1425 drivers/net/wireless/ath/ath9k/main.c ath_chanctx_set_channel(sc, ctx, &ctx->chandef); chandef 1457 drivers/net/wireless/ath/ath9k/main.c ath_chanctx_set_channel(sc, ctx, &hw->conf.chandef); chandef 83 drivers/net/wireless/ath/ath9k/tx99.c tx_info->band = sc->cur_chan->chandef.chan->band; chandef 646 drivers/net/wireless/ath/carl9170/debug.c err = carl9170_set_channel(ar, ar->hw->conf.chandef.chan, chandef 647 drivers/net/wireless/ath/carl9170/debug.c cfg80211_get_chandef_type(&ar->hw->conf.chandef)); chandef 51 drivers/net/wireless/ath/carl9170/mac.c if (ar->hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) chandef 69 drivers/net/wireless/ath/carl9170/mac.c if (ar->hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) { chandef 96 drivers/net/wireless/ath/carl9170/mac.c if ((ar->hw->conf.chandef.chan->band == NL80211_BAND_5GHZ) || chandef 123 drivers/net/wireless/ath/carl9170/mac.c if (ar->hw->conf.chandef.chan->band == NL80211_BAND_5GHZ) chandef 932 drivers/net/wireless/ath/carl9170/main.c cfg80211_get_chandef_type(&hw->conf.chandef); chandef 943 drivers/net/wireless/ath/carl9170/main.c err = carl9170_set_channel(ar, hw->conf.chandef.chan, chandef 962 drivers/net/wireless/ath/carl9170/main.c err = carl9170_set_mac_tpc(ar, ar->hw->conf.chandef.chan); chandef 1333 drivers/net/wireless/ath/carl9170/phy.c ar->hw->conf.chandef.chan->band); chandef 1343 drivers/net/wireless/ath/carl9170/phy.c if (ar->hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) { chandef 86 drivers/net/wireless/ath/wcn36xx/wcn36xx.h #define WCN36XX_HW_CHANNEL(__wcn) (__wcn->hw->conf.chandef.chan->hw_value) chandef 87 drivers/net/wireless/ath/wcn36xx/wcn36xx.h #define WCN36XX_BAND(__wcn) (__wcn->hw->conf.chandef.chan->band) chandef 88 drivers/net/wireless/ath/wcn36xx/wcn36xx.h #define WCN36XX_CENTER_FREQ(__wcn) (__wcn->hw->conf.chandef.chan->center_freq) chandef 91 drivers/net/wireless/ath/wcn36xx/wcn36xx.h #define WCN36XX_MAX_POWER(__wcn) (__wcn->hw->conf.chandef.chan->max_power) chandef 1486 drivers/net/wireless/ath/wil6210/cfg80211.c struct cfg80211_chan_def *chandef) chandef 1490 drivers/net/wireless/ath/wil6210/cfg80211.c wil->monitor_chandef = *chandef; chandef 2117 drivers/net/wireless/ath/wil6210/cfg80211.c struct ieee80211_channel *channel = info->chandef.chan; chandef 2125 drivers/net/wireless/ath/wil6210/cfg80211.c rc = wil_get_wmi_edmg_channel(wil, info->chandef.edmg.bw_config, chandef 2126 drivers/net/wireless/ath/wil6210/cfg80211.c info->chandef.edmg.channels, chandef 1408 drivers/net/wireless/ath/wil6210/debugfs.c u32 freq = wdev->chandef.chan ? wdev->chandef.chan->center_freq : 0; chandef 2017 drivers/net/wireless/atmel/at76c50x-usb.c __func__, hw->conf.chandef.chan->hw_value); chandef 2022 drivers/net/wireless/atmel/at76c50x-usb.c priv->channel = hw->conf.chandef.chan->hw_value; chandef 1000 drivers/net/wireless/broadcom/b43/b43.h return wl->hw->conf.chandef.chan->band; chandef 3989 drivers/net/wireless/broadcom/b43/main.c phy->chandef = &conf->chandef; chandef 3990 drivers/net/wireless/broadcom/b43/main.c phy->channel = conf->chandef.chan->hw_value; chandef 3993 drivers/net/wireless/broadcom/b43/main.c err = b43_switch_band(dev, conf->chandef.chan); chandef 5163 drivers/net/wireless/broadcom/b43/main.c survey->channel = conf->chandef.chan; chandef 92 drivers/net/wireless/broadcom/b43/phy_common.c if (!phy->chandef) { chandef 93 drivers/net/wireless/broadcom/b43/phy_common.c phy->chandef = &dev->wl->hw->conf.chandef; chandef 94 drivers/net/wireless/broadcom/b43/phy_common.c phy->channel = phy->chandef->chan->hw_value; chandef 559 drivers/net/wireless/broadcom/b43/phy_common.c return dev->phy.chandef->width == NL80211_CHAN_WIDTH_40; chandef 260 drivers/net/wireless/broadcom/b43/phy_common.h struct cfg80211_chan_def *chandef; chandef 630 drivers/net/wireless/broadcom/b43/phy_ht.c u16 freq = dev->phy.chandef->chan->center_freq; chandef 1063 drivers/net/wireless/broadcom/b43/phy_ht.c struct ieee80211_channel *channel = dev->wl->hw->conf.chandef.chan; chandef 1065 drivers/net/wireless/broadcom/b43/phy_ht.c cfg80211_get_chandef_type(&dev->wl->hw->conf.chandef); chandef 778 drivers/net/wireless/broadcom/b43/phy_lcn.c struct ieee80211_channel *channel = dev->wl->hw->conf.chandef.chan; chandef 780 drivers/net/wireless/broadcom/b43/phy_lcn.c cfg80211_get_chandef_type(&dev->wl->hw->conf.chandef); chandef 1236 drivers/net/wireless/broadcom/b43/phy_n.c u16 freq = phy->chandef->chan->center_freq; chandef 2281 drivers/net/wireless/broadcom/b43/phy_n.c nphy->rssical_chanspec_2G.center_freq = phy->chandef->chan->center_freq; chandef 2283 drivers/net/wireless/broadcom/b43/phy_n.c nphy->rssical_chanspec_5G.center_freq = phy->chandef->chan->center_freq; chandef 3055 drivers/net/wireless/broadcom/b43/phy_n.c u16 freq = phy->chandef->chan->center_freq; chandef 3744 drivers/net/wireless/broadcom/b43/phy_n.c u16 freq = phy->chandef->chan->center_freq; chandef 3939 drivers/net/wireless/broadcom/b43/phy_n.c if (phy->chandef->chan->flags & IEEE80211_CHAN_NO_IR) chandef 4056 drivers/net/wireless/broadcom/b43/phy_n.c u16 freq = phy->chandef->chan->center_freq; chandef 5272 drivers/net/wireless/broadcom/b43/phy_n.c iqcal_chanspec->center_freq = dev->phy.chandef->chan->center_freq; chandef 5274 drivers/net/wireless/broadcom/b43/phy_n.c cfg80211_get_chandef_type(dev->phy.chandef); chandef 5573 drivers/net/wireless/broadcom/b43/phy_n.c phy->chandef->chan->center_freq; chandef 5575 drivers/net/wireless/broadcom/b43/phy_n.c cfg80211_get_chandef_type(phy->chandef); chandef 5611 drivers/net/wireless/broadcom/b43/phy_n.c nphy->txiqlocal_chanspec.center_freq != dev->phy.chandef->chan->center_freq || chandef 5612 drivers/net/wireless/broadcom/b43/phy_n.c nphy->txiqlocal_chanspec.channel_type != cfg80211_get_chandef_type(dev->phy.chandef)) chandef 5882 drivers/net/wireless/broadcom/b43/phy_n.c struct ieee80211_channel *channel = dev->wl->hw->conf.chandef.chan; chandef 5897 drivers/net/wireless/broadcom/b43/phy_n.c max = INT_TO_Q52(phy->chandef->chan->max_power); chandef 6675 drivers/net/wireless/broadcom/b43/phy_n.c struct ieee80211_channel *channel = dev->wl->hw->conf.chandef.chan; chandef 6677 drivers/net/wireless/broadcom/b43/phy_n.c cfg80211_get_chandef_type(&dev->wl->hw->conf.chandef); chandef 2690 drivers/net/wireless/broadcom/b43legacy/main.c switch (conf->chandef.chan->band) { chandef 2718 drivers/net/wireless/broadcom/b43legacy/main.c if (conf->chandef.chan->hw_value != phy->channel) chandef 2719 drivers/net/wireless/broadcom/b43legacy/main.c b43legacy_radio_selectchannel(dev, conf->chandef.chan->hw_value, chandef 3525 drivers/net/wireless/broadcom/b43legacy/main.c survey->channel = conf->chandef.chan; chandef 1354 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (params->chandef.chan) chandef 1356 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c params->chandef.chan->center_freq); chandef 1428 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (params->chandef.chan) { chandef 1433 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c params->chandef.chan->center_freq); chandef 1437 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ¶ms->chandef); chandef 4477 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c u16 chanspec = chandef_to_chanspec(&cfg->d11inf, &settings->chandef); chandef 4483 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c settings->chandef.chan->hw_value, chandef 4484 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c settings->chandef.center_freq1, settings->chandef.width, chandef 4993 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct cfg80211_chan_def *chandef) chandef 5044 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c chandef->chan = ieee80211_get_channel(wiphy, freq); chandef 5045 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c chandef->width = width; chandef 5046 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c chandef->center_freq1 = ieee80211_channel_to_frequency(ch.chnum, band); chandef 5047 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c chandef->center_freq2 = 0; chandef 377 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan; chandef 402 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan; chandef 567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c if (conf->chandef.width == NL80211_CHAN_WIDTH_20 || chandef 568 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c conf->chandef.width == NL80211_CHAN_WIDTH_20_NOHT) chandef 570 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c conf->chandef.chan->hw_value); chandef 5085 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c ch = wlc->pub->ieee_hw->conf.chandef.chan; chandef 7854 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan; chandef 334 drivers/net/wireless/intel/iwlegacy/3945-rs.c sband = hw->wiphy->bands[conf->chandef.chan->band]; chandef 858 drivers/net/wireless/intel/iwlegacy/3945-rs.c struct cfg80211_chan_def *chandef, chandef 6059 drivers/net/wireless/intel/iwlegacy/4965-mac.c struct ieee80211_channel *channel = ch_switch->chandef.chan; chandef 6096 drivers/net/wireless/intel/iwlegacy/4965-mac.c switch (cfg80211_get_chandef_type(&ch_switch->chandef)) { chandef 2281 drivers/net/wireless/intel/iwlegacy/4965-rs.c sband = hw->wiphy->bands[conf->chandef.chan->band]; chandef 2770 drivers/net/wireless/intel/iwlegacy/4965-rs.c struct cfg80211_chan_def *chandef, chandef 1481 drivers/net/wireless/intel/iwlegacy/4965.c ch = ch_switch->chandef.chan->hw_value; chandef 5023 drivers/net/wireless/intel/iwlegacy/common.c struct ieee80211_channel *channel = conf->chandef.chan; chandef 410 drivers/net/wireless/intel/iwlwifi/dvm/devices.c ch = ch_switch->chandef.chan->hw_value; chandef 446 drivers/net/wireless/intel/iwlwifi/dvm/devices.c ch_switch->chandef.chan->flags & IEEE80211_CHAN_RADAR; chandef 578 drivers/net/wireless/intel/iwlwifi/dvm/devices.c ch = ch_switch->chandef.chan->hw_value; chandef 614 drivers/net/wireless/intel/iwlwifi/dvm/devices.c ch_switch->chandef.chan->flags & IEEE80211_CHAN_RADAR; chandef 938 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c struct ieee80211_channel *channel = ch_switch->chandef.chan; chandef 976 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c switch (cfg80211_get_chandef_type(&ch_switch->chandef)) { chandef 2788 drivers/net/wireless/intel/iwlwifi/dvm/rs.c sband = hw->wiphy->bands[conf->chandef.chan->band]; chandef 3278 drivers/net/wireless/intel/iwlwifi/dvm/rs.c struct cfg80211_chan_def *chandef, chandef 68 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c cpu_to_le16(priv->hw->conf.chandef.chan->hw_value); chandef 69 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c priv->band = priv->hw->conf.chandef.chan->band; chandef 932 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c sband = priv->hw->wiphy->bands[priv->hw->conf.chandef.chan->band]; chandef 1162 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c struct ieee80211_channel *channel = conf->chandef.chan; chandef 478 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct cfg80211_chan_def chandef; chandef 498 drivers/net/wireless/intel/iwlwifi/mvm/d3.c chandef = ctx->def; chandef 503 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ret = iwl_mvm_phy_ctxt_add(mvm, mvmvif->phy_ctxt, &chandef, chandef 218 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c u32 freq = peer->chandef.chan->center_freq; chandef 222 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c switch (peer->chandef.width) { chandef 237 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c peer->chandef.width); chandef 241 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c *ctrl_ch_position = (peer->chandef.width > NL80211_CHAN_WIDTH_20) ? chandef 242 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c iwl_mvm_get_ctrl_pos(&peer->chandef) : 0; chandef 68 drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c struct cfg80211_chan_def *chandef) chandef 72 drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c .channel_num = chandef->chan->hw_value, chandef 82 drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c switch (chandef->width) { chandef 91 drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c cmd.ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); chandef 95 drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c cmd.ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); chandef 1318 drivers/net/wireless/intel/iwlwifi/mvm/fw.c struct cfg80211_chan_def chandef; chandef 1418 drivers/net/wireless/intel/iwlwifi/mvm/fw.c cfg80211_chandef_create(&chandef, chan, NL80211_CHAN_NO_HT); chandef 1426 drivers/net/wireless/intel/iwlwifi/mvm/fw.c &chandef, 1, 1); chandef 480 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c if (vif->bss_conf.chandef.width > NL80211_CHAN_WIDTH_20) chandef 582 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c if (vif->bss_conf.chandef.width != NL80211_CHAN_WIDTH_20_NOHT) chandef 2994 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (!(vif->bss_conf.chandef.chan->flags & IEEE80211_CHAN_RADAR)) { chandef 2999 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c cfg80211_bss_iter(hw->wiphy, &vif->bss_conf.chandef, chandef 3721 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c struct cfg80211_chan_def chandef; chandef 3789 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c cfg80211_chandef_create(&chandef, channel, NL80211_CHAN_NO_HT); chandef 3797 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c &chandef, 1, 1); chandef 3812 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c ret = iwl_mvm_phy_ctxt_changed(mvm, phy_ctxt, &chandef, chandef 4485 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c chsw->chandef.center_freq1); chandef 4517 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c mvmvif->csa_target_freq = chsw->chandef.chan->center_freq; chandef 1104 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h struct cfg80211_chan_def chandef; chandef 1638 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h struct cfg80211_chan_def *chandef, chandef 1641 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h struct cfg80211_chan_def *chandef, chandef 1648 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h u8 iwl_mvm_get_channel_width(struct cfg80211_chan_def *chandef); chandef 1649 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h u8 iwl_mvm_get_ctrl_pos(struct cfg80211_chan_def *chandef); chandef 2030 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h struct cfg80211_chan_def *chandef, chandef 2126 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h struct cfg80211_chan_def *chandef) chandef 2128 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h iwl_mvm_set_chan_info(mvm, ci, chandef->chan->hw_value, chandef 2129 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h (chandef->chan->band == NL80211_BAND_2GHZ ? chandef 2131 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h iwl_mvm_get_channel_width(chandef), chandef 2132 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h iwl_mvm_get_ctrl_pos(chandef)); chandef 69 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c u8 iwl_mvm_get_channel_width(struct cfg80211_chan_def *chandef) chandef 71 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c switch (chandef->width) { chandef 82 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c WARN(1, "Invalid channel width=%u", chandef->width); chandef 91 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c u8 iwl_mvm_get_ctrl_pos(struct cfg80211_chan_def *chandef) chandef 93 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c switch (chandef->chan->center_freq - chandef->center_freq1) { chandef 143 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c struct cfg80211_chan_def *chandef, chandef 151 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c iwl_mvm_set_chan_info_chandef(mvm, &cmd->ci, chandef); chandef 190 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c struct cfg80211_chan_def *chandef, chandef 202 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c iwl_mvm_phy_ctxt_cmd_data(mvm, &cmd, chandef, chandef 215 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c struct cfg80211_chan_def *chandef, chandef 222 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c ctxt->channel = chandef->chan; chandef 224 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c return iwl_mvm_phy_ctxt_apply(mvm, ctxt, chandef, chandef 245 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c struct cfg80211_chan_def *chandef, chandef 254 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c ctxt->channel->band != chandef->chan->band) { chandef 258 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c ret = iwl_mvm_phy_ctxt_apply(mvm, ctxt, chandef, chandef 268 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c ctxt->channel = chandef->chan; chandef 269 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c ctxt->width = chandef->width; chandef 270 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c return iwl_mvm_phy_ctxt_apply(mvm, ctxt, chandef, chandef 291 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c struct cfg80211_chan_def chandef; chandef 303 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c cfg80211_chandef_create(&chandef, chan, NL80211_CHAN_NO_HT); chandef 304 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c iwl_mvm_phy_ctxt_changed(mvm, ctxt, &chandef, 1, 1); chandef 3045 drivers/net/wireless/intel/iwlwifi/mvm/rs.c struct cfg80211_chan_def *chandef, chandef 4135 drivers/net/wireless/intel/iwlwifi/mvm/rs.c struct cfg80211_chan_def *chandef, chandef 382 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c struct cfg80211_chan_def *chandef, chandef 424 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c if (!chandef) { chandef 426 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c mvm->tdls_cs.peer.chandef.chan) { chandef 428 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c chandef = &mvm->tdls_cs.peer.chandef; chandef 440 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c chandef = &chanctx->def; chandef 444 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c if (chandef) chandef 445 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c iwl_mvm_set_chan_info_chandef(mvm, &cmd.ci, chandef); chandef 535 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c &mvm->tdls_cs.peer.chandef, chandef 553 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c struct cfg80211_chan_def *chandef, chandef 564 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c sta->addr, chandef->chan->center_freq, chandef->width); chandef 578 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c oper_class, chandef, 0, 0, 0, chandef 595 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c mvm->tdls_cs.peer.chandef = *chandef; chandef 710 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c params->chandef, params->timestamp, chandef 790 drivers/net/wireless/intel/iwlwifi/mvm/tx.c enum nl80211_band band = mvmsta->vif->bss_conf.chandef.chan->band; chandef 165 drivers/net/wireless/intersil/orinoco/cfg.c struct cfg80211_chan_def *chandef) chandef 172 drivers/net/wireless/intersil/orinoco/cfg.c if (!chandef->chan) chandef 175 drivers/net/wireless/intersil/orinoco/cfg.c if (cfg80211_get_chandef_type(chandef) != NL80211_CHAN_NO_HT) chandef 178 drivers/net/wireless/intersil/orinoco/cfg.c if (chandef->chan->band != NL80211_BAND_2GHZ) chandef 181 drivers/net/wireless/intersil/orinoco/cfg.c channel = ieee80211_frequency_to_channel(chandef->chan->center_freq); chandef 403 drivers/net/wireless/intersil/p54/fwio.c __le16 freq = cpu_to_le16(priv->hw->conf.chandef.chan->center_freq); chandef 533 drivers/net/wireless/intersil/p54/fwio.c priv->hw->conf.chandef.chan->center_freq)); chandef 339 drivers/net/wireless/intersil/p54/main.c priv->curchan = priv->hw->conf.chandef.chan; chandef 474 drivers/net/wireless/intersil/p54/main.c if (dev->conf.chandef.chan->band == NL80211_BAND_5GHZ) chandef 357 drivers/net/wireless/intersil/p54/txrx.c if (priv->hw->conf.chandef.chan->band == NL80211_BAND_5GHZ) chandef 363 drivers/net/wireless/intersil/p54/txrx.c rx_status->band = priv->hw->conf.chandef.chan->band; chandef 1627 drivers/net/wireless/mac80211_hwsim.c if (conf->chandef.chan) chandef 1631 drivers/net/wireless/mac80211_hwsim.c conf->chandef.chan->center_freq, chandef 1632 drivers/net/wireless/mac80211_hwsim.c conf->chandef.center_freq1, chandef 1633 drivers/net/wireless/mac80211_hwsim.c conf->chandef.center_freq2, chandef 1634 drivers/net/wireless/mac80211_hwsim.c hwsim_chanwidths[conf->chandef.width], chandef 1648 drivers/net/wireless/mac80211_hwsim.c WARN_ON(conf->chandef.chan && data->use_chanctx); chandef 1651 drivers/net/wireless/mac80211_hwsim.c if (data->scanning && conf->chandef.chan) { chandef 1661 drivers/net/wireless/mac80211_hwsim.c data->channel = conf->chandef.chan; chandef 1672 drivers/net/wireless/mac80211_hwsim.c data->channel = conf->chandef.chan; chandef 446 drivers/net/wireless/marvell/libertas/cfg.c struct cfg80211_chan_def *chandef) chandef 451 drivers/net/wireless/marvell/libertas/cfg.c if (cfg80211_get_chandef_type(chandef) != NL80211_CHAN_NO_HT) chandef 454 drivers/net/wireless/marvell/libertas/cfg.c ret = lbs_set_channel(priv, chandef->chan->hw_value); chandef 1675 drivers/net/wireless/marvell/libertas/cfg.c *fake++ = params->chandef.chan->hw_value; chandef 1696 drivers/net/wireless/marvell/libertas/cfg.c params->chandef.chan, chandef 1706 drivers/net/wireless/marvell/libertas/cfg.c cfg80211_ibss_joined(priv->dev, bssid, params->chandef.chan, chandef 1772 drivers/net/wireless/marvell/libertas/cfg.c cmd.bss.ds.channel = params->chandef.chan->hw_value; chandef 1886 drivers/net/wireless/marvell/libertas/cfg.c cmd.ds.channel = params->chandef.chan->hw_value; chandef 1927 drivers/net/wireless/marvell/libertas/cfg.c if (!params->chandef.chan) { chandef 1932 drivers/net/wireless/marvell/libertas/cfg.c ret = lbs_set_channel(priv, params->chandef.chan->hw_value); chandef 1938 drivers/net/wireless/marvell/libertas/cfg.c bss = cfg80211_get_bss(wiphy, params->chandef.chan, params->bssid, chandef 346 drivers/net/wireless/marvell/libertas_tf/main.c if (conf->chandef.chan->center_freq != priv->cur_freq) { chandef 347 drivers/net/wireless/marvell/libertas_tf/main.c priv->cur_freq = conf->chandef.chan->center_freq; chandef 348 drivers/net/wireless/marvell/libertas_tf/main.c lbtf_set_channel(priv, conf->chandef.chan->hw_value); chandef 468 drivers/net/wireless/marvell/libertas_tf/main.c survey->channel = conf->chandef.chan; chandef 125 drivers/net/wireless/marvell/mwifiex/11h.c struct cfg80211_chan_def chandef; chandef 131 drivers/net/wireless/marvell/mwifiex/11h.c chandef = priv->dfs_chandef; chandef 135 drivers/net/wireless/marvell/mwifiex/11h.c cfg80211_cac_event(priv->netdev, &chandef, chandef 157 drivers/net/wireless/marvell/mwifiex/11h.c cr_req->chan_desc.chan_num = radar_params->chandef->chan->hw_value; chandef 158 drivers/net/wireless/marvell/mwifiex/11h.c cr_req->chan_desc.chan_width = radar_params->chandef->width; chandef 164 drivers/net/wireless/marvell/mwifiex/11h.c radar_params->chandef->chan->hw_value); chandef 172 drivers/net/wireless/marvell/mwifiex/11h.c struct cfg80211_chan_def *chandef) chandef 177 drivers/net/wireless/marvell/mwifiex/11h.c radar_params.chandef = chandef; chandef 2029 drivers/net/wireless/marvell/mwifiex/cfg80211.c mwifiex_uap_set_channel(priv, bss_cfg, params->chandef); chandef 2042 drivers/net/wireless/marvell/mwifiex/cfg80211.c mwifiex_set_vht_width(priv, params->chandef.width, chandef 2057 drivers/net/wireless/marvell/mwifiex/cfg80211.c !cfg80211_chandef_dfs_required(wiphy, ¶ms->chandef, chandef 2424 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (params->chandef.chan->band == NL80211_BAND_2GHZ) { chandef 2449 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (cfg80211_get_chandef_type(¶ms->chandef) != chandef 2453 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (cfg80211_get_chandef_type(¶ms->chandef) == chandef 2472 drivers/net/wireless/marvell/mwifiex/cfg80211.c cfg80211_get_chandef_type(¶ms->chandef)); chandef 2474 drivers/net/wireless/marvell/mwifiex/cfg80211.c params->chandef.chan->center_freq); chandef 2512 drivers/net/wireless/marvell/mwifiex/cfg80211.c params->chandef.chan, NULL, chandef 2517 drivers/net/wireless/marvell/mwifiex/cfg80211.c params->chandef.chan, GFP_KERNEL); chandef 3851 drivers/net/wireless/marvell/mwifiex/cfg80211.c struct cfg80211_chan_def *chandef) chandef 3882 drivers/net/wireless/marvell/mwifiex/cfg80211.c chan = chandef->chan->hw_value; chandef 3884 drivers/net/wireless/marvell/mwifiex/cfg80211.c band = chandef->chan->band; chandef 3950 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (cfg80211_chandef_identical(¶ms->chandef, chandef 3980 drivers/net/wireless/marvell/mwifiex/cfg80211.c memcpy(&priv->dfs_chandef, ¶ms->chandef, sizeof(priv->dfs_chandef)); chandef 3992 drivers/net/wireless/marvell/mwifiex/cfg80211.c struct cfg80211_chan_def *chandef) chandef 4004 drivers/net/wireless/marvell/mwifiex/cfg80211.c *chandef = priv->bss_chandef; chandef 4014 drivers/net/wireless/marvell/mwifiex/cfg80211.c cfg80211_chandef_create(chandef, chan, chan_type); chandef 4016 drivers/net/wireless/marvell/mwifiex/cfg80211.c cfg80211_chandef_create(chandef, chan, chandef 4112 drivers/net/wireless/marvell/mwifiex/cfg80211.c struct cfg80211_chan_def *chandef, chandef 4136 drivers/net/wireless/marvell/mwifiex/cfg80211.c radar_params.chandef = chandef; chandef 4139 drivers/net/wireless/marvell/mwifiex/cfg80211.c memcpy(&priv->dfs_chandef, chandef, sizeof(priv->dfs_chandef)); chandef 267 drivers/net/wireless/marvell/mwifiex/decl.h struct cfg80211_chan_def *chandef; chandef 1581 drivers/net/wireless/marvell/mwifiex/main.h struct cfg80211_chan_def chandef); chandef 1668 drivers/net/wireless/marvell/mwifiex/main.h struct cfg80211_chan_def *chandef); chandef 817 drivers/net/wireless/marvell/mwifiex/uap_cmd.c struct cfg80211_chan_def chandef) chandef 821 drivers/net/wireless/marvell/mwifiex/uap_cmd.c priv->bss_chandef = chandef; chandef 824 drivers/net/wireless/marvell/mwifiex/uap_cmd.c chandef.chan->center_freq); chandef 827 drivers/net/wireless/marvell/mwifiex/uap_cmd.c if (chandef.chan->band == NL80211_BAND_2GHZ) { chandef 831 drivers/net/wireless/marvell/mwifiex/uap_cmd.c if (chandef.width > NL80211_CHAN_WIDTH_20_NOHT) chandef 837 drivers/net/wireless/marvell/mwifiex/uap_cmd.c if (chandef.width > NL80211_CHAN_WIDTH_20_NOHT) chandef 840 drivers/net/wireless/marvell/mwifiex/uap_cmd.c if (chandef.width > NL80211_CHAN_WIDTH_40) chandef 844 drivers/net/wireless/marvell/mwifiex/uap_cmd.c switch (chandef.width) { chandef 851 drivers/net/wireless/marvell/mwifiex/uap_cmd.c if (chandef.center_freq1 < chandef.chan->center_freq) chandef 865 drivers/net/wireless/marvell/mwifiex/uap_cmd.c chandef.width); chandef 2877 drivers/net/wireless/marvell/mwl8k.c struct ieee80211_channel *channel = conf->chandef.chan; chandef 2879 drivers/net/wireless/marvell/mwl8k.c cfg80211_get_chandef_type(&conf->chandef); chandef 3149 drivers/net/wireless/marvell/mwl8k.c struct ieee80211_channel *channel = conf->chandef.chan; chandef 3151 drivers/net/wireless/marvell/mwl8k.c cfg80211_get_chandef_type(&conf->chandef); chandef 4110 drivers/net/wireless/marvell/mwl8k.c if (hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) chandef 4545 drivers/net/wireless/marvell/mwl8k.c if (hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) chandef 5026 drivers/net/wireless/marvell/mwl8k.c if (hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) { chandef 5057 drivers/net/wireless/marvell/mwl8k.c if (hw->conf.chandef.chan->band == chandef 5132 drivers/net/wireless/marvell/mwl8k.c if (hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) chandef 5426 drivers/net/wireless/marvell/mwl8k.c survey->channel = conf->chandef.chan; chandef 182 drivers/net/wireless/mediatek/mt76/mac80211.c dev->chandef.chan = &sband->channels[0]; chandef 404 drivers/net/wireless/mediatek/mt76/mac80211.c struct cfg80211_chan_def *chandef = &hw->conf.chandef; chandef 414 drivers/net/wireless/mediatek/mt76/mac80211.c dev->chandef = *chandef; chandef 417 drivers/net/wireless/mediatek/mt76/mac80211.c dev->main_chan = chandef->chan; chandef 419 drivers/net/wireless/mediatek/mt76/mac80211.c if (chandef->chan != dev->main_chan) { chandef 420 drivers/net/wireless/mediatek/mt76/mac80211.c state = mt76_channel_state(dev, chandef->chan); chandef 426 drivers/net/wireless/mediatek/mt76/mt76.h struct cfg80211_chan_def chandef; chandef 46 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (dev->mt76.chandef.chan->band == NL80211_BAND_5GHZ) chandef 567 drivers/net/wireless/mediatek/mt76/mt7603/mac.c int band = dev->mt76.chandef.chan->band; chandef 1055 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (dev->mt76.chandef.chan->band == NL80211_BAND_5GHZ) chandef 1472 drivers/net/wireless/mediatek/mt76/mt7603/mac.c state = mt76_channel_state(&dev->mt76, dev->mt76.chandef.chan); chandef 147 drivers/net/wireless/mediatek/mt76/mt7603/main.c dev->mt76.chandef = *def; chandef 211 drivers/net/wireless/mediatek/mt76/mt7603/main.c ret = mt7603_set_channel(dev, &hw->conf.chandef); chandef 400 drivers/net/wireless/mediatek/mt76/mt7603/mcu.c .center_channel = dev->mt76.chandef.chan->hw_value, chandef 433 drivers/net/wireless/mediatek/mt76/mt7603/mcu.c struct cfg80211_chan_def *chandef = &dev->mt76.chandef; chandef 446 drivers/net/wireless/mediatek/mt76/mt7603/mcu.c .control_chan = chandef->chan->hw_value, chandef 447 drivers/net/wireless/mediatek/mt76/mt7603/mcu.c .center_chan = chandef->chan->hw_value, chandef 455 drivers/net/wireless/mediatek/mt76/mt7603/mcu.c if (dev->mt76.chandef.width == NL80211_CHAN_WIDTH_40) { chandef 457 drivers/net/wireless/mediatek/mt76/mt7603/mcu.c if (chandef->center_freq1 > chandef->chan->center_freq) chandef 228 drivers/net/wireless/mediatek/mt76/mt7615/init.c struct cfg80211_chan_def *chandef = &dev->mt76.chandef; chandef 235 drivers/net/wireless/mediatek/mt76/mt7615/init.c if (!(chandef->chan->flags & IEEE80211_CHAN_RADAR)) chandef 66 drivers/net/wireless/mediatek/mt76/mt7615/mac.c status->freq = dev->mt76.chandef.chan->center_freq; chandef 67 drivers/net/wireless/mediatek/mt76/mt7615/mac.c status->band = dev->mt76.chandef.chan->band; chandef 279 drivers/net/wireless/mediatek/mt76/mt7615/mac.c int band = dev->mt76.chandef.chan->band; chandef 937 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (dev->mt76.chandef.chan->band == NL80211_BAND_5GHZ) chandef 1250 drivers/net/wireless/mediatek/mt76/mt7615/mac.c state = mt76_channel_state(mdev, mdev->chandef.chan); chandef 1285 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct cfg80211_chan_def *chandef = &dev->mt76.chandef; chandef 1293 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (chandef->width == NL80211_CHAN_WIDTH_160 || chandef 1294 drivers/net/wireless/mediatek/mt76/mt7615/mac.c chandef->width == NL80211_CHAN_WIDTH_80P80) chandef 1314 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct cfg80211_chan_def *chandef = &dev->mt76.chandef; chandef 1329 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (chandef->width == NL80211_CHAN_WIDTH_160 || chandef 1330 drivers/net/wireless/mediatek/mt76/mt7615/mac.c chandef->width == NL80211_CHAN_WIDTH_80P80) { chandef 1341 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct cfg80211_chan_def *chandef = &dev->mt76.chandef; chandef 1350 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (dev->dfs_state == chandef->chan->dfs_state) chandef 1353 drivers/net/wireless/mediatek/mt76/mt7615/mac.c dev->dfs_state = chandef->chan->dfs_state; chandef 1355 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (chandef->chan->flags & IEEE80211_CHAN_RADAR) { chandef 1356 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (chandef->chan->dfs_state != NL80211_DFS_AVAILABLE) chandef 330 drivers/net/wireless/mediatek/mt76/mt7615/main.c struct cfg80211_chan_def *chandef) chandef 1154 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c struct cfg80211_chan_def *chandef = &dev->mt76.chandef; chandef 1155 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c int freq = chandef->center_freq1, len, target_chains; chandef 1157 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c enum nl80211_band band = chandef->chan->band; chandef 1201 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c ret = mt7615_eeprom_get_power_index(dev, chandef->chan, i); chandef 1271 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c struct cfg80211_chan_def *chandef = &dev->mt76.chandef; chandef 1272 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c int freq1 = chandef->center_freq1, freq2 = chandef->center_freq2; chandef 1292 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .control_chan = chandef->chan->hw_value, chandef 1300 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c if ((chandef->chan->flags & IEEE80211_CHAN_RADAR) && chandef 1301 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c chandef->chan->dfs_state != NL80211_DFS_AVAILABLE) chandef 1306 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c switch (dev->mt76.chandef.width) { chandef 212 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h enum nl80211_chan_width width = dev->mt76.chandef.width; chandef 213 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h u32 freq = dev->mt76.chandef.chan->center_freq; chandef 216 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h if (hw->conf.chandef.chan->center_freq != freq || chandef 217 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h hw->conf.chandef.width != width) chandef 112 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 132 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c struct cfg80211_chan_def *chandef = &dev->mt76.chandef; chandef 135 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c if (chandef->width == NL80211_CHAN_WIDTH_80) { chandef 137 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c } else if (chandef->width == NL80211_CHAN_WIDTH_40) { chandef 141 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c if (chandef->chan->band == NL80211_BAND_5GHZ) chandef 12 drivers/net/wireless/mediatek/mt76/mt76x0/main.c mt76x0_set_channel(struct mt76x02_dev *dev, struct cfg80211_chan_def *chandef) chandef 20 drivers/net/wireless/mediatek/mt76/mt76x0/main.c mt76x0_phy_set_channel(dev, chandef); chandef 45 drivers/net/wireless/mediatek/mt76/mt76x0/main.c mt76x0_set_channel(dev, &hw->conf.chandef); chandef 58 drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h struct cfg80211_chan_def *chandef); chandef 505 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 546 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 699 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 847 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c mt76x0_get_tx_power_per_rate(dev, dev->mt76.chandef.chan, t); chandef 848 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c mt76x0_get_power_info(dev, dev->mt76.chandef.chan, &info); chandef 861 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 913 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c struct cfg80211_chan_def *chandef) chandef 943 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c freq = chandef->chan->center_freq; chandef 944 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c freq1 = chandef->center_freq1; chandef 945 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c channel = chandef->chan->hw_value; chandef 948 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c switch (chandef->width) { chandef 971 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c mt76x0_phy_bbp_set_bw(dev, chandef->width); chandef 973 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c if (chandef->width == NL80211_CHAN_WIDTH_80 || chandef 974 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c chandef->width == NL80211_CHAN_WIDTH_40) chandef 980 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c mt76x02_phy_set_bw(dev, chandef->width, ch_group_index); chandef 981 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c mt76x02_phy_set_band(dev, chandef->chan->band, chandef 992 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c mt76x0_phy_set_band(dev, chandef->chan->band); chandef 1041 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c dev->mt76.chandef.chan->hw_value); chandef 1061 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c if ((dev->mt76.chandef.chan->flags & IEEE80211_CHAN_RADAR) && chandef 310 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c if (dev->mt76.chandef.chan->center_freq >= 5250 && chandef 311 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c dev->mt76.chandef.chan->center_freq <= 5350) { chandef 705 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c switch (dev->mt76.chandef.width) { chandef 725 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c if (dev->mt76.chandef.chan->center_freq >= 5250 && chandef 726 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c dev->mt76.chandef.chan->center_freq <= 5350) chandef 825 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c struct cfg80211_chan_def *chandef = &dev->mt76.chandef; chandef 827 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c if ((chandef->chan->flags & IEEE80211_CHAN_RADAR) && chandef 182 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c int band = dev->mt76.chandef.chan->band; chandef 469 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c dev->mt76.chandef.chan->band); chandef 475 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c dev->mt76.chandef.chan->band); chandef 479 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c dev->mt76.chandef.chan->band); chandef 787 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c status->freq = dev->mt76.chandef.chan->center_freq; chandef 788 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c status->band = dev->mt76.chandef.chan->band; chandef 953 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c state = mt76_channel_state(&dev->mt76, dev->mt76.chandef.chan); chandef 1011 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 14 drivers/net/wireless/mediatek/mt76/mt76x02_phy.h switch (dev->mt76.chandef.width) { chandef 27 drivers/net/wireless/mediatek/mt76/mt76x02_phy.h switch (dev->mt76.chandef.width) { chandef 77 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c enum nl80211_band band = dev->mt76.chandef.chan->band; chandef 251 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 458 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c enum nl80211_band band = dev->mt76.chandef.chan->band; chandef 56 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.h if (dev->mt76.chandef.chan->band == NL80211_BAND_2GHZ) chandef 33 drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 51 drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h struct cfg80211_chan_def *chandef); chandef 31 drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2u.h struct cfg80211_chan_def *chandef); chandef 41 drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c mt76x2_set_channel(struct mt76x02_dev *dev, struct cfg80211_chan_def *chandef) chandef 55 drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c ret = mt76x2_phy_set_channel(dev, chandef); chandef 109 drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c ret = mt76x2_set_channel(dev, &hw->conf.chandef); chandef 15 drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.c struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 38 drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.c struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 118 drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.c struct cfg80211_chan_def *chandef) chandef 120 drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.c struct ieee80211_channel *chan = chandef->chan; chandef 153 drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.c freq = chandef->chan->center_freq; chandef 154 drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.c freq1 = chandef->center_freq1; chandef 157 drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.c switch (chandef->width) { chandef 190 drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.c mt76x02_phy_set_bw(dev, chandef->width, ch_group_index); chandef 139 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c enum nl80211_chan_width width = dev->mt76.chandef.width; chandef 140 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 205 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 255 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c dev->mt76.chandef.width >= NL80211_CHAN_WIDTH_40) chandef 259 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c dev->mt76.chandef.chan->band == NL80211_BAND_2GHZ && chandef 260 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c dev->mt76.chandef.width < NL80211_CHAN_WIDTH_40) chandef 270 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c if (dev->mt76.chandef.chan->flags & IEEE80211_CHAN_RADAR) chandef 300 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c if (dev->mt76.chandef.width == NL80211_CHAN_WIDTH_80) { chandef 318 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c if (dev->mt76.chandef.chan->band == NL80211_BAND_2GHZ) chandef 322 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c else if (dev->mt76.chandef.width == NL80211_CHAN_WIDTH_80) chandef 35 drivers/net/wireless/mediatek/mt76/mt76x2/usb_main.c struct cfg80211_chan_def *chandef) chandef 49 drivers/net/wireless/mediatek/mt76/mt76x2/usb_main.c err = mt76x2u_phy_set_channel(dev, chandef); chandef 96 drivers/net/wireless/mediatek/mt76/mt76x2/usb_main.c err = mt76x2u_set_channel(dev, &hw->conf.chandef); chandef 13 drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c struct ieee80211_channel *chan = dev->mt76.chandef.chan; chandef 61 drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c struct cfg80211_chan_def *chandef) chandef 86 drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c struct ieee80211_channel *chan = chandef->chan; chandef 91 drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c freq = chandef->chan->center_freq; chandef 92 drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c freq1 = chandef->center_freq1; chandef 94 drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c switch (chandef->width) { chandef 127 drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c mt76x02_phy_set_bw(dev, chandef->width, ch_group_index); chandef 188 drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c chan = dev->mt76.chandef.chan; chandef 550 drivers/net/wireless/mediatek/mt7601u/init.c dev->chandef.chan = &sband->channels[0]; chandef 122 drivers/net/wireless/mediatek/mt7601u/mac.c int band = dev->chandef.chan->band; chandef 489 drivers/net/wireless/mediatek/mt7601u/mac.c status->freq = dev->chandef.chan->center_freq; chandef 490 drivers/net/wireless/mediatek/mt7601u/mac.c status->band = dev->chandef.chan->band; chandef 90 drivers/net/wireless/mediatek/mt7601u/main.c ret = mt7601u_phy_set_channel(dev, &hw->conf.chandef); chandef 162 drivers/net/wireless/mediatek/mt7601u/mt7601u.h struct cfg80211_chan_def chandef; chandef 350 drivers/net/wireless/mediatek/mt7601u/mt7601u.h struct cfg80211_chan_def *chandef); chandef 343 drivers/net/wireless/mediatek/mt7601u/phy.c struct cfg80211_chan_def *chandef) chandef 371 drivers/net/wireless/mediatek/mt7601u/phy.c struct ieee80211_channel *chan = chandef->chan; chandef 373 drivers/net/wireless/mediatek/mt7601u/phy.c cfg80211_get_chandef_type(chandef); chandef 384 drivers/net/wireless/mediatek/mt7601u/phy.c if (chandef->width == NL80211_CHAN_WIDTH_40) { chandef 437 drivers/net/wireless/mediatek/mt7601u/phy.c dev->chandef = *chandef; chandef 443 drivers/net/wireless/mediatek/mt7601u/phy.c struct cfg80211_chan_def *chandef) chandef 451 drivers/net/wireless/mediatek/mt7601u/phy.c ret = __mt7601u_phy_set_channel(dev, chandef); chandef 773 drivers/net/wireless/mediatek/mt7601u/phy.c return dev->ee->chan_pwr[dev->chandef.chan->hw_value - 1]; chandef 901 drivers/net/wireless/mediatek/mt7601u/phy.c if (dev->chandef.chan->hw_value < 5) chandef 903 drivers/net/wireless/mediatek/mt7601u/phy.c else if (dev->chandef.chan->hw_value < 9) chandef 733 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c const struct cfg80211_chan_def *chandef = &wdev->chandef; chandef 756 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c if (chandef->chan) { chandef 757 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c if (chan->hw_value == chandef->chan->hw_value) chandef 800 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c struct cfg80211_chan_def *chandef) chandef 811 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c ret = qtnf_cmd_get_channel(vif, chandef); chandef 818 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c if (!cfg80211_chandef_valid(chandef)) { chandef 820 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c ndev->name, chandef->chan->center_freq, chandef 821 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c chandef->center_freq1, chandef->center_freq2, chandef 822 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c chandef->width); chandef 838 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c params->chandef.chan->hw_value, params->count, chandef 841 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c if (!cfg80211_chandef_valid(¶ms->chandef)) { chandef 849 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c dev->name, params->chandef.chan->hw_value); chandef 856 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c struct cfg80211_chan_def *chandef, chandef 865 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c ret = qtnf_cmd_start_cac(vif, chandef, cac_time_ms); chandef 201 drivers/net/wireless/quantenna/qtnfmac/commands.c if (cfg80211_chandef_valid(&s->chandef)) chandef 268 drivers/net/wireless/quantenna/qtnfmac/commands.c if (cfg80211_chandef_valid(&s->chandef)) { chandef 276 drivers/net/wireless/quantenna/qtnfmac/commands.c qlink_chandef_cfg2q(&s->chandef, &chtlv->chdef); chandef 2512 drivers/net/wireless/quantenna/qtnfmac/commands.c cmd->channel = cpu_to_le16(params->chandef.chan->hw_value); chandef 150 drivers/net/wireless/quantenna/qtnfmac/event.c struct cfg80211_chan_def chandef; chandef 181 drivers/net/wireless/quantenna/qtnfmac/event.c qlink_chandef_q2cfg(wiphy, &join_info->chan, &chandef); chandef 182 drivers/net/wireless/quantenna/qtnfmac/event.c if (!cfg80211_chandef_valid(&chandef)) { chandef 185 drivers/net/wireless/quantenna/qtnfmac/event.c chandef.chan ? chandef.chan->center_freq : 0, chandef 186 drivers/net/wireless/quantenna/qtnfmac/event.c chandef.center_freq1, chandef 187 drivers/net/wireless/quantenna/qtnfmac/event.c chandef.center_freq2, chandef 188 drivers/net/wireless/quantenna/qtnfmac/event.c chandef.width); chandef 193 drivers/net/wireless/quantenna/qtnfmac/event.c bss = cfg80211_get_bss(wiphy, chandef.chan, join_info->bssid, chandef 199 drivers/net/wireless/quantenna/qtnfmac/event.c join_info->bssid, chandef.chan->hw_value); chandef 222 drivers/net/wireless/quantenna/qtnfmac/event.c bss = cfg80211_inform_bss(wiphy, chandef.chan, chandef 469 drivers/net/wireless/quantenna/qtnfmac/event.c struct cfg80211_chan_def chandef; chandef 481 drivers/net/wireless/quantenna/qtnfmac/event.c qlink_chandef_q2cfg(wiphy, &data->chan, &chandef); chandef 483 drivers/net/wireless/quantenna/qtnfmac/event.c if (!cfg80211_chandef_valid(&chandef)) { chandef 485 drivers/net/wireless/quantenna/qtnfmac/event.c mac->macid, chandef.chan->center_freq, chandef 486 drivers/net/wireless/quantenna/qtnfmac/event.c chandef.center_freq1, chandef.center_freq2, chandef 487 drivers/net/wireless/quantenna/qtnfmac/event.c chandef.width); chandef 492 drivers/net/wireless/quantenna/qtnfmac/event.c mac->macid, chandef.chan->hw_value, chandef.center_freq1, chandef 493 drivers/net/wireless/quantenna/qtnfmac/event.c chandef.center_freq2, chandef.width); chandef 509 drivers/net/wireless/quantenna/qtnfmac/event.c cfg80211_ch_switch_notify(vif->netdev, &chandef); chandef 521 drivers/net/wireless/quantenna/qtnfmac/event.c struct cfg80211_chan_def chandef; chandef 531 drivers/net/wireless/quantenna/qtnfmac/event.c qlink_chandef_q2cfg(wiphy, &ev->chan, &chandef); chandef 533 drivers/net/wireless/quantenna/qtnfmac/event.c if (!cfg80211_chandef_valid(&chandef)) { chandef 536 drivers/net/wireless/quantenna/qtnfmac/event.c chandef.center_freq1, chandef.center_freq2, chandef 537 drivers/net/wireless/quantenna/qtnfmac/event.c chandef.width); chandef 543 drivers/net/wireless/quantenna/qtnfmac/event.c chandef.center_freq1, chandef.center_freq2, chandef 544 drivers/net/wireless/quantenna/qtnfmac/event.c chandef.width); chandef 548 drivers/net/wireless/quantenna/qtnfmac/event.c cfg80211_radar_event(wiphy, &chandef, GFP_KERNEL); chandef 554 drivers/net/wireless/quantenna/qtnfmac/event.c cfg80211_cac_event(vif->netdev, &chandef, chandef 561 drivers/net/wireless/quantenna/qtnfmac/event.c cfg80211_cac_event(vif->netdev, &chandef, chandef 572 drivers/net/wireless/quantenna/qtnfmac/event.c cfg80211_cac_event(vif->netdev, &chandef, chandef 5371 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_config_txpower(rt2x00dev, rt2x00dev->hw->conf.chandef.chan, chandef 5561 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_config_txpower(rt2x00dev, libconf->conf->chandef.chan, chandef 5565 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_config_txpower(rt2x00dev, libconf->conf->chandef.chan, chandef 10517 drivers/net/wireless/ralink/rt2x00/rt2800lib.c survey->channel = conf->chandef.chan; chandef 174 drivers/net/wireless/ralink/rt2x00/rt2x00config.c center_channel = spec->channels[conf->chandef.chan->hw_value].channel; chandef 189 drivers/net/wireless/ralink/rt2x00/rt2x00config.c return conf->chandef.chan->hw_value; chandef 217 drivers/net/wireless/ralink/rt2x00/rt2x00config.c hw_value = conf->chandef.chan->hw_value; chandef 251 drivers/net/wireless/ralink/rt2x00/rt2x00config.c rt2x00dev->curr_band = conf->chandef.chan->band; chandef 252 drivers/net/wireless/ralink/rt2x00/rt2x00config.c rt2x00dev->curr_freq = conf->chandef.chan->center_freq; chandef 756 drivers/net/wireless/ralink/rt2x00/rt61pci.c if (libconf->conf->chandef.chan->band == NL80211_BAND_2GHZ) { chandef 731 drivers/net/wireless/ralink/rt2x00/rt73usb.c if (libconf->conf->chandef.chan->band == NL80211_BAND_2GHZ) { chandef 313 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c rx_status.freq = dev->conf.chandef.chan->center_freq; chandef 314 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c rx_status.band = dev->conf.chandef.chan->band; chandef 82 drivers/net/wireless/realtek/rtl818x/rtl8180/grf5101.c ieee80211_frequency_to_channel(conf->chandef.chan->center_freq); chandef 94 drivers/net/wireless/realtek/rtl818x/rtl8180/max2820.c ieee80211_frequency_to_channel(conf->chandef.chan->center_freq) : 1; chandef 720 drivers/net/wireless/realtek/rtl818x/rtl8180/rtl8225.c ieee80211_frequency_to_channel(conf->chandef.chan->center_freq); chandef 452 drivers/net/wireless/realtek/rtl818x/rtl8180/rtl8225se.c ieee80211_frequency_to_channel(conf->chandef.chan->center_freq); chandef 105 drivers/net/wireless/realtek/rtl818x/rtl8180/sa2400.c ieee80211_frequency_to_channel(conf->chandef.chan->center_freq); chandef 383 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c rx_status.freq = dev->conf.chandef.chan->center_freq; chandef 384 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c rx_status.band = dev->conf.chandef.chan->band; chandef 995 drivers/net/wireless/realtek/rtl818x/rtl8187/rtl8225.c ieee80211_frequency_to_channel(conf->chandef.chan->center_freq); chandef 1143 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c channel = hw->conf.chandef.chan->hw_value; chandef 1145 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c switch (hw->conf.chandef.width) { chandef 1166 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (hw->conf.chandef.center_freq1 > chandef 1167 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c hw->conf.chandef.chan->center_freq) { chandef 1247 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (hw->conf.chandef.width == NL80211_CHAN_WIDTH_40) chandef 1268 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c channel = hw->conf.chandef.chan->hw_value; chandef 1273 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c switch (hw->conf.chandef.width) { chandef 1297 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (hw->conf.chandef.center_freq1 > chandef 1298 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c hw->conf.chandef.chan->center_freq) { chandef 1371 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c switch(hw->conf.chandef.width) { chandef 5276 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 5277 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rx_status->band = hw->conf.chandef.chan->band; chandef 5346 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 5347 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rx_status->band = hw->conf.chandef.chan->band; chandef 5507 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c __func__, hw->conf.chandef.chan->hw_value, chandef 5508 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c changed, hw->conf.chandef.width); chandef 5519 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c switch (hw->conf.chandef.width) { chandef 5532 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c channel = hw->conf.chandef.chan->hw_value; chandef 1054 drivers/net/wireless/realtek/rtlwifi/base.c if (NL80211_BAND_2GHZ == hw->conf.chandef.chan->band) { chandef 1351 drivers/net/wireless/realtek/rtlwifi/base.c rx_status.freq = hw->conf.chandef.chan->center_freq; chandef 1352 drivers/net/wireless/realtek/rtlwifi/base.c rx_status.band = hw->conf.chandef.chan->band; chandef 2505 drivers/net/wireless/realtek/rtlwifi/base.c info->band = hw->conf.chandef.chan->band; chandef 651 drivers/net/wireless/realtek/rtlwifi/core.c struct ieee80211_channel *channel = hw->conf.chandef.chan; chandef 652 drivers/net/wireless/realtek/rtlwifi/core.c enum nl80211_chan_width width = hw->conf.chandef.width; chandef 659 drivers/net/wireless/realtek/rtlwifi/core.c cfg80211_get_chandef_type(&hw->conf.chandef); chandef 682 drivers/net/wireless/realtek/rtlwifi/core.c u32 center = hw->conf.chandef.center_freq1; chandef 684 drivers/net/wireless/realtek/rtlwifi/core.c (u32)hw->conf.chandef.chan->center_freq; chandef 35 drivers/net/wireless/realtek/rtlwifi/ps.c cfg80211_get_chandef_type(&hw->conf.chandef)); chandef 251 drivers/net/wireless/realtek/rtlwifi/rc.c struct cfg80211_chan_def *chandef, chandef 258 drivers/net/wireless/realtek/rtlwifi/rc.c struct cfg80211_chan_def *chandef, chandef 416 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 417 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c rx_status->band = hw->conf.chandef.chan->band; chandef 326 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 327 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c rx_status->band = hw->conf.chandef.chan->band; chandef 308 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 309 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c rx_status->band = hw->conf.chandef.chan->band; chandef 377 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 378 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c rx_status->band = hw->conf.chandef.chan->band; chandef 463 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 464 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c rx_status->band = hw->conf.chandef.chan->band; chandef 369 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 370 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c rx_status->band = hw->conf.chandef.chan->band; chandef 263 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 264 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c rx_status->band = hw->conf.chandef.chan->band; chandef 289 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 290 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c rx_status->band = hw->conf.chandef.chan->band; chandef 346 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 347 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c rx_status->band = hw->conf.chandef.chan->band; chandef 489 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 490 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c rx_status->band = hw->conf.chandef.chan->band; chandef 206 drivers/net/wireless/realtek/rtw88/main.c void rtw_get_channel_params(struct cfg80211_chan_def *chandef, chandef 209 drivers/net/wireless/realtek/rtw88/main.c struct ieee80211_channel *channel = chandef->chan; chandef 210 drivers/net/wireless/realtek/rtw88/main.c enum nl80211_chan_width width = chandef->width; chandef 220 drivers/net/wireless/realtek/rtw88/main.c center_freq = chandef->center_freq1; chandef 294 drivers/net/wireless/realtek/rtw88/main.c rtw_get_channel_params(&hw->conf.chandef, &ch_param); chandef 1401 drivers/net/wireless/realtek/rtw88/main.h void rtw_get_channel_params(struct cfg80211_chan_def *chandef, chandef 96 drivers/net/wireless/realtek/rtw88/rx.c rx_status->freq = hw->conf.chandef.chan->center_freq; chandef 97 drivers/net/wireless/realtek/rtw88/rx.c rx_status->band = hw->conf.chandef.chan->band; chandef 2281 drivers/net/wireless/rndis_wlan.c struct ieee80211_channel *channel = params->chandef.chan; chandef 580 drivers/net/wireless/rsi/rsi_91x_mac80211.c struct ieee80211_channel *curchan = hw->conf.chandef.chan; chandef 747 drivers/net/wireless/rsi/rsi_91x_mac80211.c channel = bss->chandef.chan; chandef 766 drivers/net/wireless/rsi/rsi_91x_mac80211.c channel = vif->bss_conf.chandef.chan; chandef 1219 drivers/net/wireless/rsi/rsi_91x_mac80211.c enum nl80211_band band = hw->conf.chandef.chan->band; chandef 1370 drivers/net/wireless/rsi/rsi_91x_mac80211.c u8 band = hw->conf.chandef.chan->band; chandef 1065 drivers/net/wireless/rsi/rsi_91x_mgmt.c if ((hw->conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT) || chandef 1066 drivers/net/wireless/rsi/rsi_91x_mgmt.c (hw->conf.chandef.width == NL80211_CHAN_WIDTH_20)) chandef 1304 drivers/net/wireless/rsi/rsi_91x_mgmt.c u8 band = hw->conf.chandef.chan->band; chandef 344 drivers/net/wireless/st/cw1200/sta.c (priv->channel != conf->chandef.chan)) { chandef 345 drivers/net/wireless/st/cw1200/sta.c struct ieee80211_channel *ch = conf->chandef.chan; chandef 1914 drivers/net/wireless/st/cw1200/sta.c priv->ht_info.channel_type = cfg80211_get_chandef_type(&dev->conf.chandef); chandef 599 drivers/net/wireless/ti/wl1251/main.c conf->chandef.chan->center_freq); chandef 1337 drivers/net/wireless/ti/wl1251/main.c survey->channel = conf->chandef.chan; chandef 290 drivers/net/wireless/ti/wl12xx/cmd.c cmd->channel = ch_switch->chandef.chan->hw_value; chandef 32 drivers/net/wireless/ti/wl18xx/cmd.c cmd->channel = ch_switch->chandef.chan->hw_value; chandef 36 drivers/net/wireless/ti/wl18xx/cmd.c switch (ch_switch->chandef.chan->band) { chandef 45 drivers/net/wireless/ti/wl18xx/cmd.c ch_switch->chandef.chan->band); chandef 2937 drivers/net/wireless/ti/wlcore/main.c wlvif->channel_type = cfg80211_get_chandef_type(&bss_conf->chandef); chandef 4285 drivers/net/wireless/ti/wlcore/main.c (bss_conf->chandef.width != NL80211_CHAN_WIDTH_20_NOHT)) { chandef 4558 drivers/net/wireless/ti/wlcore/main.c bss_conf->chandef.width != NL80211_CHAN_WIDTH_20_NOHT; chandef 5013 drivers/net/wireless/ti/wlcore/main.c survey->channel = conf->chandef.chan; chandef 5583 drivers/net/wireless/ti/wlcore/main.c struct cfg80211_chan_def *chandef) chandef 5589 drivers/net/wireless/ti/wlcore/main.c .chandef = *chandef, chandef 1143 drivers/net/wireless/zydas/zd1211rw/zd_mac.c mac->channel = conf->chandef.chan->hw_value; chandef 1146 drivers/net/wireless/zydas/zd1211rw/zd_mac.c return zd_chip_set_channel(&mac->chip, conf->chandef.chan->hw_value); chandef 1364 drivers/staging/vt6655/device_main.c set_channel(priv, conf->chandef.chan); chandef 1366 drivers/staging/vt6655/device_main.c if (conf->chandef.chan->band == NL80211_BAND_5GHZ) chandef 1385 drivers/staging/vt6655/device_main.c conf->chandef.chan->hw_value); chandef 1447 drivers/staging/vt6655/device_main.c conf->chandef.chan->hw_value); chandef 54 drivers/staging/vt6655/dpc.c sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; chandef 91 drivers/staging/vt6655/dpc.c rx_status.band = hw->conf.chandef.chan->band; chandef 94 drivers/staging/vt6655/dpc.c rx_status.freq = hw->conf.chandef.chan->center_freq; chandef 1296 drivers/staging/vt6655/rxtx.c priv->hw->conf.chandef.chan->hw_value); chandef 86 drivers/staging/vt6656/dpc.c sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; chandef 140 drivers/staging/vt6656/dpc.c rx_status.band = hw->conf.chandef.chan->band; chandef 143 drivers/staging/vt6656/dpc.c rx_status.freq = hw->conf.chandef.chan->center_freq; chandef 686 drivers/staging/vt6656/main_usb.c vnt_set_channel(priv, conf->chandef.chan->hw_value); chandef 688 drivers/staging/vt6656/main_usb.c if (conf->chandef.chan->band == NL80211_BAND_5GHZ) chandef 701 drivers/staging/vt6656/main_usb.c conf->chandef.chan->hw_value); chandef 760 drivers/staging/vt6656/main_usb.c conf->chandef.chan->hw_value); chandef 745 drivers/staging/vt6656/rf.c u16 hw_value = priv->hw->conf.chandef.chan->hw_value; chandef 126 drivers/staging/vt6656/wcmd.c priv->hw->conf.chandef.chan->hw_value); chandef 201 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c struct cfg80211_chan_def *chandef) chandef 215 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c channelnum = ieee80211_frequency_to_channel(chandef->chan->center_freq); chandef 1477 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c ret = set_channel(wiphy, &settings->chandef); chandef 607 include/net/cfg80211.h cfg80211_get_chandef_type(const struct cfg80211_chan_def *chandef) chandef 609 include/net/cfg80211.h switch (chandef->width) { chandef 615 include/net/cfg80211.h if (chandef->center_freq1 > chandef->chan->center_freq) chandef 632 include/net/cfg80211.h void cfg80211_chandef_create(struct cfg80211_chan_def *chandef, chandef 662 include/net/cfg80211.h cfg80211_chandef_is_edmg(const struct cfg80211_chan_def *chandef) chandef 664 include/net/cfg80211.h return chandef->edmg.channels || chandef->edmg.bw_config; chandef 684 include/net/cfg80211.h bool cfg80211_chandef_valid(const struct cfg80211_chan_def *chandef); chandef 694 include/net/cfg80211.h const struct cfg80211_chan_def *chandef, chandef 706 include/net/cfg80211.h const struct cfg80211_chan_def *chandef, chandef 720 include/net/cfg80211.h ieee80211_chandef_rate_flags(struct cfg80211_chan_def *chandef) chandef 722 include/net/cfg80211.h switch (chandef->width) { chandef 745 include/net/cfg80211.h ieee80211_chandef_max_power(struct cfg80211_chan_def *chandef) chandef 747 include/net/cfg80211.h switch (chandef->width) { chandef 749 include/net/cfg80211.h return min(chandef->chan->max_reg_power - 6, chandef 750 include/net/cfg80211.h chandef->chan->max_power); chandef 752 include/net/cfg80211.h return min(chandef->chan->max_reg_power - 3, chandef 753 include/net/cfg80211.h chandef->chan->max_power); chandef 757 include/net/cfg80211.h return chandef->chan->max_power; chandef 993 include/net/cfg80211.h struct cfg80211_chan_def chandef; chandef 1038 include/net/cfg80211.h struct cfg80211_chan_def chandef; chandef 1804 include/net/cfg80211.h struct cfg80211_chan_def chandef; chandef 1832 include/net/cfg80211.h struct cfg80211_chan_def chandef; chandef 2431 include/net/cfg80211.h struct cfg80211_chan_def chandef; chandef 3221 include/net/cfg80211.h struct cfg80211_chan_def chandef; chandef 3727 include/net/cfg80211.h struct cfg80211_chan_def *chandef); chandef 3855 include/net/cfg80211.h struct cfg80211_chan_def *chandef); chandef 3867 include/net/cfg80211.h struct cfg80211_chan_def *chandef, chandef 3891 include/net/cfg80211.h struct cfg80211_chan_def *chandef); chandef 3902 include/net/cfg80211.h struct cfg80211_chan_def *chandef); chandef 4936 include/net/cfg80211.h struct cfg80211_chan_def chandef; chandef 5881 include/net/cfg80211.h struct cfg80211_chan_def *chandef, chandef 5888 include/net/cfg80211.h cfg80211_chandef_to_scan_width(const struct cfg80211_chan_def *chandef) chandef 5890 include/net/cfg80211.h switch (chandef->width) { chandef 6866 include/net/cfg80211.h struct cfg80211_chan_def *chandef, gfp_t gfp); chandef 6894 include/net/cfg80211.h const struct cfg80211_chan_def *chandef, chandef 6990 include/net/cfg80211.h struct cfg80211_chan_def *chandef, chandef 7007 include/net/cfg80211.h struct cfg80211_chan_def *chandef, chandef 7019 include/net/cfg80211.h struct cfg80211_chan_def *chandef); chandef 7032 include/net/cfg80211.h struct cfg80211_chan_def *chandef, chandef 7054 include/net/cfg80211.h bool ieee80211_chandef_to_operating_class(struct cfg80211_chan_def *chandef, chandef 643 include/net/mac80211.h struct cfg80211_chan_def chandef; chandef 1513 include/net/mac80211.h struct cfg80211_chan_def chandef; chandef 1542 include/net/mac80211.h struct cfg80211_chan_def chandef; chandef 2550 include/net/mac80211.h struct cfg80211_chan_def *chandef; chandef 3996 include/net/mac80211.h struct cfg80211_chan_def *chandef); chandef 4019 include/net/mac80211.h struct cfg80211_chan_def *chandef, chandef 5943 include/net/mac80211.h struct cfg80211_chan_def *chandef, chandef 5946 include/net/mac80211.h struct cfg80211_chan_def *chandef, chandef 6025 include/net/mac80211.h return conf->chandef.width == NL80211_CHAN_WIDTH_20; chandef 6031 include/net/mac80211.h return conf->chandef.width == NL80211_CHAN_WIDTH_40 && chandef 6032 include/net/mac80211.h conf->chandef.center_freq1 < conf->chandef.chan->center_freq; chandef 6038 include/net/mac80211.h return conf->chandef.width == NL80211_CHAN_WIDTH_40 && chandef 6039 include/net/mac80211.h conf->chandef.center_freq1 > conf->chandef.chan->center_freq; chandef 6045 include/net/mac80211.h return conf->chandef.width == NL80211_CHAN_WIDTH_40; chandef 6051 include/net/mac80211.h return (conf->chandef.width != NL80211_CHAN_WIDTH_5) && chandef 6052 include/net/mac80211.h (conf->chandef.width != NL80211_CHAN_WIDTH_10) && chandef 6053 include/net/mac80211.h (conf->chandef.width != NL80211_CHAN_WIDTH_20_NOHT); chandef 770 net/mac80211/cfg.c struct cfg80211_chan_def *chandef) chandef 776 net/mac80211/cfg.c if (cfg80211_chandef_identical(&local->monitor_chandef, chandef)) chandef 784 net/mac80211/cfg.c ret = ieee80211_vif_use_channel(sdata, chandef, chandef 788 net/mac80211/cfg.c local->_oper_chandef = *chandef; chandef 793 net/mac80211/cfg.c local->monitor_chandef = *chandef; chandef 1016 net/mac80211/cfg.c err = ieee80211_vif_use_channel(sdata, ¶ms->chandef, chandef 1135 net/mac80211/cfg.c struct cfg80211_chan_def chandef; chandef 1183 net/mac80211/cfg.c chandef = sdata->vif.bss_conf.chandef; chandef 1185 net/mac80211/cfg.c cfg80211_cac_event(sdata->dev, &chandef, chandef 1479 net/mac80211/cfg.c ieee80211_parse_bitrates(&sdata->vif.bss_conf.chandef, chandef 2127 net/mac80211/cfg.c err = ieee80211_vif_use_channel(sdata, &setup->chandef, chandef 2187 net/mac80211/cfg.c ieee80211_parse_bitrates(&sdata->vif.bss_conf.chandef, chandef 2648 net/mac80211/cfg.c if (sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT) chandef 2734 net/mac80211/cfg.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT) chandef 2876 net/mac80211/cfg.c sdata->vif.bss_conf.chandef.chan) { chandef 2878 net/mac80211/cfg.c enum nl80211_band band = sdata->vif.bss_conf.chandef.chan->band; chandef 2926 net/mac80211/cfg.c struct cfg80211_chan_def *chandef, chandef 2943 net/mac80211/cfg.c err = ieee80211_vif_use_channel(sdata, chandef, chandef 3126 net/mac80211/cfg.c if (!cfg80211_chandef_identical(&sdata->vif.bss_conf.chandef, chandef 3245 net/mac80211/cfg.c if (params->chandef.width != sdata->u.ibss.chandef.width) chandef 3248 net/mac80211/cfg.c switch (params->chandef.width) { chandef 3250 net/mac80211/cfg.c if (cfg80211_get_chandef_type(¶ms->chandef) != chandef 3251 net/mac80211/cfg.c cfg80211_get_chandef_type(&sdata->u.ibss.chandef)) chandef 3263 net/mac80211/cfg.c if (sdata->u.ibss.chandef.chan->band != chandef 3264 net/mac80211/cfg.c params->chandef.chan->band) chandef 3282 net/mac80211/cfg.c if (params->chandef.width != sdata->vif.bss_conf.chandef.width) chandef 3286 net/mac80211/cfg.c if (sdata->vif.bss_conf.chandef.chan->band != chandef 3287 net/mac80211/cfg.c params->chandef.chan->band) chandef 3342 net/mac80211/cfg.c if (cfg80211_chandef_identical(¶ms->chandef, chandef 3343 net/mac80211/cfg.c &sdata->vif.bss_conf.chandef)) chandef 3363 net/mac80211/cfg.c ch_switch.chandef = params->chandef; chandef 3370 net/mac80211/cfg.c err = ieee80211_vif_reserve_chanctx(sdata, ¶ms->chandef, chandef 3389 net/mac80211/cfg.c sdata->csa_chandef = params->chandef; chandef 3402 net/mac80211/cfg.c drv_channel_switch_beacon(sdata, ¶ms->chandef); chandef 3632 net/mac80211/cfg.c struct cfg80211_chan_def *chandef) chandef 3642 net/mac80211/cfg.c *chandef = sdata->vif.bss_conf.chandef; chandef 3648 net/mac80211/cfg.c *chandef = local->monitor_chandef; chandef 3650 net/mac80211/cfg.c *chandef = local->_oper_chandef; chandef 3692 net/mac80211/cfg.c struct cfg80211_chan_def *chandef) chandef 3698 net/mac80211/cfg.c ret = ieee80211_vif_change_bandwidth(sdata, chandef, &changed); chandef 119 net/mac80211/chan.c compat = &sdata->vif.bss_conf.chandef; chandef 122 net/mac80211/chan.c &sdata->vif.bss_conf.chandef, compat); chandef 167 net/mac80211/chan.c const struct cfg80211_chan_def *chandef, chandef 185 net/mac80211/chan.c chandef)) chandef 271 net/mac80211/chan.c width = max(vif->bss_conf.chandef.width, chandef 281 net/mac80211/chan.c width = vif->bss_conf.chandef.width; chandef 343 net/mac80211/chan.c const struct cfg80211_chan_def *chandef) chandef 345 net/mac80211/chan.c if (cfg80211_chandef_identical(&ctx->conf.def, chandef)) { chandef 350 net/mac80211/chan.c WARN_ON(!cfg80211_chandef_compatible(&ctx->conf.def, chandef)); chandef 352 net/mac80211/chan.c ctx->conf.def = *chandef; chandef 357 net/mac80211/chan.c local->_oper_chandef = *chandef; chandef 364 net/mac80211/chan.c const struct cfg80211_chan_def *chandef, chandef 383 net/mac80211/chan.c compat = cfg80211_chandef_compatible(&ctx->conf.def, chandef); chandef 448 net/mac80211/chan.c const struct cfg80211_chan_def *chandef, chandef 461 net/mac80211/chan.c ctx->conf.def = *chandef; chandef 504 net/mac80211/chan.c const struct cfg80211_chan_def *chandef, chandef 513 net/mac80211/chan.c ctx = ieee80211_alloc_chanctx(local, chandef, mode); chandef 533 net/mac80211/chan.c struct cfg80211_chan_def *chandef = &local->_oper_chandef; chandef 534 net/mac80211/chan.c chandef->width = NL80211_CHAN_WIDTH_20_NOHT; chandef 535 net/mac80211/chan.c chandef->center_freq1 = chandef->chan->center_freq; chandef 536 net/mac80211/chan.c chandef->center_freq2 = 0; chandef 587 net/mac80211/chan.c compat = &sdata->vif.bss_conf.chandef; chandef 590 net/mac80211/chan.c &sdata->vif.bss_conf.chandef, compat); chandef 869 net/mac80211/chan.c const struct cfg80211_chan_def *chandef, chandef 882 net/mac80211/chan.c new_ctx = ieee80211_find_reservation_chanctx(local, chandef, mode); chandef 885 net/mac80211/chan.c new_ctx = ieee80211_new_chanctx(local, chandef, mode); chandef 939 net/mac80211/chan.c new_ctx = ieee80211_alloc_chanctx(local, chandef, mode); chandef 957 net/mac80211/chan.c sdata->reserved_chandef = *chandef; chandef 995 net/mac80211/chan.c const struct cfg80211_chan_def *chandef) chandef 999 net/mac80211/chan.c sdata->vif.bss_conf.chandef = *chandef; chandef 1005 net/mac80211/chan.c vlan->vif.bss_conf.chandef = *chandef; chandef 1014 net/mac80211/chan.c const struct cfg80211_chan_def *chandef; chandef 1037 net/mac80211/chan.c chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, chandef 1039 net/mac80211/chan.c if (WARN_ON(!chandef)) chandef 1042 net/mac80211/chan.c ieee80211_change_chanctx(local, new_ctx, chandef); chandef 1071 net/mac80211/chan.c if (sdata->vif.bss_conf.chandef.width != sdata->reserved_chandef.width) chandef 1093 net/mac80211/chan.c const struct cfg80211_chan_def *chandef; chandef 1112 net/mac80211/chan.c chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, chandef 1114 net/mac80211/chan.c if (WARN_ON(!chandef)) chandef 1117 net/mac80211/chan.c ieee80211_change_chanctx(local, new_ctx, chandef); chandef 1163 net/mac80211/chan.c const struct cfg80211_chan_def *chandef; chandef 1168 net/mac80211/chan.c chandef = ieee80211_chanctx_reserved_chandef(local, new_ctx, NULL); chandef 1169 net/mac80211/chan.c if (WARN_ON(!chandef)) chandef 1173 net/mac80211/chan.c local->_oper_chandef = *chandef; chandef 1418 net/mac80211/chan.c if (sdata->vif.bss_conf.chandef.width != chandef 1556 net/mac80211/chan.c const struct cfg80211_chan_def *chandef, chandef 1571 net/mac80211/chan.c chandef, chandef 1576 net/mac80211/chan.c radar_detect_width = BIT(chandef->width); chandef 1580 net/mac80211/chan.c ret = ieee80211_check_combinations(sdata, chandef, mode, chandef 1587 net/mac80211/chan.c ctx = ieee80211_find_chanctx(local, chandef, mode); chandef 1589 net/mac80211/chan.c ctx = ieee80211_new_chanctx(local, chandef, mode); chandef 1595 net/mac80211/chan.c ieee80211_vif_update_chandef(sdata, chandef); chandef 1680 net/mac80211/chan.c const struct cfg80211_chan_def *chandef, chandef 1689 net/mac80211/chan.c if (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, chandef 1694 net/mac80211/chan.c if (cfg80211_chandef_identical(chandef, &sdata->vif.bss_conf.chandef)) { chandef 1699 net/mac80211/chan.c if (chandef->width == NL80211_CHAN_WIDTH_20_NOHT || chandef 1700 net/mac80211/chan.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT) { chandef 1714 net/mac80211/chan.c compat = cfg80211_chandef_compatible(&conf->def, chandef); chandef 1740 net/mac80211/chan.c ieee80211_vif_update_chandef(sdata, chandef); chandef 1017 net/mac80211/driver-ops.h struct cfg80211_chan_def *chandef) chandef 1022 net/mac80211/driver-ops.h trace_drv_channel_switch_beacon(local, sdata, chandef); chandef 1024 net/mac80211/driver-ops.h chandef); chandef 1151 net/mac80211/driver-ops.h struct cfg80211_chan_def *chandef, chandef 1163 net/mac80211/driver-ops.h trace_drv_tdls_channel_switch(local, sdata, sta, oper_class, chandef); chandef 1165 net/mac80211/driver-ops.h oper_class, chandef, tmpl_skb, chandef 250 net/mac80211/ht.c switch (sdata->vif.bss_conf.chandef.width) { chandef 41 net/mac80211/ibss.c struct cfg80211_chan_def *chandef, chandef 93 net/mac80211/ibss.c sband = local->hw.wiphy->bands[chandef->chan->band]; chandef 94 net/mac80211/ibss.c rate_flags = ieee80211_chandef_rate_flags(chandef); chandef 95 net/mac80211/ibss.c shift = ieee80211_chandef_get_shift(chandef); chandef 133 net/mac80211/ibss.c chandef->chan->center_freq); chandef 147 net/mac80211/ibss.c csa_settings->chandef.chan->center_freq); chandef 176 net/mac80211/ibss.c if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT && chandef 177 net/mac80211/ibss.c chandef->width != NL80211_CHAN_WIDTH_5 && chandef 178 net/mac80211/ibss.c chandef->width != NL80211_CHAN_WIDTH_10 && chandef 192 net/mac80211/ibss.c chandef, 0, false); chandef 195 net/mac80211/ibss.c if (chandef->width != NL80211_CHAN_WIDTH_20 && chandef 196 net/mac80211/ibss.c chandef->width != NL80211_CHAN_WIDTH_40 && chandef 201 net/mac80211/ibss.c chandef); chandef 230 net/mac80211/ibss.c struct cfg80211_chan_def chandef; chandef 265 net/mac80211/ibss.c chandef = *req_chandef; chandef 266 net/mac80211/ibss.c chan = chandef.chan; chandef 267 net/mac80211/ibss.c if (!cfg80211_reg_can_beacon(local->hw.wiphy, &chandef, chandef 269 net/mac80211/ibss.c if (chandef.width == NL80211_CHAN_WIDTH_5 || chandef 270 net/mac80211/ibss.c chandef.width == NL80211_CHAN_WIDTH_10 || chandef 271 net/mac80211/ibss.c chandef.width == NL80211_CHAN_WIDTH_20_NOHT || chandef 272 net/mac80211/ibss.c chandef.width == NL80211_CHAN_WIDTH_20) { chandef 277 net/mac80211/ibss.c chandef.width = NL80211_CHAN_WIDTH_20; chandef 278 net/mac80211/ibss.c chandef.center_freq1 = chan->center_freq; chandef 280 net/mac80211/ibss.c if (!cfg80211_reg_can_beacon(local->hw.wiphy, &chandef, chandef 289 net/mac80211/ibss.c &chandef, NL80211_IFTYPE_ADHOC); chandef 304 net/mac80211/ibss.c if (ieee80211_vif_use_channel(sdata, &chandef, chandef 318 net/mac80211/ibss.c capability, tsf, &chandef, chandef 388 net/mac80211/ibss.c bss_meta.scan_width = cfg80211_chandef_to_scan_width(&chandef); chandef 403 net/mac80211/ibss.c struct cfg80211_chan_def chandef; chandef 418 net/mac80211/ibss.c switch (sdata->u.ibss.chandef.width) { chandef 422 net/mac80211/ibss.c chan_type = cfg80211_get_chandef_type(&sdata->u.ibss.chandef); chandef 423 net/mac80211/ibss.c cfg80211_chandef_create(&chandef, cbss->channel, chan_type); chandef 427 net/mac80211/ibss.c cfg80211_chandef_create(&chandef, cbss->channel, chandef 429 net/mac80211/ibss.c chandef.width = sdata->u.ibss.chandef.width; chandef 434 net/mac80211/ibss.c chandef = sdata->u.ibss.chandef; chandef 435 net/mac80211/ibss.c chandef.chan = cbss->channel; chandef 439 net/mac80211/ibss.c cfg80211_chandef_create(&chandef, cbss->channel, chandef 445 net/mac80211/ibss.c rate_flags = ieee80211_chandef_rate_flags(&sdata->u.ibss.chandef); chandef 477 net/mac80211/ibss.c &chandef, chandef 499 net/mac80211/ibss.c cbss = cfg80211_get_bss(sdata->local->hw.wiphy, ifibss->chandef.chan, chandef 521 net/mac80211/ibss.c capability, tsf, &ifibss->chandef, chandef 548 net/mac80211/ibss.c ifibss->chandef.chan, chandef 560 net/mac80211/ibss.c ifibss->chandef = sdata->csa_chandef; chandef 695 net/mac80211/ibss.c cbss = cfg80211_get_bss(local->hw.wiphy, ifibss->chandef.chan, chandef 773 net/mac80211/ibss.c &ifibss->chandef, chandef 776 net/mac80211/ibss.c cfg80211_radar_event(sdata->local->hw.wiphy, &ifibss->chandef, chandef 795 net/mac80211/ibss.c switch (ifibss->chandef.width) { chandef 810 net/mac80211/ibss.c ifibss->chandef.chan->band, chandef 825 net/mac80211/ibss.c params.chandef = csa_ie.chandef; chandef 827 net/mac80211/ibss.c switch (ifibss->chandef.width) { chandef 836 net/mac80211/ibss.c ch_type = cfg80211_get_chandef_type(&ifibss->chandef); chandef 837 net/mac80211/ibss.c cfg80211_chandef_create(¶ms.chandef, params.chandef.chan, chandef 842 net/mac80211/ibss.c if (params.chandef.width != ifibss->chandef.width) { chandef 846 net/mac80211/ibss.c params.chandef.chan->center_freq, chandef 847 net/mac80211/ibss.c params.chandef.width, chandef 848 net/mac80211/ibss.c params.chandef.center_freq1, chandef 849 net/mac80211/ibss.c params.chandef.center_freq2); chandef 859 net/mac80211/ibss.c if (!cfg80211_reg_can_beacon(sdata->local->hw.wiphy, ¶ms.chandef, chandef 864 net/mac80211/ibss.c params.chandef.chan->center_freq, chandef 865 net/mac80211/ibss.c params.chandef.width, chandef 866 net/mac80211/ibss.c params.chandef.center_freq1, chandef 867 net/mac80211/ibss.c params.chandef.center_freq2); chandef 872 net/mac80211/ibss.c ¶ms.chandef, chandef 883 net/mac80211/ibss.c if (cfg80211_chandef_identical(¶ms.chandef, chandef 884 net/mac80211/ibss.c &sdata->vif.bss_conf.chandef)) { chandef 893 net/mac80211/ibss.c params.chandef.chan->center_freq); chandef 1048 net/mac80211/ibss.c sdata->u.ibss.chandef.width != NL80211_CHAN_WIDTH_20_NOHT && chandef 1049 net/mac80211/ibss.c sdata->u.ibss.chandef.width != NL80211_CHAN_WIDTH_5 && chandef 1050 net/mac80211/ibss.c sdata->u.ibss.chandef.width != NL80211_CHAN_WIDTH_10) { chandef 1053 net/mac80211/ibss.c struct cfg80211_chan_def chandef; chandef 1056 net/mac80211/ibss.c cfg80211_chandef_create(&chandef, channel, NL80211_CHAN_NO_HT); chandef 1057 net/mac80211/ibss.c ieee80211_chandef_ht_oper(elems->ht_operation, &chandef); chandef 1065 net/mac80211/ibss.c sdata->u.ibss.chandef.width != NL80211_CHAN_WIDTH_20 && chandef 1066 net/mac80211/ibss.c sdata->u.ibss.chandef.width != NL80211_CHAN_WIDTH_40) { chandef 1074 net/mac80211/ibss.c &chandef); chandef 1085 net/mac80211/ibss.c if (!cfg80211_chandef_compatible(&sdata->u.ibss.chandef, chandef 1086 net/mac80211/ibss.c &chandef)) chandef 1142 net/mac80211/ibss.c sdata->u.ibss.chandef.chan != cbss->channel) chandef 1319 net/mac80211/ibss.c scan_width = cfg80211_chandef_to_scan_width(&ifibss->chandef); chandef 1354 net/mac80211/ibss.c &ifibss->chandef, ifibss->basic_rates, chandef 1391 net/mac80211/ibss.c const struct cfg80211_chan_def *chandef, chandef 1398 net/mac80211/ibss.c switch (chandef->width) { chandef 1403 net/mac80211/ibss.c cf2 = chandef->center_freq2; chandef 1416 net/mac80211/ibss.c cf1 = chandef->center_freq1; chandef 1453 net/mac80211/ibss.c chan = ifibss->chandef.chan; chandef 1498 net/mac80211/ibss.c scan_width = cfg80211_chandef_to_scan_width(&ifibss->chandef); chandef 1502 net/mac80211/ibss.c &ifibss->chandef, chandef 1769 net/mac80211/ibss.c ¶ms->chandef, chandef 1777 net/mac80211/ibss.c radar_detect_width = BIT(params->chandef.width); chandef 1784 net/mac80211/ibss.c ret = ieee80211_check_combinations(sdata, ¶ms->chandef, chanmode, chandef 1803 net/mac80211/ibss.c rate_flags = ieee80211_chandef_rate_flags(¶ms->chandef); chandef 1804 net/mac80211/ibss.c sband = local->hw.wiphy->bands[params->chandef.chan->band]; chandef 1814 net/mac80211/ibss.c sdata->u.ibss.chandef = params->chandef; chandef 583 net/mac80211/ieee80211_i.h struct cfg80211_chan_def chandef; chandef 1021 net/mac80211/ieee80211_i.h ieee80211_chandef_get_shift(struct cfg80211_chan_def *chandef) chandef 1023 net/mac80211/ieee80211_i.h switch (chandef->width) { chandef 1448 net/mac80211/ieee80211_i.h struct cfg80211_chan_def chandef; chandef 2117 net/mac80211/ieee80211_i.h struct cfg80211_chan_def *chandef, chandef 2140 net/mac80211/ieee80211_i.h const struct cfg80211_chan_def *chandef, chandef 2143 net/mac80211/ieee80211_i.h const struct cfg80211_chan_def *chandef); chandef 2147 net/mac80211/ieee80211_i.h const struct cfg80211_chan_def *chandef); chandef 2153 net/mac80211/ieee80211_i.h int ieee80211_parse_bitrates(struct cfg80211_chan_def *chandef, chandef 2166 net/mac80211/ieee80211_i.h struct cfg80211_chan_def *chandef); chandef 2170 net/mac80211/ieee80211_i.h struct cfg80211_chan_def *chandef); chandef 2175 net/mac80211/ieee80211_i.h const struct cfg80211_chan_def *chandef, chandef 2179 net/mac80211/ieee80211_i.h const struct cfg80211_chan_def *chandef, chandef 2188 net/mac80211/ieee80211_i.h const struct cfg80211_chan_def *chandef, chandef 2221 net/mac80211/ieee80211_i.h const struct cfg80211_chan_def *chandef, chandef 2240 net/mac80211/ieee80211_i.h struct cfg80211_chan_def *chandef); chandef 525 net/mac80211/iface.c sdata->vif.bss_conf.chandef = master->vif.bss_conf.chandef; chandef 802 net/mac80211/iface.c struct cfg80211_chan_def chandef; chandef 901 net/mac80211/iface.c chandef = sdata->vif.bss_conf.chandef; chandef 906 net/mac80211/iface.c cfg80211_cac_event(sdata->dev, &chandef, chandef 94 net/mac80211/main.c struct cfg80211_chan_def chandef = {}; chandef 102 net/mac80211/main.c chandef = local->scan_chandef; chandef 104 net/mac80211/main.c chandef.chan = local->tmp_channel; chandef 105 net/mac80211/main.c chandef.width = NL80211_CHAN_WIDTH_20_NOHT; chandef 106 net/mac80211/main.c chandef.center_freq1 = chandef.chan->center_freq; chandef 108 net/mac80211/main.c chandef = local->_oper_chandef; chandef 110 net/mac80211/main.c WARN(!cfg80211_chandef_valid(&chandef), chandef 112 net/mac80211/main.c chandef.chan->center_freq, chandef.width, chandef 113 net/mac80211/main.c chandef.center_freq1, chandef.center_freq2); chandef 115 net/mac80211/main.c if (!cfg80211_chandef_identical(&chandef, &local->_oper_chandef)) chandef 123 net/mac80211/main.c !cfg80211_chandef_identical(&local->hw.conf.chandef, chandef 125 net/mac80211/main.c local->hw.conf.chandef = chandef; chandef 141 net/mac80211/main.c power = ieee80211_chandef_max_power(&chandef); chandef 962 net/mac80211/main.c local->hw.conf.chandef = dflt_chandef; chandef 96 net/mac80211/mesh.c cfg80211_chandef_create(&sta_chan_def, sdata->vif.bss_conf.chandef.chan, chandef 103 net/mac80211/mesh.c if (!cfg80211_chandef_compatible(&sdata->vif.bss_conf.chandef, chandef 419 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT || chandef 420 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_5 || chandef 421 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) chandef 456 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT || chandef 457 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_5 || chandef 458 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) chandef 465 net/mac80211/mesh.c ieee80211_ie_build_ht_oper(pos, ht_cap, &sdata->vif.bss_conf.chandef, chandef 483 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT || chandef 484 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_5 || chandef 485 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) chandef 520 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT || chandef 521 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_5 || chandef 522 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) chandef 530 net/mac80211/mesh.c &sdata->vif.bss_conf.chandef); chandef 549 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT || chandef 550 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_5 || chandef 551 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) chandef 576 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT || chandef 577 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_5 || chandef 578 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) chandef 805 net/mac80211/mesh.c struct cfg80211_chan_def *chandef; chandef 814 net/mac80211/mesh.c csa->settings.chandef.chan->center_freq); chandef 833 net/mac80211/mesh.c switch (csa->settings.chandef.width) { chandef 840 net/mac80211/mesh.c ct = cfg80211_get_chandef_type(&csa->settings.chandef); chandef 857 net/mac80211/mesh.c chandef = &csa->settings.chandef; chandef 858 net/mac80211/mesh.c ieee80211_ie_build_wide_bw_cs(pos, chandef); chandef 1031 net/mac80211/mesh.c &sdata->vif.bss_conf.chandef, chandef 1035 net/mac80211/mesh.c &sdata->vif.bss_conf.chandef, GFP_ATOMIC); chandef 1056 net/mac80211/mesh.c switch (sdata->vif.bss_conf.chandef.width) { chandef 1085 net/mac80211/mesh.c params.chandef = csa_ie.chandef; chandef 1088 net/mac80211/mesh.c if (!cfg80211_chandef_usable(sdata->local->hw.wiphy, ¶ms.chandef, chandef 1090 net/mac80211/mesh.c !cfg80211_reg_can_beacon(sdata->local->hw.wiphy, ¶ms.chandef, chandef 1095 net/mac80211/mesh.c params.chandef.chan->center_freq, chandef 1096 net/mac80211/mesh.c params.chandef.width, chandef 1097 net/mac80211/mesh.c params.chandef.center_freq1, chandef 1098 net/mac80211/mesh.c params.chandef.center_freq2); chandef 1103 net/mac80211/mesh.c ¶ms.chandef, chandef 1111 net/mac80211/mesh.c params.chandef.chan->center_freq, chandef 1112 net/mac80211/mesh.c params.chandef.width, chandef 1113 net/mac80211/mesh.c params.chandef.center_freq1, chandef 1114 net/mac80211/mesh.c params.chandef.center_freq2); chandef 1120 net/mac80211/mesh.c if (cfg80211_chandef_identical(¶ms.chandef, chandef 1121 net/mac80211/mesh.c &sdata->vif.bss_conf.chandef)) { chandef 1129 net/mac80211/mesh.c params.chandef.chan->center_freq); chandef 1295 net/mac80211/mesh.c sdata->vif.bss_conf.chandef.chan->center_freq); chandef 162 net/mac80211/mesh_plink.c switch (sdata->vif.bss_conf.chandef.width) { chandef 195 net/mac80211/mesh_plink.c sdata->vif.bss_conf.chandef.width > NL80211_CHAN_WIDTH_20) chandef 151 net/mac80211/mlme.c struct cfg80211_chan_def *chandef, bool tracking) chandef 161 net/mac80211/mlme.c memset(chandef, 0, sizeof(struct cfg80211_chan_def)); chandef 162 net/mac80211/mlme.c chandef->chan = channel; chandef 163 net/mac80211/mlme.c chandef->width = NL80211_CHAN_WIDTH_20_NOHT; chandef 164 net/mac80211/mlme.c chandef->center_freq1 = channel->center_freq; chandef 171 net/mac80211/mlme.c chandef->width = NL80211_CHAN_WIDTH_20; chandef 194 net/mac80211/mlme.c ieee80211_chandef_ht_oper(ht_oper, chandef); chandef 208 net/mac80211/mlme.c vht_chandef = *chandef; chandef 247 net/mac80211/mlme.c if (cfg80211_chandef_identical(chandef, &vht_chandef)) { chandef 252 net/mac80211/mlme.c if (!cfg80211_chandef_compatible(chandef, &vht_chandef)) { chandef 260 net/mac80211/mlme.c *chandef = vht_chandef; chandef 284 net/mac80211/mlme.c cfg80211_chandef_identical(chandef, &sdata->vif.bss_conf.chandef)) chandef 289 net/mac80211/mlme.c vht_chandef = *chandef; chandef 299 net/mac80211/mlme.c while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, chandef 302 net/mac80211/mlme.c if (WARN_ON(chandef->width == NL80211_CHAN_WIDTH_20_NOHT)) { chandef 308 net/mac80211/mlme.c ret |= ieee80211_chandef_downgrade(chandef); chandef 311 net/mac80211/mlme.c if (chandef->width != vht_chandef.width && !tracking) chandef 315 net/mac80211/mlme.c WARN_ON_ONCE(!cfg80211_chandef_valid(chandef)); chandef 329 net/mac80211/mlme.c struct ieee80211_channel *chan = sdata->vif.bss_conf.chandef.chan; chandef 332 net/mac80211/mlme.c struct cfg80211_chan_def chandef; chandef 367 net/mac80211/mlme.c &chandef, true); chandef 377 net/mac80211/mlme.c chandef.width == NL80211_CHAN_WIDTH_80P80) chandef 378 net/mac80211/mlme.c flags |= ieee80211_chandef_downgrade(&chandef); chandef 380 net/mac80211/mlme.c chandef.width == NL80211_CHAN_WIDTH_160) chandef 381 net/mac80211/mlme.c flags |= ieee80211_chandef_downgrade(&chandef); chandef 383 net/mac80211/mlme.c chandef.width > NL80211_CHAN_WIDTH_20) chandef 384 net/mac80211/mlme.c flags |= ieee80211_chandef_downgrade(&chandef); chandef 386 net/mac80211/mlme.c if (cfg80211_chandef_identical(&chandef, &sdata->vif.bss_conf.chandef)) chandef 391 net/mac80211/mlme.c ifmgd->bssid, chandef.chan->center_freq, chandef.width, chandef 392 net/mac80211/mlme.c chandef.center_freq1, chandef.center_freq2); chandef 399 net/mac80211/mlme.c !cfg80211_chandef_valid(&chandef)) { chandef 406 net/mac80211/mlme.c switch (chandef.width) { chandef 434 net/mac80211/mlme.c ret = ieee80211_vif_change_bandwidth(sdata, &chandef, changed); chandef 1118 net/mac80211/mlme.c if (sdata->vif.bss_conf.chandef.width != chandef 1153 net/mac80211/mlme.c if (sdata->vif.bss_conf.chandef.width > chandef 1170 net/mac80211/mlme.c if (sdata->vif.bss_conf.chandef.width < chandef 1180 net/mac80211/mlme.c if (!cfg80211_chandef_identical(&sdata->vif.bss_conf.chandef, chandef 1315 net/mac80211/mlme.c ch_switch.chandef = csa_ie.chandef; chandef 1337 net/mac80211/mlme.c if (!cfg80211_chandef_usable(local->hw.wiphy, &csa_ie.chandef, chandef 1342 net/mac80211/mlme.c csa_ie.chandef.chan->center_freq, chandef 1343 net/mac80211/mlme.c csa_ie.chandef.width, csa_ie.chandef.center_freq1, chandef 1344 net/mac80211/mlme.c csa_ie.chandef.center_freq2); chandef 1350 net/mac80211/mlme.c if (cfg80211_chandef_identical(&csa_ie.chandef, chandef 1351 net/mac80211/mlme.c &sdata->vif.bss_conf.chandef) && chandef 1395 net/mac80211/mlme.c res = ieee80211_vif_reserve_chanctx(sdata, &csa_ie.chandef, chandef 1406 net/mac80211/mlme.c sdata->csa_chandef = csa_ie.chandef; chandef 1415 net/mac80211/mlme.c cfg80211_ch_switch_started_notify(sdata->dev, &csa_ie.chandef, chandef 1820 net/mac80211/mlme.c struct cfg80211_chan_def chandef = sdata->vif.bss_conf.chandef; chandef 1825 net/mac80211/mlme.c cfg80211_cac_event(sdata->dev, &chandef, chandef 4746 net/mac80211/mlme.c struct cfg80211_chan_def chandef; chandef 4837 net/mac80211/mlme.c &chandef, false); chandef 4853 net/mac80211/mlme.c ret = ieee80211_vif_use_channel(sdata, &chandef, chandef 4857 net/mac80211/mlme.c if (chandef.width == NL80211_CHAN_WIDTH_5 || chandef 4858 net/mac80211/mlme.c chandef.width == NL80211_CHAN_WIDTH_10) chandef 4861 net/mac80211/mlme.c while (ret && chandef.width != NL80211_CHAN_WIDTH_20_NOHT) { chandef 4862 net/mac80211/mlme.c ifmgd->flags |= ieee80211_chandef_downgrade(&chandef); chandef 4863 net/mac80211/mlme.c ret = ieee80211_vif_use_channel(sdata, &chandef, chandef 188 net/mac80211/ocb.c err = ieee80211_vif_use_channel(sdata, &setup->chandef, chandef 266 net/mac80211/rate.c if (WARN_ON(!sdata->vif.bss_conf.chandef.chan)) chandef 272 net/mac80211/rate.c band = sdata->vif.bss_conf.chandef.chan->band; chandef 329 net/mac80211/rate.c ieee80211_chandef_rate_flags(&hw->conf.chandef); chandef 734 net/mac80211/rate.c flags = ieee80211_chandef_rate_flags(&sdata->vif.bss_conf.chandef); chandef 790 net/mac80211/rate.c chan_width = sta->sdata->vif.bss_conf.chandef.width; chandef 827 net/mac80211/rate.c chan_width = sdata->vif.bss_conf.chandef.width; chandef 439 net/mac80211/rc80211_minstrel.c struct cfg80211_chan_def *chandef) chandef 442 net/mac80211/rc80211_minstrel.c int shift = ieee80211_chandef_get_shift(chandef); chandef 476 net/mac80211/rc80211_minstrel.c struct cfg80211_chan_def *chandef, chandef 492 net/mac80211/rc80211_minstrel.c ieee80211_chandef_get_shift(chandef)); chandef 494 net/mac80211/rc80211_minstrel.c rate_flags = ieee80211_chandef_rate_flags(&mp->hw->conf.chandef); chandef 516 net/mac80211/rc80211_minstrel.c shift = ieee80211_chandef_get_shift(chandef); chandef 520 net/mac80211/rc80211_minstrel.c chandef); chandef 1383 net/mac80211/rc80211_minstrel_ht.c struct cfg80211_chan_def *chandef, chandef 1534 net/mac80211/rc80211_minstrel_ht.c return mac80211_minstrel.rate_init(priv, sband, chandef, sta, chandef 1540 net/mac80211/rc80211_minstrel_ht.c struct cfg80211_chan_def *chandef, chandef 1543 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_caps(priv, sband, chandef, sta, priv_sta); chandef 1548 net/mac80211/rc80211_minstrel_ht.c struct cfg80211_chan_def *chandef, chandef 1552 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_caps(priv, sband, chandef, sta, priv_sta); chandef 1607 net/mac80211/rc80211_minstrel_ht.c u32 rate_flags = ieee80211_chandef_rate_flags(&mp->hw->conf.chandef); chandef 292 net/mac80211/scan.c ieee80211_prepare_scan_chandef(struct cfg80211_chan_def *chandef, chandef 295 net/mac80211/scan.c memset(chandef, 0, sizeof(*chandef)); chandef 298 net/mac80211/scan.c chandef->width = NL80211_CHAN_WIDTH_5; chandef 301 net/mac80211/scan.c chandef->width = NL80211_CHAN_WIDTH_10; chandef 304 net/mac80211/scan.c chandef->width = NL80211_CHAN_WIDTH_20_NOHT; chandef 313 net/mac80211/scan.c struct cfg80211_chan_def chandef; chandef 353 net/mac80211/scan.c ieee80211_prepare_scan_chandef(&chandef, req->scan_width); chandef 363 net/mac80211/scan.c bands_used, req->rates, &chandef, chandef 614 net/mac80211/scan.c enum nl80211_band band = local->hw.conf.chandef.chan->band; chandef 637 net/mac80211/scan.c tx_flags, local->hw.conf.chandef.chan); chandef 1237 net/mac80211/scan.c struct cfg80211_chan_def chandef; chandef 1268 net/mac80211/scan.c ieee80211_prepare_scan_chandef(&chandef, req->scan_width); chandef 1272 net/mac80211/scan.c req->ie_len, bands_used, rate_masks, &chandef, chandef 107 net/mac80211/spectmgmt.c cfg80211_chandef_create(&csa_ie->chandef, new_chan, chandef 111 net/mac80211/spectmgmt.c cfg80211_chandef_create(&csa_ie->chandef, new_chan, chandef 115 net/mac80211/spectmgmt.c cfg80211_chandef_create(&csa_ie->chandef, new_chan, chandef 119 net/mac80211/spectmgmt.c cfg80211_chandef_create(&csa_ie->chandef, new_chan, chandef 122 net/mac80211/spectmgmt.c switch (sdata->vif.bss_conf.chandef.width) { chandef 125 net/mac80211/spectmgmt.c csa_ie->chandef.width = chandef 126 net/mac80211/spectmgmt.c sdata->vif.bss_conf.chandef.width; chandef 149 net/mac80211/spectmgmt.c new_vht_chandef = csa_ie->chandef; chandef 168 net/mac80211/spectmgmt.c &csa_ie->chandef)) { chandef 174 net/mac80211/spectmgmt.c csa_ie->chandef = new_vht_chandef; chandef 77 net/mac80211/tdls.c struct cfg80211_chan_def chandef; chandef 88 net/mac80211/tdls.c cfg80211_chandef_create(&chandef, ch, chandef 90 net/mac80211/tdls.c if (cfg80211_reg_can_beacon_relax(wiphy, &chandef, chandef 161 net/mac80211/tdls.c if (!ieee80211_chandef_to_operating_class(&sdata->vif.bss_conf.chandef, chandef 439 net/mac80211/tdls.c sta->tdls_chandef = sdata->vif.bss_conf.chandef; chandef 568 net/mac80211/tdls.c sta->tdls_chandef = sdata->vif.bss_conf.chandef; chandef 614 net/mac80211/tdls.c &sdata->vif.bss_conf.chandef, prot, chandef 649 net/mac80211/tdls.c struct cfg80211_chan_def *chandef) chandef 654 net/mac80211/tdls.c if (WARN_ON_ONCE(!chandef)) chandef 659 net/mac80211/tdls.c ieee80211_frequency_to_channel(chandef->chan->center_freq); chandef 702 net/mac80211/tdls.c struct cfg80211_chan_def *chandef) chandef 732 net/mac80211/tdls.c oper_class, chandef); chandef 867 net/mac80211/tdls.c struct cfg80211_chan_def *chandef) chandef 924 net/mac80211/tdls.c chandef); chandef 938 net/mac80211/tdls.c struct cfg80211_chan_def *chandef) chandef 996 net/mac80211/tdls.c chandef); chandef 1491 net/mac80211/tdls.c struct cfg80211_chan_def *chandef, chandef 1505 net/mac80211/tdls.c if (chandef->width == NL80211_CHAN_WIDTH_40) { chandef 1513 net/mac80211/tdls.c ht40plus = cfg80211_get_chandef_type(chandef) == chandef 1530 net/mac80211/tdls.c oper_class, chandef); chandef 1554 net/mac80211/tdls.c sta->sta.addr, chandef->chan->center_freq, chandef->width); chandef 1561 net/mac80211/tdls.c struct cfg80211_chan_def *chandef) chandef 1587 net/mac80211/tdls.c skb = ieee80211_tdls_ch_sw_tmpl_get(sta, oper_class, chandef, chandef 1595 net/mac80211/tdls.c chandef, skb, ch_sw_tm_ie); chandef 1772 net/mac80211/tdls.c struct cfg80211_chan_def chandef; chandef 1859 net/mac80211/tdls.c cfg80211_chandef_create(&chandef, chan, chan_type); chandef 1862 net/mac80211/tdls.c if (!cfg80211_reg_can_beacon_relax(sdata->local->hw.wiphy, &chandef, chandef 1896 net/mac80211/tdls.c params.chandef = &chandef; chandef 1912 net/mac80211/tdls.c tf->sa, params.chandef->chan->center_freq, chandef 1913 net/mac80211/tdls.c params.chandef->width); chandef 372 net/mac80211/trace.h CHANDEF_ASSIGN(&local->hw.conf.chandef) chandef 453 net/mac80211/trace.h __entry->channel_width = info->chandef.width; chandef 454 net/mac80211/trace.h __entry->channel_cfreq1 = info->chandef.center_freq1; chandef 1150 net/mac80211/trace.h CHANDEF_ASSIGN(&ch_switch->chandef) chandef 2423 net/mac80211/trace.h struct cfg80211_chan_def *chandef), chandef 2425 net/mac80211/trace.h TP_ARGS(local, sdata, chandef), chandef 2436 net/mac80211/trace.h CHANDEF_ASSIGN(chandef); chandef 2465 net/mac80211/trace.h CHANDEF_ASSIGN(&ch_switch->chandef) chandef 2512 net/mac80211/trace.h CHANDEF_ASSIGN(&ch_switch->chandef) chandef 2559 net/mac80211/trace.h struct cfg80211_chan_def *chandef), chandef 2561 net/mac80211/trace.h TP_ARGS(local, sdata, sta, oper_class, chandef), chandef 2576 net/mac80211/trace.h CHANDEF_ASSIGN(chandef) chandef 2637 net/mac80211/trace.h CHANDEF_ASSIGN(params->chandef) chandef 2217 net/mac80211/tx.c struct cfg80211_chan_def *chandef; chandef 2320 net/mac80211/tx.c chandef = &chanctx_conf->def; chandef 2322 net/mac80211/tx.c chandef = &local->_oper_chandef; chandef 2342 net/mac80211/tx.c if (!cfg80211_reg_can_beacon(local->hw.wiphy, chandef, chandef 2346 net/mac80211/tx.c info->band = chandef->chan->band; chandef 2548 net/mac80211/tx.c band = local->hw.conf.chandef.chan->band; chandef 1638 net/mac80211/util.c struct cfg80211_chan_def *chandef, chandef 1659 net/mac80211/util.c rate_flags = ieee80211_chandef_rate_flags(chandef); chandef 1660 net/mac80211/util.c shift = ieee80211_chandef_get_shift(chandef); chandef 1711 net/mac80211/util.c if (chandef->chan && sband->band == NL80211_BAND_2GHZ) { chandef 1717 net/mac80211/util.c chandef->chan->center_freq); chandef 1837 net/mac80211/util.c struct cfg80211_chan_def *chandef, chandef 1852 net/mac80211/util.c chandef, chandef 1885 net/mac80211/util.c struct cfg80211_chan_def chandef; chandef 1897 net/mac80211/util.c chandef.width = sdata->vif.bss_conf.chandef.width; chandef 1899 net/mac80211/util.c chandef.chan = NULL; chandef 1901 net/mac80211/util.c chandef.chan = chan; chandef 1912 net/mac80211/util.c rate_masks, &chandef, flags); chandef 1939 net/mac80211/util.c rate_flags = ieee80211_chandef_rate_flags(&sdata->vif.bss_conf.chandef); chandef 2810 net/mac80211/util.c const struct cfg80211_chan_def *chandef, chandef 2819 net/mac80211/util.c chandef->chan->center_freq); chandef 2820 net/mac80211/util.c switch (chandef->width) { chandef 2825 net/mac80211/util.c if (chandef->center_freq1 > chandef->chan->center_freq) chandef 2835 net/mac80211/util.c chandef->width != NL80211_CHAN_WIDTH_20_NOHT && chandef 2836 net/mac80211/util.c chandef->width != NL80211_CHAN_WIDTH_20) chandef 2854 net/mac80211/util.c const struct cfg80211_chan_def *chandef) chandef 2859 net/mac80211/util.c switch (chandef->width) { chandef 2874 net/mac80211/util.c *pos++ = ieee80211_frequency_to_channel(chandef->center_freq1); chandef 2876 net/mac80211/util.c if (chandef->center_freq2) chandef 2877 net/mac80211/util.c *pos++ = ieee80211_frequency_to_channel(chandef->center_freq2); chandef 2883 net/mac80211/util.c const struct cfg80211_chan_def *chandef) chandef 2891 net/mac80211/util.c chandef->center_freq1); chandef 2892 net/mac80211/util.c if (chandef->center_freq2) chandef 2894 net/mac80211/util.c ieee80211_frequency_to_channel(chandef->center_freq2); chandef 2898 net/mac80211/util.c switch (chandef->width) { chandef 2906 net/mac80211/util.c if (chandef->chan->center_freq < chandef->center_freq1) chandef 2961 net/mac80211/util.c struct cfg80211_chan_def *chandef) chandef 2983 net/mac80211/util.c cfg80211_chandef_create(chandef, chandef->chan, channel_type); chandef 2990 net/mac80211/util.c struct cfg80211_chan_def *chandef) chandef 2992 net/mac80211/util.c struct cfg80211_chan_def new = *chandef; chandef 3003 net/mac80211/util.c vht_cap = hw->wiphy->bands[chandef->chan->band]->vht_cap.cap; chandef 3024 net/mac80211/util.c cf0 = ieee80211_channel_to_frequency(ccf0, chandef->chan->band); chandef 3025 net/mac80211/util.c cf1 = ieee80211_channel_to_frequency(ccf1, chandef->chan->band); chandef 3066 net/mac80211/util.c *chandef = new; chandef 3070 net/mac80211/util.c int ieee80211_parse_bitrates(struct cfg80211_chan_def *chandef, chandef 3074 net/mac80211/util.c u32 rate_flags = ieee80211_chandef_rate_flags(chandef); chandef 3075 net/mac80211/util.c int shift = ieee80211_chandef_get_shift(chandef); chandef 3112 net/mac80211/util.c rate_flags = ieee80211_chandef_rate_flags(&sdata->vif.bss_conf.chandef); chandef 3155 net/mac80211/util.c rate_flags = ieee80211_chandef_rate_flags(&sdata->vif.bss_conf.chandef); chandef 3319 net/mac80211/util.c struct cfg80211_chan_def chandef; chandef 3333 net/mac80211/util.c chandef = sdata->vif.bss_conf.chandef; chandef 3336 net/mac80211/util.c &chandef, chandef 3348 net/mac80211/util.c struct cfg80211_chan_def chandef = local->hw.conf.chandef; chandef 3358 net/mac80211/util.c chandef = ctx->conf.def; chandef 3370 net/mac80211/util.c cfg80211_radar_event(local->hw.wiphy, &chandef, GFP_KERNEL); chandef 3510 net/mac80211/util.c freq = csa_settings->chandef.chan->center_freq; chandef 3514 net/mac80211/util.c if (csa_settings->chandef.width == NL80211_CHAN_WIDTH_40) { chandef 3520 net/mac80211/util.c ch_type = cfg80211_get_chandef_type(&csa_settings->chandef); chandef 3544 net/mac80211/util.c if (csa_settings->chandef.width == NL80211_CHAN_WIDTH_80 || chandef 3545 net/mac80211/util.c csa_settings->chandef.width == NL80211_CHAN_WIDTH_80P80 || chandef 3546 net/mac80211/util.c csa_settings->chandef.width == NL80211_CHAN_WIDTH_160) { chandef 3548 net/mac80211/util.c ieee80211_ie_build_wide_bw_cs(pos, &csa_settings->chandef); chandef 3835 net/mac80211/util.c radar_detect |= BIT(sdata->vif.bss_conf.chandef.width); chandef 3841 net/mac80211/util.c const struct cfg80211_chan_def *chandef, chandef 3859 net/mac80211/util.c if (WARN_ON(chandef && chanmode == IEEE80211_CHANCTX_SHARED && chandef 3860 net/mac80211/util.c !chandef->chan)) chandef 3883 net/mac80211/util.c if (chandef) chandef 3898 net/mac80211/util.c if (chandef && chanmode == IEEE80211_CHANCTX_SHARED && chandef 3899 net/mac80211/util.c cfg80211_chandef_compatible(chandef, chandef 440 net/mac80211/vht.c enum nl80211_chan_width bss_width = sdata->vif.bss_conf.chandef.width; chandef 32 net/wireless/ap.c memset(&wdev->chandef, 0, sizeof(wdev->chandef)); chandef 22 net/wireless/chan.c void cfg80211_chandef_create(struct cfg80211_chan_def *chandef, chandef 29 net/wireless/chan.c chandef->chan = chan; chandef 30 net/wireless/chan.c chandef->center_freq2 = 0; chandef 31 net/wireless/chan.c chandef->edmg.bw_config = 0; chandef 32 net/wireless/chan.c chandef->edmg.channels = 0; chandef 36 net/wireless/chan.c chandef->width = NL80211_CHAN_WIDTH_20_NOHT; chandef 37 net/wireless/chan.c chandef->center_freq1 = chan->center_freq; chandef 40 net/wireless/chan.c chandef->width = NL80211_CHAN_WIDTH_20; chandef 41 net/wireless/chan.c chandef->center_freq1 = chan->center_freq; chandef 44 net/wireless/chan.c chandef->width = NL80211_CHAN_WIDTH_40; chandef 45 net/wireless/chan.c chandef->center_freq1 = chan->center_freq + 10; chandef 48 net/wireless/chan.c chandef->width = NL80211_CHAN_WIDTH_40; chandef 49 net/wireless/chan.c chandef->center_freq1 = chan->center_freq - 10; chandef 57 net/wireless/chan.c static bool cfg80211_edmg_chandef_valid(const struct cfg80211_chan_def *chandef) chandef 64 net/wireless/chan.c if (!chandef->edmg.channels || !chandef->edmg.bw_config) chandef 67 net/wireless/chan.c if (!cfg80211_valid_60g_freq(chandef->chan->center_freq)) chandef 71 net/wireless/chan.c if (chandef->edmg.channels & BIT(i)) { chandef 84 net/wireless/chan.c switch (chandef->edmg.bw_config) { chandef 115 net/wireless/chan.c switch (chandef->edmg.bw_config) { chandef 142 net/wireless/chan.c bool cfg80211_chandef_valid(const struct cfg80211_chan_def *chandef) chandef 146 net/wireless/chan.c if (!chandef->chan) chandef 149 net/wireless/chan.c control_freq = chandef->chan->center_freq; chandef 151 net/wireless/chan.c switch (chandef->width) { chandef 156 net/wireless/chan.c if (chandef->center_freq1 != control_freq) chandef 158 net/wireless/chan.c if (chandef->center_freq2) chandef 162 net/wireless/chan.c if (chandef->center_freq1 != control_freq + 10 && chandef 163 net/wireless/chan.c chandef->center_freq1 != control_freq - 10) chandef 165 net/wireless/chan.c if (chandef->center_freq2) chandef 169 net/wireless/chan.c if (chandef->center_freq1 != control_freq + 30 && chandef 170 net/wireless/chan.c chandef->center_freq1 != control_freq + 10 && chandef 171 net/wireless/chan.c chandef->center_freq1 != control_freq - 10 && chandef 172 net/wireless/chan.c chandef->center_freq1 != control_freq - 30) chandef 174 net/wireless/chan.c if (!chandef->center_freq2) chandef 177 net/wireless/chan.c if (chandef->center_freq1 - chandef->center_freq2 == 80 || chandef 178 net/wireless/chan.c chandef->center_freq2 - chandef->center_freq1 == 80) chandef 182 net/wireless/chan.c if (chandef->center_freq1 != control_freq + 30 && chandef 183 net/wireless/chan.c chandef->center_freq1 != control_freq + 10 && chandef 184 net/wireless/chan.c chandef->center_freq1 != control_freq - 10 && chandef 185 net/wireless/chan.c chandef->center_freq1 != control_freq - 30) chandef 187 net/wireless/chan.c if (chandef->center_freq2) chandef 191 net/wireless/chan.c if (chandef->center_freq1 != control_freq + 70 && chandef 192 net/wireless/chan.c chandef->center_freq1 != control_freq + 50 && chandef 193 net/wireless/chan.c chandef->center_freq1 != control_freq + 30 && chandef 194 net/wireless/chan.c chandef->center_freq1 != control_freq + 10 && chandef 195 net/wireless/chan.c chandef->center_freq1 != control_freq - 10 && chandef 196 net/wireless/chan.c chandef->center_freq1 != control_freq - 30 && chandef 197 net/wireless/chan.c chandef->center_freq1 != control_freq - 50 && chandef 198 net/wireless/chan.c chandef->center_freq1 != control_freq - 70) chandef 200 net/wireless/chan.c if (chandef->center_freq2) chandef 208 net/wireless/chan.c if (chandef->center_freq1 == 2484 && chandef 209 net/wireless/chan.c chandef->width != NL80211_CHAN_WIDTH_20_NOHT) chandef 212 net/wireless/chan.c if (cfg80211_chandef_is_edmg(chandef) && chandef 213 net/wireless/chan.c !cfg80211_edmg_chandef_valid(chandef)) chandef 363 net/wireless/chan.c const struct cfg80211_chan_def *chandef, chandef 368 net/wireless/chan.c if (WARN_ON(!cfg80211_chandef_valid(chandef))) chandef 371 net/wireless/chan.c width = cfg80211_chandef_get_width(chandef); chandef 375 net/wireless/chan.c cfg80211_set_chans_dfs_state(wiphy, chandef->center_freq1, chandef 378 net/wireless/chan.c if (!chandef->center_freq2) chandef 380 net/wireless/chan.c cfg80211_set_chans_dfs_state(wiphy, chandef->center_freq2, chandef 433 net/wireless/chan.c const struct cfg80211_chan_def *chandef, chandef 439 net/wireless/chan.c if (WARN_ON(!cfg80211_chandef_valid(chandef))) chandef 447 net/wireless/chan.c width = cfg80211_chandef_get_width(chandef); chandef 452 net/wireless/chan.c chandef->center_freq1, chandef 457 net/wireless/chan.c return BIT(chandef->width); chandef 459 net/wireless/chan.c if (!chandef->center_freq2) chandef 463 net/wireless/chan.c chandef->center_freq2, chandef 468 net/wireless/chan.c return BIT(chandef->width); chandef 527 net/wireless/chan.c const struct cfg80211_chan_def *chandef) chandef 532 net/wireless/chan.c if (WARN_ON(!cfg80211_chandef_valid(chandef))) chandef 535 net/wireless/chan.c width = cfg80211_chandef_get_width(chandef); chandef 539 net/wireless/chan.c r1 = cfg80211_get_chans_dfs_usable(wiphy, chandef->center_freq1, chandef 545 net/wireless/chan.c switch (chandef->width) { chandef 547 net/wireless/chan.c WARN_ON(!chandef->center_freq2); chandef 549 net/wireless/chan.c chandef->center_freq2, chandef 555 net/wireless/chan.c WARN_ON(chandef->center_freq2); chandef 566 net/wireless/chan.c bool cfg80211_is_sub_chan(struct cfg80211_chan_def *chandef, chandef 572 net/wireless/chan.c if (chandef->chan->center_freq == chan->center_freq) chandef 575 net/wireless/chan.c width = cfg80211_chandef_get_width(chandef); chandef 579 net/wireless/chan.c for (freq = chandef->center_freq1 - width / 2 + 10; chandef 580 net/wireless/chan.c freq <= chandef->center_freq1 + width / 2 - 10; freq += 20) { chandef 585 net/wireless/chan.c if (!chandef->center_freq2) chandef 588 net/wireless/chan.c for (freq = chandef->center_freq2 - width / 2 + 10; chandef 589 net/wireless/chan.c freq <= chandef->center_freq2 + width / 2 - 10; freq += 20) { chandef 603 net/wireless/chan.c if (!wdev->chandef.chan) chandef 647 net/wireless/chan.c if (cfg80211_is_sub_chan(&wdev->chandef, chan)) { chandef 715 net/wireless/chan.c const struct cfg80211_chan_def *chandef) chandef 720 net/wireless/chan.c if (WARN_ON(!cfg80211_chandef_valid(chandef))) chandef 723 net/wireless/chan.c width = cfg80211_chandef_get_width(chandef); chandef 727 net/wireless/chan.c r = cfg80211_get_chans_dfs_available(wiphy, chandef->center_freq1, chandef 734 net/wireless/chan.c switch (chandef->width) { chandef 736 net/wireless/chan.c WARN_ON(!chandef->center_freq2); chandef 738 net/wireless/chan.c chandef->center_freq2, chandef 742 net/wireless/chan.c WARN_ON(chandef->center_freq2); chandef 780 net/wireless/chan.c const struct cfg80211_chan_def *chandef) chandef 785 net/wireless/chan.c if (WARN_ON(!cfg80211_chandef_valid(chandef))) chandef 788 net/wireless/chan.c width = cfg80211_chandef_get_width(chandef); chandef 793 net/wireless/chan.c chandef->center_freq1, chandef 796 net/wireless/chan.c if (!chandef->center_freq2) chandef 800 net/wireless/chan.c chandef->center_freq2, chandef 879 net/wireless/chan.c const struct cfg80211_chan_def *chandef, chandef 887 net/wireless/chan.c if (WARN_ON(!cfg80211_chandef_valid(chandef))) chandef 890 net/wireless/chan.c ht_cap = &wiphy->bands[chandef->chan->band]->ht_cap; chandef 891 net/wireless/chan.c vht_cap = &wiphy->bands[chandef->chan->band]->vht_cap; chandef 892 net/wireless/chan.c edmg_cap = &wiphy->bands[chandef->chan->band]->edmg_cap; chandef 896 net/wireless/chan.c chandef->edmg.channels, chandef 897 net/wireless/chan.c chandef->edmg.bw_config, chandef 898 net/wireless/chan.c chandef->chan->hw_value, chandef 902 net/wireless/chan.c control_freq = chandef->chan->center_freq; chandef 904 net/wireless/chan.c switch (chandef->width) { chandef 927 net/wireless/chan.c if (chandef->center_freq1 < control_freq && chandef 928 net/wireless/chan.c chandef->chan->flags & IEEE80211_CHAN_NO_HT40MINUS) chandef 930 net/wireless/chan.c if (chandef->center_freq1 > control_freq && chandef 931 net/wireless/chan.c chandef->chan->flags & IEEE80211_CHAN_NO_HT40PLUS) chandef 979 net/wireless/chan.c if (!cfg80211_secondary_chans_ok(wiphy, chandef->center_freq1, chandef 983 net/wireless/chan.c if (!chandef->center_freq2) chandef 985 net/wireless/chan.c return cfg80211_secondary_chans_ok(wiphy, chandef->center_freq2, chandef 1052 net/wireless/chan.c other_chan = wdev->chandef.chan; chandef 1092 net/wireless/chan.c struct cfg80211_chan_def *chandef, chandef 1100 net/wireless/chan.c trace_cfg80211_reg_can_beacon(wiphy, chandef, iftype, check_no_ir); chandef 1105 net/wireless/chan.c if (cfg80211_chandef_dfs_required(wiphy, chandef, iftype) > 0 && chandef 1106 net/wireless/chan.c cfg80211_chandef_dfs_available(wiphy, chandef)) { chandef 1111 net/wireless/chan.c res = cfg80211_chandef_usable(wiphy, chandef, prohibited_flags); chandef 1118 net/wireless/chan.c struct cfg80211_chan_def *chandef, chandef 1121 net/wireless/chan.c return _cfg80211_reg_can_beacon(wiphy, chandef, iftype, true); chandef 1126 net/wireless/chan.c struct cfg80211_chan_def *chandef, chandef 1140 net/wireless/chan.c chandef->chan); chandef 1142 net/wireless/chan.c return _cfg80211_reg_can_beacon(wiphy, chandef, iftype, check_no_ir); chandef 1147 net/wireless/chan.c struct cfg80211_chan_def *chandef) chandef 1154 net/wireless/chan.c return rdev_set_monitor_channel(rdev, chandef); chandef 1185 net/wireless/chan.c *radar_detect |= BIT(wdev->chandef.width); chandef 1200 net/wireless/chan.c *chan = wdev->chandef.chan; chandef 1202 net/wireless/chan.c *radar_detect |= BIT(wdev->chandef.width); chandef 1204 net/wireless/chan.c *chan = wdev->chandef.chan; chandef 1208 net/wireless/chan.c &wdev->chandef, chandef 1212 net/wireless/chan.c *radar_detect |= BIT(wdev->chandef.width); chandef 1217 net/wireless/chan.c *chan = wdev->chandef.chan; chandef 1221 net/wireless/chan.c &wdev->chandef, chandef 1225 net/wireless/chan.c *radar_detect |= BIT(wdev->chandef.width); chandef 1229 net/wireless/chan.c if (wdev->chandef.chan) { chandef 1230 net/wireless/chan.c *chan = wdev->chandef.chan; chandef 340 net/wireless/core.h struct cfg80211_chan_def *chandef); chandef 474 net/wireless/core.h const struct cfg80211_chan_def *chandef); chandef 477 net/wireless/core.h const struct cfg80211_chan_def *chandef, chandef 484 net/wireless/core.h const struct cfg80211_chan_def *chandef); chandef 493 net/wireless/core.h bool cfg80211_is_sub_chan(struct cfg80211_chan_def *chandef, chandef 513 net/wireless/core.h struct cfg80211_chan_def *chandef); chandef 112 net/wireless/ibss.c band = params->chandef.chan->band; chandef 135 net/wireless/ibss.c wdev->chandef = params->chandef; chandef 142 net/wireless/ibss.c wdev->wext.ibss.chandef = params->chandef; chandef 184 net/wireless/ibss.c memset(&wdev->chandef, 0, sizeof(wdev->chandef)); chandef 250 net/wireless/ibss.c if (!wdev->wext.ibss.chandef.chan) { chandef 278 net/wireless/ibss.c cfg80211_chandef_create(&wdev->wext.ibss.chandef, new_chan, chandef 338 net/wireless/ibss.c if (wdev->wext.ibss.chandef.chan == chan) chandef 351 net/wireless/ibss.c cfg80211_chandef_create(&wdev->wext.ibss.chandef, chan, chandef 380 net/wireless/ibss.c else if (wdev->wext.ibss.chandef.chan) chandef 381 net/wireless/ibss.c chan = wdev->wext.ibss.chandef.chan; chandef 125 net/wireless/mesh.c if (!setup->chandef.chan) { chandef 127 net/wireless/mesh.c setup->chandef = wdev->preset_chandef; chandef 130 net/wireless/mesh.c if (!setup->chandef.chan) { chandef 149 net/wireless/mesh.c setup->chandef.chan = chan; chandef 153 net/wireless/mesh.c if (setup->chandef.chan) chandef 158 net/wireless/mesh.c if (!setup->chandef.chan) chandef 161 net/wireless/mesh.c setup->chandef.width = NL80211_CHAN_WIDTH_20_NOHT; chandef 162 net/wireless/mesh.c setup->chandef.center_freq1 = setup->chandef.chan->center_freq; chandef 172 net/wireless/mesh.c rdev->wiphy.bands[setup->chandef.chan->band]; chandef 174 net/wireless/mesh.c if (setup->chandef.chan->band == NL80211_BAND_2GHZ) { chandef 191 net/wireless/mesh.c scan_width = cfg80211_chandef_to_scan_width(&setup->chandef); chandef 198 net/wireless/mesh.c &setup->chandef, chandef 205 net/wireless/mesh.c if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef, chandef 213 net/wireless/mesh.c wdev->chandef = setup->chandef; chandef 222 net/wireless/mesh.c struct cfg80211_chan_def *chandef) chandef 234 net/wireless/mesh.c if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT) chandef 241 net/wireless/mesh.c chandef->chan); chandef 243 net/wireless/mesh.c wdev->chandef = *chandef; chandef 251 net/wireless/mesh.c wdev->preset_chandef = *chandef; chandef 277 net/wireless/mesh.c memset(&wdev->chandef, 0, sizeof(wdev->chandef)); chandef 767 net/wireless/mlme.c struct cfg80211_chan_def chandef; chandef 816 net/wireless/mlme.c cfg80211_chandef_create(&chandef, c, chandef 819 net/wireless/mlme.c nl80211_radar_notify(rdev, &chandef, chandef 823 net/wireless/mlme.c regulatory_propagate_dfs_state(wiphy, &chandef, chandef 846 net/wireless/mlme.c struct cfg80211_chan_def *chandef, chandef 851 net/wireless/mlme.c trace_cfg80211_radar_event(wiphy, chandef); chandef 857 net/wireless/mlme.c cfg80211_set_dfs_state(wiphy, chandef, NL80211_DFS_UNAVAILABLE); chandef 861 net/wireless/mlme.c nl80211_radar_notify(rdev, chandef, NL80211_RADAR_DETECTED, NULL, gfp); chandef 863 net/wireless/mlme.c memcpy(&rdev->radar_chandef, chandef, sizeof(struct cfg80211_chan_def)); chandef 869 net/wireless/mlme.c const struct cfg80211_chan_def *chandef, chandef 882 net/wireless/mlme.c if (WARN_ON(!wdev->chandef.chan)) chandef 890 net/wireless/mlme.c cfg80211_set_dfs_state(wiphy, chandef, NL80211_DFS_AVAILABLE); chandef 891 net/wireless/mlme.c memcpy(&rdev->cac_done_chandef, chandef, chandef 907 net/wireless/mlme.c nl80211_radar_notify(rdev, chandef, event, netdev, gfp); chandef 2665 net/wireless/nl80211.c struct cfg80211_chan_def *chandef) chandef 2676 net/wireless/nl80211.c memset(chandef, 0, sizeof(*chandef)); chandef 2678 net/wireless/nl80211.c chandef->chan = ieee80211_get_channel(&rdev->wiphy, control_freq); chandef 2679 net/wireless/nl80211.c chandef->width = NL80211_CHAN_WIDTH_20_NOHT; chandef 2680 net/wireless/nl80211.c chandef->center_freq1 = control_freq; chandef 2681 net/wireless/nl80211.c chandef->center_freq2 = 0; chandef 2684 net/wireless/nl80211.c if (!chandef->chan || chandef->chan->flags & IEEE80211_CHAN_DISABLED) { chandef 2700 net/wireless/nl80211.c cfg80211_chandef_create(chandef, chandef->chan, chandef 2704 net/wireless/nl80211.c chandef->center_freq1 != nla_get_u32(attrs[NL80211_ATTR_CENTER_FREQ1])) { chandef 2726 net/wireless/nl80211.c chandef->width = chandef 2729 net/wireless/nl80211.c chandef->center_freq1 = chandef 2732 net/wireless/nl80211.c chandef->center_freq2 = chandef 2737 net/wireless/nl80211.c chandef->edmg.channels = chandef 2741 net/wireless/nl80211.c chandef->edmg.bw_config = chandef 2744 net/wireless/nl80211.c chandef->edmg.bw_config = 0; chandef 2745 net/wireless/nl80211.c chandef->edmg.channels = 0; chandef 2748 net/wireless/nl80211.c if (!cfg80211_chandef_valid(chandef)) { chandef 2753 net/wireless/nl80211.c if (!cfg80211_chandef_usable(&rdev->wiphy, chandef, chandef 2759 net/wireless/nl80211.c if ((chandef->width == NL80211_CHAN_WIDTH_5 || chandef 2760 net/wireless/nl80211.c chandef->width == NL80211_CHAN_WIDTH_10) && chandef 2773 net/wireless/nl80211.c struct cfg80211_chan_def chandef; chandef 2785 net/wireless/nl80211.c result = nl80211_parse_chandef(rdev, info, &chandef); chandef 2792 net/wireless/nl80211.c if (!cfg80211_reg_can_beacon_relax(&rdev->wiphy, &chandef, chandef 2806 net/wireless/nl80211.c if (chandef.chan != wdev->preset_chandef.chan) { chandef 2810 net/wireless/nl80211.c result = rdev_set_ap_chanwidth(rdev, dev, &chandef); chandef 2814 net/wireless/nl80211.c wdev->preset_chandef = chandef; chandef 2818 net/wireless/nl80211.c result = cfg80211_set_mesh_channel(rdev, wdev, &chandef); chandef 2821 net/wireless/nl80211.c result = cfg80211_set_monitor_channel(rdev, &chandef); chandef 3155 net/wireless/nl80211.c const struct cfg80211_chan_def *chandef) chandef 3157 net/wireless/nl80211.c if (WARN_ON(!cfg80211_chandef_valid(chandef))) chandef 3161 net/wireless/nl80211.c chandef->chan->center_freq)) chandef 3163 net/wireless/nl80211.c switch (chandef->width) { chandef 3168 net/wireless/nl80211.c cfg80211_get_chandef_type(chandef))) chandef 3174 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_CHANNEL_WIDTH, chandef->width)) chandef 3176 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_CENTER_FREQ1, chandef->center_freq1)) chandef 3178 net/wireless/nl80211.c if (chandef->center_freq2 && chandef 3179 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_CENTER_FREQ2, chandef->center_freq2)) chandef 3218 net/wireless/nl80211.c struct cfg80211_chan_def chandef = {}; chandef 3220 net/wireless/nl80211.c ret = rdev_get_channel(rdev, wdev, &chandef); chandef 3222 net/wireless/nl80211.c if (nl80211_send_chandef(msg, &chandef)) chandef 4573 net/wireless/nl80211.c params->chandef = wdev->preset_chandef; chandef 4738 net/wireless/nl80211.c err = nl80211_parse_chandef(rdev, info, ¶ms.chandef); chandef 4742 net/wireless/nl80211.c params.chandef = wdev->preset_chandef; chandef 4746 net/wireless/nl80211.c if (!cfg80211_reg_can_beacon_relax(&rdev->wiphy, ¶ms.chandef, chandef 4755 net/wireless/nl80211.c err = validate_beacon_tx_rate(rdev, params.chandef.chan->band, chandef 4812 net/wireless/nl80211.c wdev->preset_chandef = params.chandef; chandef 4814 net/wireless/nl80211.c wdev->chandef = params.chandef; chandef 7407 net/wireless/nl80211.c if (!(wdev->chandef.chan->flags & IEEE80211_CHAN_RADAR)) chandef 7634 net/wireless/nl80211.c if (chan->center_freq != wdev->chandef.chan->center_freq) { chandef 8331 net/wireless/nl80211.c struct cfg80211_chan_def chandef; chandef 8340 net/wireless/nl80211.c err = nl80211_parse_chandef(rdev, info, &chandef); chandef 8350 net/wireless/nl80211.c err = cfg80211_chandef_dfs_required(wiphy, &chandef, wdev->iftype); chandef 8357 net/wireless/nl80211.c if (!cfg80211_chandef_dfs_usable(wiphy, &chandef)) chandef 8367 net/wireless/nl80211.c cac_time_ms = cfg80211_chandef_dfs_cac_time(&rdev->wiphy, &chandef); chandef 8371 net/wireless/nl80211.c err = rdev_start_radar_detection(rdev, dev, &chandef, cac_time_ms); chandef 8373 net/wireless/nl80211.c wdev->chandef = chandef; chandef 8388 net/wireless/nl80211.c struct cfg80211_chan_def chandef; chandef 8399 net/wireless/nl80211.c err = nl80211_parse_chandef(rdev, info, &chandef); chandef 8405 net/wireless/nl80211.c err = cfg80211_chandef_dfs_required(wiphy, &chandef, wdev->iftype); chandef 8420 net/wireless/nl80211.c if (chandef.chan->dfs_state == NL80211_DFS_UNAVAILABLE) chandef 8423 net/wireless/nl80211.c cfg80211_set_dfs_state(wiphy, &chandef, NL80211_DFS_UNAVAILABLE); chandef 8427 net/wireless/nl80211.c rdev->radar_chandef = chandef; chandef 8574 net/wireless/nl80211.c err = nl80211_parse_chandef(rdev, info, ¶ms.chandef); chandef 8578 net/wireless/nl80211.c if (!cfg80211_reg_can_beacon_relax(&rdev->wiphy, ¶ms.chandef, chandef 8583 net/wireless/nl80211.c ¶ms.chandef, chandef 9477 net/wireless/nl80211.c err = nl80211_parse_chandef(rdev, info, &ibss.chandef); chandef 9481 net/wireless/nl80211.c if (!cfg80211_reg_can_beacon(&rdev->wiphy, &ibss.chandef, chandef 9485 net/wireless/nl80211.c switch (ibss.chandef.width) { chandef 9517 net/wireless/nl80211.c wiphy->bands[ibss.chandef.chan->band]; chandef 9550 net/wireless/nl80211.c if ((ibss.chandef.width != NL80211_CHAN_WIDTH_20_NOHT) && chandef 10394 net/wireless/nl80211.c struct cfg80211_chan_def chandef; chandef 10420 net/wireless/nl80211.c err = nl80211_parse_chandef(rdev, info, &chandef); chandef 10426 net/wireless/nl80211.c !cfg80211_chandef_identical(&wdev->chandef, &chandef)) { chandef 10427 net/wireless/nl80211.c compat_chandef = cfg80211_chandef_compatible(&wdev->chandef, chandef 10428 net/wireless/nl80211.c &chandef); chandef 10429 net/wireless/nl80211.c if (compat_chandef != &chandef) { chandef 10447 net/wireless/nl80211.c err = rdev_remain_on_channel(rdev, wdev, chandef.chan, chandef 10544 net/wireless/nl80211.c struct cfg80211_chan_def chandef; chandef 10601 net/wireless/nl80211.c chandef.chan = NULL; chandef 10603 net/wireless/nl80211.c err = nl80211_parse_chandef(rdev, info, &chandef); chandef 10608 net/wireless/nl80211.c if (!chandef.chan && params.offchan) chandef 10652 net/wireless/nl80211.c params.chan = chandef.chan; chandef 10992 net/wireless/nl80211.c err = nl80211_parse_chandef(rdev, info, &setup.chandef); chandef 11067 net/wireless/nl80211.c err = nl80211_parse_chandef(rdev, info, &setup.chandef); chandef 11072 net/wireless/nl80211.c setup.chandef.chan = NULL; chandef 11081 net/wireless/nl80211.c if (!setup.chandef.chan) chandef 11084 net/wireless/nl80211.c sband = rdev->wiphy.bands[setup.chandef.chan->band]; chandef 11097 net/wireless/nl80211.c if (!setup.chandef.chan) chandef 11100 net/wireless/nl80211.c err = validate_beacon_tx_rate(rdev, setup.chandef.chan->band, chandef 13363 net/wireless/nl80211.c struct cfg80211_chan_def chandef = {}; chandef 13384 net/wireless/nl80211.c err = nl80211_parse_chandef(rdev, info, &chandef); chandef 13393 net/wireless/nl80211.c if (chandef.chan->band == NL80211_BAND_2GHZ && chandef 13394 net/wireless/nl80211.c chandef.width != NL80211_CHAN_WIDTH_20_NOHT && chandef 13395 net/wireless/nl80211.c chandef.width != NL80211_CHAN_WIDTH_20) chandef 13399 net/wireless/nl80211.c if (!cfg80211_reg_can_beacon_relax(&rdev->wiphy, &chandef, chandef 13404 net/wireless/nl80211.c if (cfg80211_chandef_dfs_required(wdev->wiphy, &chandef, wdev->iftype)) chandef 13411 net/wireless/nl80211.c err = rdev_tdls_channel_switch(rdev, dev, addr, oper_class, &chandef); chandef 16246 net/wireless/nl80211.c struct cfg80211_chan_def *chandef, chandef 16267 net/wireless/nl80211.c if (nl80211_send_chandef(msg, chandef)) chandef 16285 net/wireless/nl80211.c struct cfg80211_chan_def *chandef) chandef 16293 net/wireless/nl80211.c trace_cfg80211_ch_switch_notify(dev, chandef); chandef 16295 net/wireless/nl80211.c wdev->chandef = *chandef; chandef 16296 net/wireless/nl80211.c wdev->preset_chandef = *chandef; chandef 16300 net/wireless/nl80211.c cfg80211_update_assoc_bss_entry(wdev, chandef->chan); chandef 16304 net/wireless/nl80211.c nl80211_ch_switch_notify(rdev, dev, chandef, GFP_KERNEL, chandef 16310 net/wireless/nl80211.c struct cfg80211_chan_def *chandef, chandef 16317 net/wireless/nl80211.c trace_cfg80211_ch_switch_started_notify(dev, chandef); chandef 16319 net/wireless/nl80211.c nl80211_ch_switch_notify(rdev, dev, chandef, GFP_KERNEL, chandef 16326 net/wireless/nl80211.c const struct cfg80211_chan_def *chandef, chandef 16359 net/wireless/nl80211.c if (nl80211_send_chandef(msg, chandef)) chandef 33 net/wireless/nl80211.h struct cfg80211_chan_def *chandef); chandef 119 net/wireless/nl80211.h const struct cfg80211_chan_def *chandef, chandef 32 net/wireless/ocb.c if (WARN_ON(!setup->chandef.chan)) chandef 37 net/wireless/ocb.c wdev->chandef = setup->chandef; chandef 72 net/wireless/ocb.c memset(&wdev->chandef, 0, sizeof(wdev->chandef)); chandef 22 net/wireless/pmsr.c if (!(rdev->wiphy.pmsr_capa->ftm.bandwidths & BIT(out->chandef.width))) { chandef 37 net/wireless/pmsr.c switch (out->chandef.chan->band) { chandef 165 net/wireless/pmsr.c err = nl80211_parse_chandef(rdev, info, &out->chandef); chandef 412 net/wireless/rdev-ops.h struct cfg80211_chan_def *chandef) chandef 415 net/wireless/rdev-ops.h trace_rdev_set_monitor_channel(&rdev->wiphy, chandef); chandef 416 net/wireless/rdev-ops.h ret = rdev->ops->set_monitor_channel(&rdev->wiphy, chandef); chandef 928 net/wireless/rdev-ops.h struct cfg80211_chan_def *chandef) chandef 933 net/wireless/rdev-ops.h ret = rdev->ops->get_channel(&rdev->wiphy, wdev, chandef); chandef 934 net/wireless/rdev-ops.h trace_rdev_return_chandef(&rdev->wiphy, ret, chandef); chandef 1091 net/wireless/rdev-ops.h struct net_device *dev, struct cfg80211_chan_def *chandef) chandef 1095 net/wireless/rdev-ops.h trace_rdev_set_ap_chanwidth(&rdev->wiphy, dev, chandef); chandef 1096 net/wireless/rdev-ops.h ret = rdev->ops->set_ap_chanwidth(&rdev->wiphy, dev, chandef); chandef 1136 net/wireless/rdev-ops.h u8 oper_class, struct cfg80211_chan_def *chandef) chandef 1141 net/wireless/rdev-ops.h chandef); chandef 1143 net/wireless/rdev-ops.h oper_class, chandef); chandef 1160 net/wireless/rdev-ops.h struct cfg80211_chan_def *chandef, chandef 1165 net/wireless/rdev-ops.h trace_rdev_start_radar_detection(&rdev->wiphy, dev, chandef, chandef 1169 net/wireless/rdev-ops.h chandef, cac_time_ms); chandef 2111 net/wireless/reg.c struct cfg80211_chan_def chandef = {}; chandef 2127 net/wireless/reg.c chandef = wdev->chandef; chandef 2132 net/wireless/reg.c chandef = wdev->chandef; chandef 2141 net/wireless/reg.c rdev_get_channel(rdev, wdev, &chandef)) chandef 2142 net/wireless/reg.c cfg80211_chandef_create(&chandef, chandef 2163 net/wireless/reg.c return cfg80211_reg_can_beacon_relax(wiphy, &chandef, iftype); chandef 2166 net/wireless/reg.c return cfg80211_chandef_usable(wiphy, &chandef, chandef 3909 net/wireless/reg.c !cfg80211_chandef_dfs_usable(&rdev->wiphy, &wdev->chandef)) chandef 3915 net/wireless/reg.c struct cfg80211_chan_def *chandef, chandef 3923 net/wireless/reg.c if (WARN_ON(!cfg80211_chandef_valid(chandef))) chandef 3934 net/wireless/reg.c chandef->chan->center_freq)) chandef 3937 net/wireless/reg.c cfg80211_set_dfs_state(&rdev->wiphy, chandef, dfs_state); chandef 3945 net/wireless/reg.c nl80211_radar_notify(rdev, chandef, event, NULL, GFP_KERNEL); chandef 169 net/wireless/reg.h struct cfg80211_chan_def *chandef, chandef 1992 net/wireless/scan.c struct cfg80211_chan_def *chandef, chandef 2004 net/wireless/scan.c if (!chandef || cfg80211_is_sub_chan(chandef, bss->pub.channel)) chandef 134 net/wireless/trace.h #define CHAN_DEF_ASSIGN(chandef) \ chandef 136 net/wireless/trace.h if ((chandef) && (chandef)->chan) { \ chandef 137 net/wireless/trace.h __entry->band = (chandef)->chan->band; \ chandef 139 net/wireless/trace.h (chandef)->chan->center_freq; \ chandef 140 net/wireless/trace.h __entry->width = (chandef)->width; \ chandef 141 net/wireless/trace.h __entry->center_freq1 = (chandef)->center_freq1;\ chandef 142 net/wireless/trace.h __entry->center_freq2 = (chandef)->center_freq2;\ chandef 533 net/wireless/trace.h CHAN_DEF_ASSIGN(&settings->chandef); chandef 1133 net/wireless/trace.h struct cfg80211_chan_def *chandef), chandef 1134 net/wireless/trace.h TP_ARGS(wiphy, chandef), chandef 1141 net/wireless/trace.h CHAN_DEF_ASSIGN(chandef); chandef 1980 net/wireless/trace.h struct cfg80211_chan_def *chandef), chandef 1981 net/wireless/trace.h TP_ARGS(wiphy, ret, chandef), chandef 1990 net/wireless/trace.h CHAN_DEF_ASSIGN(chandef); chandef 2189 net/wireless/trace.h CHAN_DEF_ASSIGN(¶ms->chandef); chandef 2229 net/wireless/trace.h struct cfg80211_chan_def *chandef), chandef 2230 net/wireless/trace.h TP_ARGS(wiphy, netdev, chandef), chandef 2239 net/wireless/trace.h CHAN_DEF_ASSIGN(chandef); chandef 2293 net/wireless/trace.h struct cfg80211_chan_def *chandef), chandef 2294 net/wireless/trace.h TP_ARGS(wiphy, netdev, addr, oper_class, chandef), chandef 2306 net/wireless/trace.h CHAN_DEF_ASSIGN(chandef); chandef 2417 net/wireless/trace.h struct cfg80211_chan_def *chandef, chandef 2419 net/wireless/trace.h TP_ARGS(wiphy, netdev, chandef, cac_time_ms), chandef 2429 net/wireless/trace.h CHAN_DEF_ASSIGN(chandef); chandef 2879 net/wireless/trace.h TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef, chandef 2881 net/wireless/trace.h TP_ARGS(wiphy, chandef, iftype, check_no_ir), chandef 2890 net/wireless/trace.h CHAN_DEF_ASSIGN(chandef); chandef 2900 net/wireless/trace.h TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef), chandef 2901 net/wireless/trace.h TP_ARGS(wiphy, chandef), chandef 2908 net/wireless/trace.h CHAN_DEF_ASSIGN(chandef); chandef 2916 net/wireless/trace.h struct cfg80211_chan_def *chandef), chandef 2917 net/wireless/trace.h TP_ARGS(netdev, chandef), chandef 2924 net/wireless/trace.h CHAN_DEF_ASSIGN(chandef); chandef 2932 net/wireless/trace.h struct cfg80211_chan_def *chandef), chandef 2933 net/wireless/trace.h TP_ARGS(netdev, chandef), chandef 2940 net/wireless/trace.h CHAN_DEF_ASSIGN(chandef); chandef 2947 net/wireless/trace.h TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef), chandef 2948 net/wireless/trace.h TP_ARGS(wiphy, chandef), chandef 2955 net/wireless/trace.h CHAN_DEF_ASSIGN(chandef); chandef 1538 net/wireless/util.c bool ieee80211_chandef_to_operating_class(struct cfg80211_chan_def *chandef, chandef 1542 net/wireless/util.c u32 freq = chandef->center_freq1; chandef 1545 net/wireless/util.c if (chandef->width > NL80211_CHAN_WIDTH_40) chandef 1549 net/wireless/util.c if (chandef->width == NL80211_CHAN_WIDTH_40) { chandef 1550 net/wireless/util.c if (freq > chandef->chan->center_freq) chandef 1563 net/wireless/util.c if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT) chandef 1570 net/wireless/util.c switch (chandef->width) { chandef 1592 net/wireless/util.c } else if (chandef->width == NL80211_CHAN_WIDTH_40) { chandef 1593 net/wireless/util.c if (freq > chandef->chan->center_freq) chandef 1608 net/wireless/util.c } else if (chandef->width == NL80211_CHAN_WIDTH_40) { chandef 1609 net/wireless/util.c if (freq > chandef->chan->center_freq) chandef 1624 net/wireless/util.c } else if (chandef->width == NL80211_CHAN_WIDTH_40) { chandef 1625 net/wireless/util.c if (freq > chandef->chan->center_freq) chandef 1640 net/wireless/util.c } else if (chandef->width == NL80211_CHAN_WIDTH_40) { chandef 1641 net/wireless/util.c if (freq > chandef->chan->center_freq) chandef 1656 net/wireless/util.c if (chandef->width >= NL80211_CHAN_WIDTH_40) chandef 758 net/wireless/wext-compat.c struct cfg80211_chan_def chandef = { chandef 774 net/wireless/wext-compat.c chandef.center_freq1 = freq; chandef 775 net/wireless/wext-compat.c chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); chandef 776 net/wireless/wext-compat.c if (!chandef.chan) chandef 778 net/wireless/wext-compat.c return cfg80211_set_monitor_channel(rdev, &chandef); chandef 785 net/wireless/wext-compat.c chandef.center_freq1 = freq; chandef 786 net/wireless/wext-compat.c chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); chandef 787 net/wireless/wext-compat.c if (!chandef.chan) chandef 789 net/wireless/wext-compat.c return cfg80211_set_mesh_channel(rdev, wdev, &chandef); chandef 801 net/wireless/wext-compat.c struct cfg80211_chan_def chandef = {}; chandef 813 net/wireless/wext-compat.c ret = rdev_get_channel(rdev, wdev, &chandef); chandef 816 net/wireless/wext-compat.c freq->m = chandef.chan->center_freq;