Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
80211(3)	       FreeBSD Library Functions Manual		      80211(3)

NAME
     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

LIBRARY
     library ``lib80211''

SYNOPSIS
     #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);

DESCRIPTION
     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 allo-
     cates / 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() func-
     tions look	up a country information entry by ISO country enum and ISO
     country code string respectively.

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

SEE ALSO
     net80211(4), ifconfig(8)

HISTORY
     The lib80211 library first	appeared in FreeBSD 11.0.

AUTHORS
     Adrian Chadd

FreeBSD	Ports 11.2	       December	15, 2015	    FreeBSD Ports 11.2

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO | HISTORY | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=lib80211&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help