blob: f7f15bce35dd61309098b50d4ff08bee701dc5b3 [file] [log] [blame]
Larry Finger0c817332010-12-08 11:12:31 -06001/******************************************************************************
2 *
Larry Fingera8d76062012-01-07 20:46:42 -06003 * Copyright(c) 2009-2012 Realtek Corporation.
Larry Finger0c817332010-12-08 11:12:31 -06004 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
Larry Finger0c817332010-12-08 11:12:31 -060014 * The full GNU General Public License is included in this distribution in the
15 * file called LICENSE.
16 *
17 * Contact Information:
18 * wlanfae <wlanfae@realtek.com>
19 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20 * Hsinchu 300, Taiwan.
21 *
22 * Larry Finger <Larry.Finger@lwfinger.net>
23 *
24 *****************************************************************************/
25
26#ifndef __RTL_REGD_H__
27#define __RTL_REGD_H__
28
Larry Fingerf3a97e92014-09-22 09:39:24 -050029/* for kernel 3.14 , both value are changed to IEEE80211_CHAN_NO_IR*/
30#define IEEE80211_CHAN_NO_IBSS IEEE80211_CHAN_NO_IR
31#define IEEE80211_CHAN_PASSIVE_SCAN IEEE80211_CHAN_NO_IR
32
Larry Finger0c817332010-12-08 11:12:31 -060033struct country_code_to_enum_rd {
34 u16 countrycode;
Chaoming_Li81b29042011-04-25 12:53:24 -050035 const char *iso_name;
Larry Finger0c817332010-12-08 11:12:31 -060036};
37
38enum country_code_type_t {
39 COUNTRY_CODE_FCC = 0,
40 COUNTRY_CODE_IC = 1,
41 COUNTRY_CODE_ETSI = 2,
42 COUNTRY_CODE_SPAIN = 3,
43 COUNTRY_CODE_FRANCE = 4,
44 COUNTRY_CODE_MKK = 5,
45 COUNTRY_CODE_MKK1 = 6,
46 COUNTRY_CODE_ISRAEL = 7,
47 COUNTRY_CODE_TELEC = 8,
48 COUNTRY_CODE_MIC = 9,
49 COUNTRY_CODE_GLOBAL_DOMAIN = 10,
50 COUNTRY_CODE_WORLD_WIDE_13 = 11,
51 COUNTRY_CODE_TELEC_NETGEAR = 12,
Shao Fu02b5fff2015-05-15 16:32:59 -050052 COUNTRY_CODE_WORLD_WIDE_13_5G_ALL = 13,
Larry Finger0c817332010-12-08 11:12:31 -060053
54 /*add new channel plan above this line */
55 COUNTRY_CODE_MAX
56};
57
58int rtl_regd_init(struct ieee80211_hw *hw,
Luis R. Rodriguez0c0280b2013-01-11 18:39:36 +000059 void (*reg_notifier) (struct wiphy *wiphy,
Larry Fingerf3a97e92014-09-22 09:39:24 -050060 struct regulatory_request *request));
Luis R. Rodriguez0c0280b2013-01-11 18:39:36 +000061void rtl_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request);
Larry Fingerf3a97e92014-09-22 09:39:24 -050062
Larry Finger0c817332010-12-08 11:12:31 -060063#endif