1 /****************************************************************************** 2 * 3 * Copyright(c) 2009-2010 - 2017 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 *****************************************************************************/ 15 16 #ifndef __WIFI_REGD_H__ 17 #define __WIFI_REGD_H__ 18 19 void rtw_chset_hook_os_channels(struct rf_ctl_t *rfctl); 20 void rtw_regd_change_complete_sync(struct wiphy *wiphy, struct get_chplan_resp *chplan, bool rtnl_lock_needed); 21 int rtw_regd_change_complete_async(struct wiphy *wiphy, struct get_chplan_resp *chplan); 22 #ifdef CONFIG_REGD_SRC_FROM_OS 23 struct _RT_CHANNEL_INFO; 24 u8 rtw_os_init_channel_set(_adapter *padapter, struct _RT_CHANNEL_INFO *channel_set); 25 s16 rtw_os_get_total_txpwr_regd_lmt_mbm(_adapter *adapter, u8 cch, enum channel_width bw); 26 #endif 27 int rtw_regd_init(struct wiphy *wiphy); 28 void rtw_regd_deinit(struct wiphy *wiphy); 29 30 #endif /* __WIFI_REGD_H__ */ 31