diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-11-20 10:13:44 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-11-20 10:13:44 +0100 |
commit | 73a809e57b8a531b9b8a33b6841ed3df2ea22620 (patch) | |
tree | 76effaeb610b2394769991614fd54e5802e292ab /include | |
parent | 2879e77bd3720f261330dad2ef7f14d6a0988421 (diff) |
Tell L1CTL_FBSB_REQ the expected received signal level
As Dieter points out, this drastically improves the resiliance to high
receive levels on the C155. We cannot blindly assume a received signal
level of -85 dBm if the BTS is 2m away and we actually receive -40 dBm.
This patch extends the L1CTL_FBSB_REQ data structure in layer 1 with the
respective field, as well as the l1ctl_tx_fbsb_req() API function called
from the various layer23 apps.
"mobile" and "bcch_scan" already did a PM request and thus know the
expected signal power. "ccch_scan" and "cbch_sniff" apparently don't
do, so the -85 dBm constant is now hardcoded into the host-side source
code there, and should probably be fixed in a follow-up patch.
Diffstat (limited to 'include')
-rw-r--r-- | include/l1ctl_proto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/l1ctl_proto.h b/include/l1ctl_proto.h index 4b9540e9..771bf1c3 100644 --- a/include/l1ctl_proto.h +++ b/include/l1ctl_proto.h @@ -167,6 +167,7 @@ struct l1ctl_fbsb_req { uint8_t flags; /* L1CTL_FBSB_F_* */ uint8_t sync_info_idx; uint8_t ccch_mode; /* enum ccch_mode */ + uint8_t rxlev_exp; /* expected signal level */ } __attribute__((packed)); #define L1CTL_FBSB_F_FB0 (1 << 0) |