forked from SysSec-KAIST/LTESniffer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DCISearch.h
52 lines (48 loc) · 1.93 KB
/
DCISearch.h
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
#pragma once
#include "falcon/phy/falcon_ue/falcon_ue_dl.h"
#include "include/SubframeInfo.h"
#include "PhyCommon.h"
#include "MetaFormats.h"
#include "falcon/prof/Lifetime.h"
class DCISearch {
public:
DCISearch(falcon_ue_dl_t& ue_dl,
const DCIMetaFormats& metaFormats,
RNTIManager& rntiManager,
SubframeInfo& subframeInfo,
uint32_t sf_idx,
uint32_t sfn,
srsran_dl_sf_cfg_t *sf,
srsran_ue_dl_cfg_t *ue_dl_cfg);
int search();
DCIBlindSearchStats& getStats();
void setShortcutDiscovery(bool enable);
bool getShortcutDiscovery() const;
/*set nof_antenna = 1 as using antenna 0 for downlink, 1 for uplink */
void prepareDCISearch();
private:
int inspect_dci_location_recursively(srsran_dci_msg_t *dci_msg,
uint32_t cfi,
falcon_cce_to_dci_location_map_t *cce_map,
falcon_dci_location_t *location_list,
uint32_t ncce,
uint32_t L,
uint32_t max_depth,
falcon_dci_meta_format_t **meta_formats,
uint32_t nof_formats,
uint32_t enable_discovery,
const dci_candidate_t parent_cand[]);
int recursive_blind_dci_search(srsran_dci_msg_t *dci_msg,
uint32_t cfi);
falcon_ue_dl_t& falcon_ue_dl;
srsran_dl_sf_cfg_t *sf;
srsran_ue_dl_cfg_t *ue_dl_cfg;
const DCIMetaFormats& metaFormats;
RNTIManager& rntiManager;
DCICollection& dciCollection;
SubframePower& subframePower;
uint32_t sf_idx;
uint32_t sfn;
DCIBlindSearchStats stats;
bool enableShortcutDiscovery;
};