2016-03-27 17:56:02 +00:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright(c) 2009-2010 Realtek Corporation.
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __RTW_WIFI_REGD_H__
|
|
|
|
#define __RTW_WIFI_REGD_H__
|
|
|
|
|
2018-03-08 11:12:53 +00:00
|
|
|
struct country_code_to_enum_rd {
|
|
|
|
u16 countrycode;
|
|
|
|
const char *iso_name;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum country_code_type_t {
|
|
|
|
COUNTRY_CODE_USER = 0,
|
|
|
|
|
|
|
|
/*add new channel plan above this line */
|
|
|
|
COUNTRY_CODE_MAX
|
|
|
|
};
|
|
|
|
|
2016-03-27 17:56:02 +00:00
|
|
|
int rtw_regd_init(_adapter *padapter);
|
|
|
|
void rtw_reg_notify_by_driver(_adapter *adapter);
|
|
|
|
|
2016-06-24 17:06:15 +00:00
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0))
|
|
|
|
#define ieee80211_band nl80211_band
|
|
|
|
#define IEEE80211_BAND_2GHZ NL80211_BAND_2GHZ
|
|
|
|
#define IEEE80211_BAND_5GHZ NL80211_BAND_5GHZ
|
|
|
|
#define IEEE80211_NUM_BANDS NUM_NL80211_BANDS
|
|
|
|
#endif
|
|
|
|
|
2016-03-27 17:56:02 +00:00
|
|
|
#endif /* __RTW_WIFI_REGD_H__ */
|
2018-03-08 11:12:53 +00:00
|
|
|
|