1 .\" Copyright (c) 2015 Adrian Chadd.
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 .Nm lib80211_alloc_regdata ,
32 .Nm lib80211_free_regdata ,
33 .Nm lib80211_regdomain_readconfig ,
34 .Nm lib80211_regdomain_cleanup ,
35 .Nm lib80211_regdomain_findbysku ,
36 .Nm lib80211_regdomain_findbyname ,
37 .Nm lib80211_country_findbycc ,
38 .Nm lib80211_country_findbyname
39 .Nd manage net80211 configuration and regulatory database
43 .In lib80211/lib80211_regdomain.h
44 .In lib80211/lib80211_ioctl.h
46 .Fn lib80211_alloc_regdata void
48 .Fn lib80211_free_regdata "struct regdata *reg"
50 .Fn lib80211_regdomain_readconfig "struct regdata *reg" "const void *config" "size_t size"
52 .Fn lib80211_regdomain_cleanup "struct regdata *reg"
53 .Ft const struct regdomain *
54 .Fn lib80211_regdomain_findbysku "const struct regdata *reg" "enumRegDomainCode"
55 .Ft const struct regdomain *
56 .Fn lib80211_regdomain_findbyname "const struct regdata *reg" "const char *sku"
57 .Ft const struct country *
58 .Fn lib80211_country_findbycc "const struct regdata *reg" "enum ISOCountryCode"
59 .Ft const struct country *
60 .Fn lib80211_country_findbyname "const struct regdata *reg" "const char *cc"
64 library is an interface to the
67 It implements wrappers around the
69 ioctl command, as well as providing a convenient API to access the regulatory
73 .Fn lib80211_alloc_regdata
75 .Fn lib80211_free_regdata
76 function allocates / frees a regdata structure to store regulatory domain
80 .Fn lib80211_regdomain_readconfig
82 .Fn lib80211_regdomain_cleanup
83 functions read in the regulatory database XML configuration and free it when
87 .Fn lib80211_regdomain_findbysku
89 .Fn lib80211_regdomain_findbyname
90 functions look up a regulatory domain entry by SKU enum and SKU name
94 .Fn lib80211_country_findbycc
96 .Fn lib80211_country_findbyname
97 functions look up a country information entry by ISO country enum and
98 ISO country code string respectively.
101 .Fn lib80211_alloc_regdata ,
102 .Fn lib80211_regdomain_readconfig ,
103 .Fn lib80211_regdomain_findbysku ,
104 .Fn lib80211_regdomain_findbyname ,
105 .Fn lib80211_country_findbycc ,
106 .Fn lib80211_country_findbyname
116 library first appeared in