hc
2024-03-25 edb30157bad0c0001c32b854271ace01d3b9a16a
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
/**
 ******************************************************************************
 *
 * @file rwnx_main.h
 *
 * Copyright (C) RivieraWaves 2012-2019
 *
 ******************************************************************************
 */
 
#ifndef _RWNX_MAIN_H_
#define _RWNX_MAIN_H_
 
#include "rwnx_defs.h"
 
typedef struct _android_wifi_priv_cmd {
   char *buf;
   int used_len;
   int total_len;
} android_wifi_priv_cmd;
 
#ifdef CONFIG_COMPAT
typedef struct _compat_android_wifi_priv_cmd {
   compat_caddr_t buf;
   int used_len;
   int total_len;
} compat_android_wifi_priv_cmd;
#endif /* CONFIG_COMPAT */
 
int rwnx_cfg80211_init(struct rwnx_plat *rwnx_plat, void **platform_data);
void rwnx_cfg80211_deinit(struct rwnx_hw *rwnx_hw);
extern int testmode;
extern u8 chip_sub_id;
extern u8 chip_mcu_id;
extern u8 chip_id;
 
#define CHIP_ID_H_MASK  0xC0
#define IS_CHIP_ID_H()  ((chip_id & CHIP_ID_H_MASK) == CHIP_ID_H_MASK)
 
#endif /* _RWNX_MAIN_H_ */