regd.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2009-2012 Realtek Corporation.
  4. *
  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. *
  14. * 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. #ifndef __RTL_REGD_H__
  26. #define __RTL_REGD_H__
  27. /* for kernel 3.14 , both value are changed to IEEE80211_CHAN_NO_IR*/
  28. #define IEEE80211_CHAN_NO_IBSS IEEE80211_CHAN_NO_IR
  29. #define IEEE80211_CHAN_PASSIVE_SCAN IEEE80211_CHAN_NO_IR
  30. struct country_code_to_enum_rd {
  31. u16 countrycode;
  32. const char *iso_name;
  33. };
  34. enum country_code_type_t {
  35. COUNTRY_CODE_FCC = 0,
  36. COUNTRY_CODE_IC = 1,
  37. COUNTRY_CODE_ETSI = 2,
  38. COUNTRY_CODE_SPAIN = 3,
  39. COUNTRY_CODE_FRANCE = 4,
  40. COUNTRY_CODE_MKK = 5,
  41. COUNTRY_CODE_MKK1 = 6,
  42. COUNTRY_CODE_ISRAEL = 7,
  43. COUNTRY_CODE_TELEC = 8,
  44. COUNTRY_CODE_MIC = 9,
  45. COUNTRY_CODE_GLOBAL_DOMAIN = 10,
  46. COUNTRY_CODE_WORLD_WIDE_13 = 11,
  47. COUNTRY_CODE_TELEC_NETGEAR = 12,
  48. COUNTRY_CODE_WORLD_WIDE_13_5G_ALL = 13,
  49. /*add new channel plan above this line */
  50. COUNTRY_CODE_MAX
  51. };
  52. int rtl_regd_init(struct ieee80211_hw *hw,
  53. void (*reg_notifier) (struct wiphy *wiphy,
  54. struct regulatory_request *request));
  55. void rtl_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request);
  56. #endif