'\" t .\" Title: freq_reg_info .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Regulatory enforcement infrastructure .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "FREQ_REG_INFO" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Regulatory enforcement infrast" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" freq_reg_info \- get regulatory information for the given frequency .SH "SYNOPSIS" .HP \w'const\ struct\ ieee80211_reg_rule\ *\ freq_reg_info('u .BI "const struct ieee80211_reg_rule * freq_reg_info(struct\ wiphy\ *\ " "wiphy" ", u32\ " "center_freq" ");" .SH "ARGUMENTS" .PP \fIwiphy\fR .RS 4 the wiphy for which we want to process this rule for .RE .PP \fIcenter_freq\fR .RS 4 Frequency in KHz for which we want regulatory information for .RE .SH "DESCRIPTION" .PP Use this function to get the regulatory rule for a specific frequency on a given wireless device\&. If the device has a specific regulatory domain it wants to follow we respect that unless a country IE has been received and processed already\&. .SH "RETURN" .PP A valid pointer, or, when an error occurs, for example if no rule can be found, the return value is encoded using \fBERR_PTR\fR\&. Use \fBIS_ERR\fR to check and \fBPTR_ERR\fR to obtain the numeric return value\&. The numeric return value will be \-ERANGE if we determine the given center_freq does not even have a regulatory rule for a frequency range in the center_freq\*(Aqs band\&. See \fBfreq_in_rule_band\fR for our current definition of a band \-\- this is purely subjective and right now it\*(Aqs 802\&.11 specific\&. .SH "AUTHOR" .PP \fBJohannes Berg\fR <\&johannes@sipsolutions.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br