1 /* 2 * Copyright (c) 2017-2018 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 #ifndef _WLAN_SPECTRAL_UCFG_API_H_ 21 #define _WLAN_SPECTRAL_UCFG_API_H_ 22 23 #include <wlan_objmgr_cmn.h> 24 #include <wlan_spectral_public_structs.h> 25 26 /* Spectral specific UCFG set operations */ 27 28 /** 29 * ucfg_spectral_control() - Carry out Spectral control operations 30 * @pdev: Pointer to pdev 31 * @id: Spectral operation ID 32 * @indata: Pointer to input data 33 * @insize: Size of indata buffer 34 * @outdata: Pointer to buffer where the output should be stored 35 * @outsize: Size of outdata buffer 36 * 37 * Carry out Spectral specific UCFG control get/set operations 38 * 39 * Return: 0 on success, negative value on failure 40 */ 41 int ucfg_spectral_control(struct wlan_objmgr_pdev *pdev, 42 u_int id, 43 void *indata, 44 uint32_t insize, void *outdata, uint32_t *outsize); 45 46 /** 47 * ucfg_spectral_scan_set_ppid() - configure pid of spectral tool 48 * @pdev: Pointer to pdev 49 * @ppid: Spectral tool pid 50 * 51 * Configure pid of spectral tool 52 * 53 * Return: None 54 */ 55 void ucfg_spectral_scan_set_ppid(struct wlan_objmgr_pdev *pdev, 56 uint32_t ppid); 57 58 #endif /* _WLAN_SPECTRAL_UCFG_API_H_ */ 59