GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
80211(3) FreeBSD Library Functions Manual 80211(3)

lib80211_alloc_regdata, lib80211_free_regdata, lib80211_regdomain_readconfig, lib80211_regdomain_cleanup, lib80211_regdomain_findbysku, lib80211_regdomain_findbyname, lib80211_country_findbycc, lib80211_country_findbyname
manage net80211 configuration and regulatory database

802.11 Wireless Network Management Library (lib80211, -l80211)

#include <lib80211/lib80211_regdomain.h>
#include <lib80211/lib80211_ioctl.h>

struct regdata *
lib80211_alloc_regdata(void);

void
lib80211_free_regdata(struct regdata *reg);

int
lib80211_regdomain_readconfig(struct regdata *reg, const void *config, size_t size);

void
lib80211_regdomain_cleanup(struct regdata *reg);

const struct regdomain *
lib80211_regdomain_findbysku(const struct regdata *reg, enumRegDomainCode);

const struct regdomain *
lib80211_regdomain_findbyname(const struct regdata *reg, const char *sku);

const struct country *
lib80211_country_findbycc(const struct regdata *reg, enum ISOCountryCode);

const struct country *
lib80211_country_findbyname(const struct regdata *reg, const char *cc);

The lib80211 library is an interface to the net80211(4) infrastructure. It implements wrappers around the net80211(4) ioctl command, as well as providing a convenient API to access the regulatory database.

The lib80211_alloc_regdata() and lib80211_free_regdata() function allocates / frees a regdata structure to store regulatory domain information in.

The lib80211_regdomain_readconfig() and lib80211_regdomain_cleanup() functions read in the regulatory database XML configuration and free it when finished.

The lib80211_regdomain_findbysku() and lib80211_regdomain_findbyname() functions look up a regulatory domain entry by SKU enum and SKU name respectively.

The lib80211_country_findbycc() and lib80211_country_findbyname() functions look up a country information entry by ISO country enum and ISO country code string respectively.

The lib80211_alloc_regdata(), lib80211_regdomain_readconfig(), lib80211_regdomain_findbysku(), lib80211_regdomain_findbyname(), lib80211_country_findbycc(), lib80211_country_findbyname() return NULL upon error.

net80211(4), ifconfig(8)

The lib80211 library first appeared in FreeBSD 11.0.

Adrian Chadd
December 15, 2015 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.