---
name: "wiphy_apply_custom_regulatory"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/wiphy_apply_custom_regulatory"
---

# wiphy\_apply\_custom\_regulatory(9)

apply a custom driver regulatory domain

## NAME

wiphy\_apply\_custom\_regulatory - apply a custom driver regulatory domain

## SYNOPSIS

**void wiphy\_apply\_custom\_regulatory(struct wiphy \*** *wiphy***, const struct ieee80211\_regdomain \*** *regd***);**

## ARGUMENTS

*wiphy*

the wireless device we want to process the regulatory domain on

*regd*

the custom regulatory domain to use for this wiphy

## DESCRIPTION

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.

## AUTHOR

**Johannes Berg** \<johannes@sipsolutions.net\>

Author.

## COPYRIGHT
