80211(3)
π NAME π
okay bestie, welcome to the 80211(3) Library Functions Manual page for lib80211 β and the whole squad is here: lib80211_alloc_regdata, lib80211_free_regdata, lib80211_regdomain_readconfig, lib80211_regdomain_cleanup, lib80211_regdomain_findbysku, lib80211_regdomain_findbyname, lib80211_country_findbycc, and lib80211_country_findbyname. β¨ Their whole vibe? Manage net80211 configuration and the regulatory database. π
π LIBRARY π
it's the library βlib80211β, obviously. π«Ά
β¨ 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 πΈ
so the lib80211 library is basically your interface to the net80211(4) infrastructure. it implements wrappers around the net80211(4) ioctl command, and it also gives you a convenient API to access the regulatory database. iconic behavior, honestly. π
lib80211_alloc_regdata()andlib80211_free_regdata()β these allocate / free aregdatastructure that stores regulatory domain information in it. πlib80211_regdomain_readconfig()andlib80211_regdomain_cleanup()β these read in the regulatory database XML configuration and free it when you're finished. π§lib80211_regdomain_findbysku()andlib80211_regdomain_findbyname()β these look up a regulatory domain entry by SKU enum and SKU name respectively. π₯lib80211_country_findbycc()andlib80211_country_findbyname()β these look up a country information entry by ISO country enum and ISO country code string respectively. π
π RETURN VALUES π
these ones return NULL upon error, bestie:
lib80211_alloc_regdata()lib80211_regdomain_readconfig()lib80211_regdomain_findbysku()lib80211_regdomain_findbyname()lib80211_country_findbycc()lib80211_country_findbyname()
so yeah, if something goes sideways, you get NULL. no cap. π
π¦ SEE ALSO π¦
π HISTORY π
the lib80211 library first appeared in FreeBSD 11.0. periodt. β
π AUTHORS π
Adrian Chadd. π
cute little sign-off: this page is from Debian, dated December 15, 2015. ππ«Ά
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2015 Adrian Chadd
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms