Lines Matching +full:country +full:- +full:code
1 .. SPDX-License-Identifier: GPL-2.0
15 ---------------------------------------
23 -------------------------------------------
28 given country.
31 ---------------------------------------------------------------
38 is CRDA - central regulatory domain agent. Its documented here:
52 The alpha2 is passed as an environment variable under the variable COUNTRY.
55 --------------------------------
73 * Wireless subsystems for Country Information elements
83 They have two options -- they either provide an alpha2 so that
84 crda can provide back a regulatory domain for that country or
95 (driver, user, country IE) and determine what to allow based on its
105 Example code - drivers hinting an alpha2:
106 ------------------------------------------
109 by having a mapping of your device's EEPROM country/regulatory
130 if (regdomain == reg_map->reg) {
131 alpha2[0] = reg_map->alpha2[0];
132 alpha2[1] = reg_map->alpha2[1];
145 r = zd_reg2alpha2(mac->regdomain, alpha2);
147 regulatory_hint(hw->wiphy, alpha2);
149 Example code - drivers providing a built in regulatory domain:
150 --------------------------------------------------------------
172 REG_RULE(2412-10, 2484+10, 40, 6, 20, 0),
174 REG_RULE(5170-10, 5240+10, 40, 6, 20,
177 REG_RULE(5260-10, 5320+10, 40, 6, 20,
183 Then in some part of your code after your wiphy has been registered::
195 return -ENOMEM;
200 memcpy(&rd->reg_rules[i],
206 ---------------------------------------