1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /****************************************************************************** 3 * 4 * Copyright(c) 2007 - 2016 Realtek Corporation. 5 * 6 * Contact Information: 7 * wlanfae <wlanfae@realtek.com> 8 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 9 * Hsinchu 300, Taiwan. 10 * 11 * Larry Finger <Larry.Finger@lwfinger.net> 12 * 13 *****************************************************************************/ 14 #ifndef __ODMNOISEMONITOR_H__ 15 #define __ODMNOISEMONITOR_H__ 16 17 #define ODM_MAX_CHANNEL_NUM 38 /* 14+24 */ 18 struct noise_level { 19 u8 value[MAX_RF_PATH]; 20 s8 sval[MAX_RF_PATH]; 21 22 s32 sum[MAX_RF_PATH]; 23 u8 valid[MAX_RF_PATH]; 24 u8 valid_cnt[MAX_RF_PATH]; 25 }; 26 27 struct odm_noise_monitor { 28 s8 noise[MAX_RF_PATH]; 29 s16 noise_all; 30 }; 31 32 s16 odm_inband_noise_monitor(void *dm_void, u8 is_pause_dig, u8 igi_value, 33 u32 max_time); 34 35 #endif 36