regd.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright(c) 2009-2012 Realtek Corporation.*/
  3. #ifndef __RTL_REGD_H__
  4. #define __RTL_REGD_H__
  5. /* for kernel 3.14 , both value are changed to IEEE80211_CHAN_NO_IR*/
  6. #define IEEE80211_CHAN_NO_IBSS IEEE80211_CHAN_NO_IR
  7. #define IEEE80211_CHAN_PASSIVE_SCAN IEEE80211_CHAN_NO_IR
  8. struct country_code_to_enum_rd {
  9. u16 countrycode;
  10. const char *iso_name;
  11. };
  12. enum country_code_type_t {
  13. COUNTRY_CODE_FCC = 0,
  14. COUNTRY_CODE_IC = 1,
  15. COUNTRY_CODE_ETSI = 2,
  16. COUNTRY_CODE_SPAIN = 3,
  17. COUNTRY_CODE_FRANCE = 4,
  18. COUNTRY_CODE_MKK = 5,
  19. COUNTRY_CODE_MKK1 = 6,
  20. COUNTRY_CODE_ISRAEL = 7,
  21. COUNTRY_CODE_TELEC = 8,
  22. COUNTRY_CODE_MIC = 9,
  23. COUNTRY_CODE_GLOBAL_DOMAIN = 10,
  24. COUNTRY_CODE_WORLD_WIDE_13 = 11,
  25. COUNTRY_CODE_TELEC_NETGEAR = 12,
  26. COUNTRY_CODE_WORLD_WIDE_13_5G_ALL = 13,
  27. /*add new channel plan above this line */
  28. COUNTRY_CODE_MAX
  29. };
  30. int rtl_regd_init(struct ieee80211_hw *hw,
  31. void (*reg_notifier) (struct wiphy *wiphy,
  32. struct regulatory_request *request));
  33. void rtl_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request);
  34. #endif