diff options
author | Sebastian Stumpf <sebastian.stumpf87@googlemail.com> | 2017-04-24 10:45:17 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-07-12 23:26:26 +0200 |
commit | 203f7e0c7fc9c40cb85ce4370f0e8fbd62888c04 (patch) | |
tree | f1404c812b3c8f924c24fa659ad0f3b3abf4a466 /src/host/virt_phy/include/virtphy/l1ctl_sap.h | |
parent | 59cc3c3ab1efcaa8f44a3b76bd9b036018fea074 (diff) |
VIRT-PHY: Configurable signal power reductions for multiple arfcns.
Model was expanded and holds now power management information consisting
of an array of received power levels for all arfcns and one for the
reduction of this signal in dbm. The reduction is configurable by
commandline by --arfcn-sig-lev-red 666,12:888,13. The signal level is
assumed to be max level (-63) if a packet from that arfcn is received
within a timeframe (also configurable via cmd -- timeout-pm 5:800 ==
<seconds>:<microseconds>). After that timeout it will be reduced to min
level (-110).
Change-Id: I369ca26703f14bba4e9334b8f417deef640462f9
Diffstat (limited to 'src/host/virt_phy/include/virtphy/l1ctl_sap.h')
-rw-r--r-- | src/host/virt_phy/include/virtphy/l1ctl_sap.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/host/virt_phy/include/virtphy/l1ctl_sap.h b/src/host/virt_phy/include/virtphy/l1ctl_sap.h index a1261287..b84c3e9e 100644 --- a/src/host/virt_phy/include/virtphy/l1ctl_sap.h +++ b/src/host/virt_phy/include/virtphy/l1ctl_sap.h @@ -18,6 +18,14 @@ #define LID_SACCH 0x40 #define LID_DEDIC 0x00 +/* signature strengths for the ms */ +#define MIN_SIG_LEV_DBM -110 +#define MAX_SIG_LEV_DBM -63 + +/* Ignore all flags of the arfcn */ +#define ARFCN_NO_FLAGS_MASK 0x0fff + + void l1ctl_sap_init(struct l1_model_ms *model); void prim_rach_init(struct l1_model_ms *model); void prim_data_init(struct l1_model_ms *model); |