---
name: "freq_reg_info"
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/freq_reg_info"
---

# freq\_reg\_info(9)

get regulatory information for the given frequency

## NAME

freq\_reg\_info - get regulatory information for the given frequency

## SYNOPSIS

**const struct ieee80211\_reg\_rule \* freq\_reg\_info(struct wiphy \*** *wiphy***, u32** *center\_freq***);**

## ARGUMENTS

*wiphy*

the wiphy for which we want to process this rule for

*center\_freq*

Frequency in KHz for which we want regulatory information for

## DESCRIPTION

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.

## RETURN

A valid pointer, or, when an error occurs, for example if no rule can be found, the return value is encoded using **ERR\_PTR**. Use **IS\_ERR** to check and **PTR\_ERR** 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's band. See **freq\_in\_rule\_band** for our current definition of a band -- this is purely subjective and right now it's 802.11 specific.

## AUTHOR

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

Author.

## COPYRIGHT
