'\" t .\" Title: wiphy_apply_custom_regulatory .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Regulatory enforcement infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "WIPHY_APPLY_CUSTOM_R" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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" wiphy_apply_custom_regulatory \- apply a custom driver regulatory domain .SH "SYNOPSIS" .HP \w'void\ wiphy_apply_custom_regulatory('u .BI "void wiphy_apply_custom_regulatory(struct\ wiphy\ *\ " "wiphy" ", const\ struct\ ieee80211_regdomain\ *\ " "regd" ");" .SH "ARGUMENTS" .PP \fIwiphy\fR .RS 4 the wireless device we want to process the regulatory domain on .RE .PP \fIregd\fR .RS 4 the custom regulatory domain to use for this wiphy .RE .SH "DESCRIPTION" .PP Drivers can sometimes have custom regulatory domains which do not apply to a specific country\&. Drivers can use this to apply such custom regulatory domains\&. This routine must be called prior to wiphy registration\&. The custom regulatory domain will be trusted completely and as such previous default channel settings will be disregarded\&. If no rule is found for a channel on the regulatory domain the channel will be disabled\&. Drivers using this for a wiphy should also set the wiphy flag REGULATORY_CUSTOM_REG or cfg80211 will set it for the wiphy that called this helper\&. .SH "AUTHOR" .PP \fBJohannes Berg\fR <\&johannes@sipsolutions.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br