hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/******************************************************************************
 *
 * Copyright(c) 2020 Realtek Corporation.
 *
 * 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 _PHL_SCAN_INSTANCE_H_
#define _PHL_SCAN_INSTANCE_H_
 
#define MAX_SCAN_INSTANCE 160
 
enum order_strategy {
   ORDER_5GHZ_PRIOR = BIT(0),
   ORDER_ACTIVE_PRIOR = BIT(1),
   ORDER_CUSTOM = BIT(2)
};
 
enum skip_strategy {
   SKIP_2GHZ = BIT(0),
   SKIP_5GHZ = BIT(1),
   SKIP_PASSIVE = BIT(2),
   SKIP_DFS = BIT(3),
   SKIP_6GHZ = BIT(4),
};
 
enum period_strategy {
   PERIOD_ALL_MAX = BIT(0),
   PERIOD_ALL_MIN = BIT(1),
   PERIOD_MIN_DFS = BIT(2)
};
 
struct instance_strategy {
   u8 order;
   u8 skip;
   u8 period;
};
 
struct instance_channel {
   enum band_type band;
   u8 channel;
   u8 property;
   u8 active;
   u8 period;
   u8 mode;
   u8 bw;
   u8 offset;
};
 
struct instance {
   u32 cnt; /* channel cnt */
   struct instance_channel ch[MAX_SCAN_INSTANCE];
};
 
 
#endif /* _PHL_SCAN_INSTANCE_H_ */