1FREQ_REG_INFO(9) Regulatory enforcement infrast FREQ_REG_INFO(9)
2
3
4
6 freq_reg_info - get regulatory information for the given frequency
7
9 const struct ieee80211_reg_rule * freq_reg_info(struct wiphy * wiphy,
10 u32 center_freq);
11
13 wiphy
14 the wiphy for which we want to process this rule for
15
16 center_freq
17 Frequency in KHz for which we want regulatory information for
18
20 Use this function to get the regulatory rule for a specific frequency
21 on a given wireless device. If the device has a specific regulatory
22 domain it wants to follow we respect that unless a country IE has been
23 received and processed already.
24
26 A valid pointer, or, when an error occurs, for example if no rule can
27 be found, the return value is encoded using ERR_PTR. Use IS_ERR to
28 check and PTR_ERR to obtain the numeric return value. The numeric
29 return value will be -ERANGE if we determine the given center_freq does
30 not even have a regulatory rule for a frequency range in the
31 center_freq's band. See freq_in_rule_band for our current definition of
32 a band -- this is purely subjective and right now it's 802.11 specific.
33
35 Johannes Berg <johannes@sipsolutions.net>
36 Author.
37
39Kernel Hackers Manual 3.10 June 2019 FREQ_REG_INFO(9)