Lines Matching defs:chandef

915  * cfg80211_get_chandef_type - return old channel type from chandef
916 * @chandef: the channel definition
919 * chandef, which must have a bandwidth allowing this conversion.
922 cfg80211_get_chandef_type(const struct cfg80211_chan_def *chandef)
924 switch (chandef->width) {
930 if (chandef->center_freq1 > chandef->chan->center_freq)
941 * @chandef: the channel definition struct to fill
947 void cfg80211_chandef_create(struct cfg80211_chan_def *chandef,
972 * cfg80211_chandef_is_edmg - check if chandef represents an EDMG channel
974 * @chandef: the channel definition
979 cfg80211_chandef_is_edmg(const struct cfg80211_chan_def *chandef)
981 return chandef->edmg.channels || chandef->edmg.bw_config;
1007 * @chandef: the channel definition to check
1010 bool cfg80211_chandef_valid(const struct cfg80211_chan_def *chandef);
1015 * @chandef: the channel definition to check
1020 const struct cfg80211_chan_def *chandef,
1026 * @chandef: the channel definition to check
1032 const struct cfg80211_chan_def *chandef,
1036 * cfg80211_chandef_dfs_usable - checks if chandef is DFS usable and we
1039 * @chandef: the channel definition to check
1045 const struct cfg80211_chan_def *chandef);
1051 * @chandef: the channel definition to check
1057 const struct cfg80211_chan_def *chandef);
1061 * @chandef: chandef to calculate for
1069 int cfg80211_chandef_primary(const struct cfg80211_chan_def *chandef,
1076 * @chandef: the channel definition to check
1080 int nl80211_send_chandef(struct sk_buff *msg, const struct cfg80211_chan_def *chandef);
1107 * @chandef: channel definition for the channel
1114 ieee80211_chandef_rate_flags(struct cfg80211_chan_def *chandef)
1116 return ieee80211_chanwidth_rate_flags(chandef->width);
1120 * ieee80211_chandef_max_power - maximum transmission power for the chandef
1126 * @chandef: channel definition for the channel
1128 * Returns: maximum allowed transmission power in dBm for the chandef
1131 ieee80211_chandef_max_power(struct cfg80211_chan_def *chandef)
1133 switch (chandef->width) {
1135 return min(chandef->chan->max_reg_power - 6,
1136 chandef->chan->max_power);
1138 return min(chandef->chan->max_reg_power - 3,
1139 chandef->chan->max_power);
1143 return chandef->chan->max_power;
1449 * @chandef: defines the channel to use
1487 struct cfg80211_chan_def chandef;
1542 * @chandef: defines the channel to use after the switch
1556 struct cfg80211_chan_def chandef;
2493 * @chandef: defines the channel to use
2519 struct cfg80211_chan_def chandef;
2542 * @chandef: defines the channel to use
2547 struct cfg80211_chan_def chandef;
3212 * @chandef: defines the channel to use if no other IBSS to join can be found
3241 struct cfg80211_chan_def chandef;
4085 * @chandef: channel to use
4091 struct cfg80211_chan_def chandef;
4572 * The caller is expected to set chandef pointer to NULL in order to
4692 struct cfg80211_chan_def *chandef);
4820 struct cfg80211_chan_def *chandef);
4832 struct cfg80211_chan_def *chandef,
4857 struct cfg80211_chan_def *chandef);
4868 struct cfg80211_chan_def *chandef);
4930 struct cfg80211_chan_def *chandef);
6240 struct cfg80211_chan_def chandef;
6251 struct cfg80211_chan_def chandef;
6257 struct cfg80211_chan_def chandef;
6266 struct cfg80211_chan_def chandef;
6303 * wdev_chandef - return chandef pointer from wireless_dev
6307 * Return: The chandef depending on the mode, or %NULL.
7414 * @chandef: if given, the iterator function will be called only if the channel
7420 struct cfg80211_chan_def *chandef,
8623 * @chandef: chandef for the current channel
8630 struct cfg80211_chan_def *chandef,
8635 struct cfg80211_chan_def *chandef,
8638 __cfg80211_radar_event(wiphy, chandef, false, gfp);
8643 struct cfg80211_chan_def *chandef,
8646 __cfg80211_radar_event(wiphy, chandef, true, gfp);
8666 * @chandef: chandef for the current channel
8675 const struct cfg80211_chan_def *chandef,
8791 * @chandef: the channel definition
8798 struct cfg80211_chan_def *chandef,
8804 * @chandef: the channel definition
8815 struct cfg80211_chan_def *chandef,
8821 * @chandef: the new channel definition
8828 struct cfg80211_chan_def *chandef,
8834 * @chandef: the future channel definition
8844 struct cfg80211_chan_def *chandef,
8860 * ieee80211_operating_class_to_chandef - convert operating class to chandef
8864 * @chandef: a pointer to the resulting chandef
8870 struct cfg80211_chan_def *chandef);
8873 * ieee80211_chandef_to_operating_class - convert chandef to operation class
8875 * @chandef: the chandef to convert
8880 bool ieee80211_chandef_to_operating_class(struct cfg80211_chan_def *chandef,
8884 * ieee80211_chandef_to_khz - convert chandef to frequency in KHz
8886 * @chandef: the chandef to convert
8888 * Return: the center frequency of chandef (1st segment) in KHz.
8891 ieee80211_chandef_to_khz(const struct cfg80211_chan_def *chandef)
8893 return MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset;