blob: 77d14d14502c9932262a3c392e637ffa4eda5a54 [file] [log] [blame]
Yuanyuan Liu13e7cdf2017-06-13 11:48:00 -07001/* 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
16enum cnss_utils_cc_src {
17 CNSS_UTILS_SOURCE_CORE,
18 CNSS_UTILS_SOURCE_11D,
19 CNSS_UTILS_SOURCE_USER
20};
21
22extern int cnss_utils_set_wlan_unsafe_channel(struct device *dev,
23 u16 *unsafe_ch_list,
24 u16 ch_count);
25extern int cnss_utils_get_wlan_unsafe_channel(struct device *dev,
26 u16 *unsafe_ch_list,
27 u16 *ch_count, u16 buf_len);
28extern int cnss_utils_wlan_set_dfs_nol(struct device *dev,
29 const void *info, u16 info_len);
30extern int cnss_utils_wlan_get_dfs_nol(struct device *dev,
31 void *info, u16 info_len);
32extern int cnss_utils_get_driver_load_cnt(struct device *dev);
33extern void cnss_utils_increment_driver_load_cnt(struct device *dev);
34extern int cnss_utils_set_wlan_mac_address(const u8 *in, uint32_t len);
35extern u8 *cnss_utils_get_wlan_mac_address(struct device *dev, uint32_t *num);
Sameer Thalappil1a15d712017-11-08 17:08:48 -080036extern int cnss_utils_set_wlan_derived_mac_address(const u8 *in, uint32_t len);
37extern u8 *cnss_utils_get_wlan_derived_mac_address(struct device *dev,
38 uint32_t *num);
Yuanyuan Liu13e7cdf2017-06-13 11:48:00 -070039extern void cnss_utils_set_cc_source(struct device *dev,
40 enum cnss_utils_cc_src cc_source);
41extern enum cnss_utils_cc_src cnss_utils_get_cc_source(struct device *dev);
42
43#endif