regd.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /******************************************************************************
  3. *
  4. * Copyright(c) 2009-2012 Realtek Corporation.
  5. *
  6. * Contact Information:
  7. * wlanfae <wlanfae@realtek.com>
  8. * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
  9. * Hsinchu 300, Taiwan.
  10. *
  11. * Larry Finger <Larry.Finger@lwfinger.net>
  12. *
  13. *****************************************************************************/
  14. #ifndef __RTL_REGD_H__
  15. #define __RTL_REGD_H__
  16. /* for kernel 3.14 , both value are changed to IEEE80211_CHAN_NO_IR*/
  17. #define IEEE80211_CHAN_NO_IBSS IEEE80211_CHAN_NO_IR
  18. #define IEEE80211_CHAN_PASSIVE_SCAN IEEE80211_CHAN_NO_IR
  19. struct country_code_to_enum_rd {
  20. u16 countrycode;
  21. const char *iso_name;
  22. };
  23. enum country_code_type_t {
  24. COUNTRY_CODE_FCC = 0,
  25. COUNTRY_CODE_IC = 1,
  26. COUNTRY_CODE_ETSI = 2,
  27. COUNTRY_CODE_SPAIN = 3,
  28. COUNTRY_CODE_FRANCE = 4,
  29. COUNTRY_CODE_MKK = 5,
  30. COUNTRY_CODE_MKK1 = 6,
  31. COUNTRY_CODE_ISRAEL = 7,
  32. COUNTRY_CODE_TELEC = 8,
  33. COUNTRY_CODE_MIC = 9,
  34. COUNTRY_CODE_GLOBAL_DOMAIN = 10,
  35. COUNTRY_CODE_WORLD_WIDE_13 = 11,
  36. COUNTRY_CODE_TELEC_NETGEAR = 12,
  37. COUNTRY_CODE_WORLD_WIDE_13_5G_ALL = 13,
  38. /*add new channel plan above this line */
  39. COUNTRY_CODE_MAX
  40. };
  41. int rtl_regd_init(struct ieee80211_hw *hw,
  42. void (*reg_notifier)(struct wiphy *wiphy,
  43. struct regulatory_request *request));
  44. void rtl_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request);
  45. #endif