aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs/hal/odm_NoiseMonitor.h
blob: 3f650912f4ab04bdd26c4348e3a15c7ed576caa6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/******************************************************************************
 *
 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 *****************************************************************************/
#ifndef	__ODMNOISEMONITOR_H__
#define __ODMNOISEMONITOR_H__

#define	ODM_MAX_CHANNEL_NUM					38/* 14+24 */
struct noise_level {
	/* u8 value_a, value_b; */
	u8 value[MAX_RF_PATH];
	/* s8 sval_a, sval_b; */
	s8 sval[MAX_RF_PATH];

	/* s32 noise_a = 0, noise_b = 0, sum_a = 0, sum_b = 0; */
	/* s32 noise[ODM_RF_PATH_MAX]; */
	s32 sum[MAX_RF_PATH];
	/* u8 valid_cnt_a = 0, valid_cnt_b = 0, */
	u8 valid[MAX_RF_PATH];
	u8 valid_cnt[MAX_RF_PATH];

};


typedef struct _ODM_NOISE_MONITOR_ {
	s8 noise[MAX_RF_PATH];
	s16 noise_all;
} ODM_NOISE_MONITOR;

s16 ODM_InbandNoise_Monitor(
	void *pDM_VOID,
	u8 bPauseDIG,
	u8 IGIValue,
	u32 max_time
);

#endif