Yuanyuan Liu | 13e7cdf | 2017-06-13 11:48:00 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2017 The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #ifndef _CNSS_UTILS_H_ |
| 14 | #define _CNSS_UTILS_H_ |
| 15 | |
| 16 | enum cnss_utils_cc_src { |
| 17 | CNSS_UTILS_SOURCE_CORE, |
| 18 | CNSS_UTILS_SOURCE_11D, |
| 19 | CNSS_UTILS_SOURCE_USER |
| 20 | }; |
| 21 | |
| 22 | extern int cnss_utils_set_wlan_unsafe_channel(struct device *dev, |
| 23 | u16 *unsafe_ch_list, |
| 24 | u16 ch_count); |
| 25 | extern int cnss_utils_get_wlan_unsafe_channel(struct device *dev, |
| 26 | u16 *unsafe_ch_list, |
| 27 | u16 *ch_count, u16 buf_len); |
| 28 | extern int cnss_utils_wlan_set_dfs_nol(struct device *dev, |
| 29 | const void *info, u16 info_len); |
| 30 | extern int cnss_utils_wlan_get_dfs_nol(struct device *dev, |
| 31 | void *info, u16 info_len); |
| 32 | extern int cnss_utils_get_driver_load_cnt(struct device *dev); |
| 33 | extern void cnss_utils_increment_driver_load_cnt(struct device *dev); |
| 34 | extern int cnss_utils_set_wlan_mac_address(const u8 *in, uint32_t len); |
| 35 | extern u8 *cnss_utils_get_wlan_mac_address(struct device *dev, uint32_t *num); |
Sameer Thalappil | 1a15d71 | 2017-11-08 17:08:48 -0800 | [diff] [blame] | 36 | extern int cnss_utils_set_wlan_derived_mac_address(const u8 *in, uint32_t len); |
| 37 | extern u8 *cnss_utils_get_wlan_derived_mac_address(struct device *dev, |
| 38 | uint32_t *num); |
Yuanyuan Liu | 13e7cdf | 2017-06-13 11:48:00 -0700 | [diff] [blame] | 39 | extern void cnss_utils_set_cc_source(struct device *dev, |
| 40 | enum cnss_utils_cc_src cc_source); |
| 41 | extern enum cnss_utils_cc_src cnss_utils_get_cc_source(struct device *dev); |
| 42 | |
| 43 | #endif |