1 /* 2 * Copyright (c) 2017 The Linux Foundation. All rights reserved. 3 * 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 /** 21 * @file wlan_req_tgt_api.c 22 * @brief contains regulatory target interface definations 23 */ 24 25 #include <qdf_status.h> 26 #include <qdf_types.h> 27 #include <wlan_reg_tgt_api.h> 28 #include "../../core/src/reg_services.h" 29 30 /** 31 * tgt_process_master_chan_list() - process master channel list 32 * @reg_info: regulatory info 33 * 34 * Return: QDF_STATUS 35 */ 36 QDF_STATUS tgt_reg_process_master_chan_list(struct cur_regulatory_info 37 *reg_info) 38 { 39 return reg_process_master_chan_list(reg_info); 40 } 41 42 QDF_STATUS tgt_reg_process_11d_new_country(struct wlan_objmgr_psoc *psoc, 43 struct reg_11d_new_country *reg_11d_new_cc) 44 { 45 return reg_save_new_11d_country(psoc, reg_11d_new_cc->alpha2); 46 } 47 48 QDF_STATUS tgt_reg_set_regdb_offloaded(struct wlan_objmgr_psoc *psoc, 49 bool val) 50 { 51 return reg_set_regdb_offloaded(psoc, val); 52 } 53 54 QDF_STATUS tgt_reg_set_11d_offloaded(struct wlan_objmgr_psoc *psoc, 55 bool val) 56 { 57 return reg_set_11d_offloaded(psoc, val); 58 } 59 60 QDF_STATUS tgt_reg_process_ch_avoid_event(struct wlan_objmgr_psoc *psoc, 61 struct ch_avoid_ind_type *ch_avoid_evnt) 62 { 63 return reg_process_ch_avoid_event(psoc, ch_avoid_evnt); 64 } 65