blob: cccec40139c2b16e4a30e26e0887d89749dc6d86 [file] [log] [blame]
Luis R. Rodriguezf078f202008-08-04 00:16:41 -07001/*
2 * Copyright (c) 2008 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17#include <linux/kernel.h>
18#include <linux/slab.h>
19#include "core.h"
20#include "hw.h"
21#include "regd.h"
22#include "regd_common.h"
23
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -080024/*
25 * This is a set of common rules used by our world regulatory domains.
26 * We have 12 world regulatory domains. To save space we consolidate
27 * the regulatory domains in 5 structures by frequency and change
28 * the flags on our reg_notifier() on a case by case basis.
29 */
Luis R. Rodriguezf078f202008-08-04 00:16:41 -070030
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -080031/* Only these channels all allow active scan on all world regulatory domains */
32#define ATH9K_2GHZ_CH01_11 REG_RULE(2412-10, 2462+10, 40, 0, 20, 0)
Luis R. Rodriguezf078f202008-08-04 00:16:41 -070033
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -080034/* We enable active scan on these a case by case basis by regulatory domain */
35#define ATH9K_2GHZ_CH12_13 REG_RULE(2467-10, 2472+10, 40, 0, 20,\
36 NL80211_RRF_PASSIVE_SCAN)
37#define ATH9K_2GHZ_CH14 REG_RULE(2484-10, 2484+10, 40, 0, 20,\
38 NL80211_RRF_PASSIVE_SCAN | NL80211_RRF_NO_OFDM)
Luis R. Rodriguezf078f202008-08-04 00:16:41 -070039
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -080040/* We allow IBSS on these on a case by case basis by regulatory domain */
41#define ATH9K_5GHZ_5150_5350 REG_RULE(5150-10, 5350+10, 40, 0, 30,\
42 NL80211_RRF_PASSIVE_SCAN | NL80211_RRF_NO_IBSS)
43#define ATH9K_5GHZ_5470_5850 REG_RULE(5470-10, 5850+10, 40, 0, 30,\
44 NL80211_RRF_PASSIVE_SCAN | NL80211_RRF_NO_IBSS)
45#define ATH9K_5GHZ_5725_5850 REG_RULE(5725-10, 5850+10, 40, 0, 30,\
46 NL80211_RRF_PASSIVE_SCAN | NL80211_RRF_NO_IBSS)
47
48#define ATH9K_2GHZ_ALL ATH9K_2GHZ_CH01_11, \
49 ATH9K_2GHZ_CH12_13, \
50 ATH9K_2GHZ_CH14
51
52#define ATH9K_5GHZ_ALL ATH9K_5GHZ_5150_5350, \
53 ATH9K_5GHZ_5470_5850
54/* This one skips what we call "mid band" */
55#define ATH9K_5GHZ_NO_MIDBAND ATH9K_5GHZ_5150_5350, \
56 ATH9K_5GHZ_5725_5850
57
58/* Can be used for:
59 * 0x60, 0x61, 0x62 */
60static const struct ieee80211_regdomain ath9k_world_regdom_60_61_62 = {
61 .n_reg_rules = 5,
62 .alpha2 = "99",
63 .reg_rules = {
64 ATH9K_2GHZ_ALL,
65 ATH9K_5GHZ_ALL,
66 }
67};
68
69/* Can be used by 0x63 and 0x65 */
70static const struct ieee80211_regdomain ath9k_world_regdom_63_65 = {
71 .n_reg_rules = 4,
72 .alpha2 = "99",
73 .reg_rules = {
74 ATH9K_2GHZ_CH01_11,
75 ATH9K_2GHZ_CH12_13,
76 ATH9K_5GHZ_NO_MIDBAND,
77 }
78};
79
80/* Can be used by 0x64 only */
81static const struct ieee80211_regdomain ath9k_world_regdom_64 = {
82 .n_reg_rules = 3,
83 .alpha2 = "99",
84 .reg_rules = {
85 ATH9K_2GHZ_CH01_11,
86 ATH9K_5GHZ_NO_MIDBAND,
87 }
88};
89
90/* Can be used by 0x66 and 0x69 */
91static const struct ieee80211_regdomain ath9k_world_regdom_66_69 = {
92 .n_reg_rules = 3,
93 .alpha2 = "99",
94 .reg_rules = {
95 ATH9K_2GHZ_CH01_11,
96 ATH9K_5GHZ_ALL,
97 }
98};
99
100/* Can be used by 0x67, 0x6A and 0x68 */
101static const struct ieee80211_regdomain ath9k_world_regdom_67_68_6A = {
102 .n_reg_rules = 4,
103 .alpha2 = "99",
104 .reg_rules = {
105 ATH9K_2GHZ_CH01_11,
106 ATH9K_2GHZ_CH12_13,
107 ATH9K_5GHZ_ALL,
108 }
109};
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700110
111static u16 ath9k_regd_get_eepromRD(struct ath_hal *ah)
112{
113 return ah->ah_currentRD & ~WORLDWIDE_ROAMING_FLAG;
114}
115
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800116u16 ath9k_regd_get_rd(struct ath_hal *ah)
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700117{
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800118 return ath9k_regd_get_eepromRD(ah);
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700119}
120
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800121bool ath9k_is_world_regd(struct ath_hal *ah)
122{
123 return isWwrSKU(ah);
124}
125
126const struct ieee80211_regdomain *ath9k_default_world_regdomain(void)
127{
128 /* this is the most restrictive */
129 return &ath9k_world_regdom_64;
130}
131
132const struct ieee80211_regdomain *ath9k_world_regdomain(struct ath_hal *ah)
133{
134 switch (ah->regpair->regDmnEnum) {
135 case 0x60:
136 case 0x61:
137 case 0x62:
138 return &ath9k_world_regdom_60_61_62;
139 case 0x63:
140 case 0x65:
141 return &ath9k_world_regdom_63_65;
142 case 0x64:
143 return &ath9k_world_regdom_64;
144 case 0x66:
145 case 0x69:
146 return &ath9k_world_regdom_66_69;
147 case 0x67:
148 case 0x68:
149 case 0x6A:
150 return &ath9k_world_regdom_67_68_6A;
151 default:
152 WARN_ON(1);
153 return ath9k_default_world_regdomain();
154 }
155}
156
Luis R. Rodriguez547e4c22009-01-28 12:17:48 -0800157/* Frequency is one where radar detection is required */
158static bool ath9k_is_radar_freq(u16 center_freq)
159{
160 return (center_freq >= 5260 && center_freq <= 5700);
161}
162
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800163/* Enable adhoc on 5 GHz if allowed by 11d */
164static void ath9k_reg_apply_5ghz_adhoc_flags(struct wiphy *wiphy,
165 enum reg_set_by setby)
166{
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800167 struct ieee80211_supported_band *sband;
168 const struct ieee80211_reg_rule *reg_rule;
169 struct ieee80211_channel *ch;
170 unsigned int i;
171 u32 bandwidth = 0;
172 int r;
173
174 if (setby != REGDOM_SET_BY_COUNTRY_IE)
175 return;
Luis R. Rodriguez8c63c462009-01-28 12:17:47 -0800176 if (!wiphy->bands[IEEE80211_BAND_5GHZ])
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800177 return;
178
179 sband = wiphy->bands[IEEE80211_BAND_5GHZ];
180 for (i = 0; i < sband->n_channels; i++) {
181 ch = &sband->channels[i];
182 r = freq_reg_info(wiphy, ch->center_freq,
183 &bandwidth, &reg_rule);
184 if (r)
185 continue;
186 /* If 11d had a rule for this channel ensure we enable adhoc
187 * if it allows us to use it. Note that we would have disabled
188 * it by applying our static world regdomain by default during
189 * probe */
190 if (!(reg_rule->flags & NL80211_RRF_NO_IBSS))
191 ch->flags &= ~NL80211_RRF_NO_IBSS;
192 }
193}
194
195/* Allows active scan scan on Ch 12 and 13 */
196static void ath9k_reg_apply_active_scan_flags(struct wiphy *wiphy,
197 enum reg_set_by setby)
198{
199 struct ieee80211_supported_band *sband;
200 struct ieee80211_channel *ch;
201 const struct ieee80211_reg_rule *reg_rule;
202 u32 bandwidth = 0;
203 int r;
204
205 /* Force passive scan on Channels 12-13 */
206 sband = wiphy->bands[IEEE80211_BAND_2GHZ];
207
208 /* If no country IE has been received always enable active scan
209 * on these channels */
210 if (setby != REGDOM_SET_BY_COUNTRY_IE) {
211 ch = &sband->channels[11]; /* CH 12 */
212 if (ch->flags & IEEE80211_CHAN_PASSIVE_SCAN)
213 ch->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN;
214 ch = &sband->channels[12]; /* CH 13 */
215 if (ch->flags & IEEE80211_CHAN_PASSIVE_SCAN)
216 ch->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN;
217 return;
218 }
219
220 /* If a country IE has been recieved check its rule for this
221 * channel first before enabling active scan. The passive scan
222 * would have been enforced by the initial probe processing on
223 * our custom regulatory domain. */
224
225 ch = &sband->channels[11]; /* CH 12 */
226 r = freq_reg_info(wiphy, ch->center_freq, &bandwidth, &reg_rule);
227 if (!r) {
228 if (!(reg_rule->flags & NL80211_RRF_PASSIVE_SCAN))
229 if (ch->flags & IEEE80211_CHAN_PASSIVE_SCAN)
230 ch->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN;
231 }
232
233 ch = &sband->channels[12]; /* CH 13 */
234 r = freq_reg_info(wiphy, ch->center_freq, &bandwidth, &reg_rule);
235 if (!r) {
236 if (!(reg_rule->flags & NL80211_RRF_PASSIVE_SCAN))
237 if (ch->flags & IEEE80211_CHAN_PASSIVE_SCAN)
238 ch->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN;
239 }
240}
241
242/* Always apply Radar/DFS rules on freq range 5260 MHz - 5700 MHz */
243void ath9k_reg_apply_radar_flags(struct wiphy *wiphy)
244{
245 struct ieee80211_supported_band *sband;
246 struct ieee80211_channel *ch;
247 unsigned int i;
248
249 if (!wiphy->bands[IEEE80211_BAND_5GHZ])
250 return;
251
252 sband = wiphy->bands[IEEE80211_BAND_5GHZ];
253
254 for (i = 0; i < sband->n_channels; i++) {
255 ch = &sband->channels[i];
Luis R. Rodriguez547e4c22009-01-28 12:17:48 -0800256 if (!ath9k_is_radar_freq(ch->center_freq))
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800257 continue;
258 /* We always enable radar detection/DFS on this
259 * frequency range. Additionally we also apply on
260 * this frequency range:
261 * - If STA mode does not yet have DFS supports disable
262 * active scanning
263 * - If adhoc mode does not support DFS yet then
264 * disable adhoc in the frequency.
265 * - If AP mode does not yet support radar detection/DFS
266 * do not allow AP mode
267 */
268 if (!(ch->flags & IEEE80211_CHAN_DISABLED))
269 ch->flags |= IEEE80211_CHAN_RADAR |
270 IEEE80211_CHAN_NO_IBSS |
271 IEEE80211_CHAN_PASSIVE_SCAN;
272 }
273}
274
275void ath9k_reg_apply_world_flags(struct wiphy *wiphy, enum reg_set_by setby)
276{
277 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy);
278 struct ath_softc *sc = hw->priv;
279 struct ath_hal *ah = sc->sc_ah;
280
281 switch (ah->regpair->regDmnEnum) {
282 case 0x60:
283 case 0x63:
284 case 0x66:
285 case 0x67:
286 ath9k_reg_apply_5ghz_adhoc_flags(wiphy, setby);
287 break;
288 case 0x68:
289 ath9k_reg_apply_5ghz_adhoc_flags(wiphy, setby);
290 ath9k_reg_apply_active_scan_flags(wiphy, setby);
291 break;
292 }
293 return;
294}
295
296int ath9k_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request)
297{
298 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy);
299 struct ath_softc *sc = hw->priv;
300
301 /* We always apply this */
302 ath9k_reg_apply_radar_flags(wiphy);
303
304 switch (request->initiator) {
305 case REGDOM_SET_BY_DRIVER:
306 case REGDOM_SET_BY_INIT:
307 case REGDOM_SET_BY_CORE:
308 case REGDOM_SET_BY_USER:
309 break;
310 case REGDOM_SET_BY_COUNTRY_IE:
311 if (ath9k_is_world_regd(sc->sc_ah))
312 ath9k_reg_apply_world_flags(wiphy, request->initiator);
313 break;
314 }
315
316 return 0;
317}
318
319bool ath9k_regd_is_eeprom_valid(struct ath_hal *ah)
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700320{
321 u16 rd = ath9k_regd_get_eepromRD(ah);
322 int i;
323
324 if (rd & COUNTRY_ERD_FLAG) {
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800325 /* EEPROM value is a country code */
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700326 u16 cc = rd & ~COUNTRY_ERD_FLAG;
327 for (i = 0; i < ARRAY_SIZE(allCountries); i++)
328 if (allCountries[i].countryCode == cc)
329 return true;
330 } else {
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800331 /* EEPROM value is a regpair value */
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700332 for (i = 0; i < ARRAY_SIZE(regDomainPairs); i++)
333 if (regDomainPairs[i].regDmnEnum == rd)
334 return true;
335 }
336 DPRINTF(ah->ah_sc, ATH_DBG_REGULATORY,
Sujith04bd46382008-11-28 22:18:05 +0530337 "invalid regulatory domain/country code 0x%x\n", rd);
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700338 return false;
339}
340
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800341/* EEPROM country code to regpair mapping */
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700342static struct country_code_to_enum_rd*
343ath9k_regd_find_country(u16 countryCode)
344{
345 int i;
346
347 for (i = 0; i < ARRAY_SIZE(allCountries); i++) {
348 if (allCountries[i].countryCode == countryCode)
349 return &allCountries[i];
350 }
351 return NULL;
352}
353
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800354/* EEPROM rd code to regpair mapping */
355static struct country_code_to_enum_rd*
356ath9k_regd_find_country_by_rd(int regdmn)
357{
358 int i;
359
360 for (i = 0; i < ARRAY_SIZE(allCountries); i++) {
361 if (allCountries[i].regDmnEnum == regdmn)
362 return &allCountries[i];
363 }
364 return NULL;
365}
366
367/* Returns the map of the EEPROM set RD to a country code */
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700368static u16 ath9k_regd_get_default_country(struct ath_hal *ah)
369{
370 u16 rd;
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700371
372 rd = ath9k_regd_get_eepromRD(ah);
373 if (rd & COUNTRY_ERD_FLAG) {
374 struct country_code_to_enum_rd *country = NULL;
375 u16 cc = rd & ~COUNTRY_ERD_FLAG;
376
377 country = ath9k_regd_find_country(cc);
378 if (country != NULL)
379 return cc;
380 }
381
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700382 return CTRY_DEFAULT;
383}
384
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800385static struct reg_dmn_pair_mapping*
386ath9k_get_regpair(int regdmn)
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700387{
388 int i;
389
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800390 if (regdmn == NO_ENUMRD)
391 return NULL;
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700392 for (i = 0; i < ARRAY_SIZE(regDomainPairs); i++) {
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800393 if (regDomainPairs[i].regDmnEnum == regdmn)
394 return &regDomainPairs[i];
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700395 }
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800396 return NULL;
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700397}
398
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800399int ath9k_regd_init(struct ath_hal *ah)
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700400{
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700401 struct country_code_to_enum_rd *country = NULL;
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700402 int regdmn;
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700403
404 if (!ath9k_regd_is_eeprom_valid(ah)) {
405 DPRINTF(ah->ah_sc, ATH_DBG_REGULATORY,
Sujith04bd46382008-11-28 22:18:05 +0530406 "Invalid EEPROM contents\n");
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800407 return -EINVAL;
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700408 }
409
410 ah->ah_countryCode = ath9k_regd_get_default_country(ah);
411
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800412 if (ah->ah_countryCode == CTRY_DEFAULT &&
413 ath9k_regd_get_eepromRD(ah) == CTRY_DEFAULT)
414 ah->ah_countryCode = CTRY_UNITED_STATES;
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700415
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700416 if (ah->ah_countryCode == CTRY_DEFAULT) {
417 regdmn = ath9k_regd_get_eepromRD(ah);
418 country = NULL;
419 } else {
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700420 country = ath9k_regd_find_country(ah->ah_countryCode);
421 if (country == NULL) {
422 DPRINTF(ah->ah_sc, ATH_DBG_REGULATORY,
423 "Country is NULL!!!!, cc= %d\n",
424 ah->ah_countryCode);
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800425 return -EINVAL;
426 } else
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700427 regdmn = country->regDmnEnum;
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700428 }
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700429
430 ah->ah_currentRDInUse = regdmn;
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800431 ah->regpair = ath9k_get_regpair(regdmn);
432
433 if (!ah->regpair) {
434 DPRINTF(ah->ah_sc, ATH_DBG_FATAL,
435 "No regulatory domain pair found, cannot continue\n");
436 return -EINVAL;
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700437 }
438
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800439 if (!country)
440 country = ath9k_regd_find_country_by_rd(regdmn);
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700441
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800442 if (country) {
443 ah->alpha2[0] = country->isoName[0];
444 ah->alpha2[1] = country->isoName[1];
445 } else {
446 ah->alpha2[0] = '0';
447 ah->alpha2[1] = '0';
448 }
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700449
450 DPRINTF(ah->ah_sc, ATH_DBG_REGULATORY,
Luis R. Rodriguez0c6666e2009-01-26 06:48:10 -0800451 "Country alpha2 being used: %c%c\n"
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800452 "Regpair detected: 0x%0x\n",
453 ah->alpha2[0], ah->alpha2[1],
454 ah->regpair->regDmnEnum);
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700455
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800456 return 0;
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700457}
458
459u32 ath9k_regd_get_ctl(struct ath_hal *ah, struct ath9k_channel *chan)
460{
461 u32 ctl = NO_CTL;
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700462
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800463 if (!ah->regpair ||
464 (ah->ah_countryCode == CTRY_DEFAULT && isWwrSKU(ah))) {
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700465 if (IS_CHAN_B(chan))
466 ctl = SD_NO_CTL | CTL_11B;
467 else if (IS_CHAN_G(chan))
468 ctl = SD_NO_CTL | CTL_11G;
469 else
470 ctl = SD_NO_CTL | CTL_11A;
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800471 return ctl;
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700472 }
Luis R. Rodriguez5f8e0772009-01-22 15:16:48 -0800473
474 if (IS_CHAN_B(chan))
475 ctl = ah->regpair->reg_2ghz_ctl | CTL_11B;
476 else if (IS_CHAN_G(chan))
477 ctl = ah->regpair->reg_5ghz_ctl | CTL_11G;
478 else
479 ctl = ah->regpair->reg_5ghz_ctl | CTL_11A;
480
Luis R. Rodriguezf078f202008-08-04 00:16:41 -0700481 return ctl;
482}