aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf_ul.cpp
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-03-24 13:14:09 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2021-03-24 17:12:01 +0100
commit7bd92a3e1d1160df60501047fa73a9ecbfc383a7 (patch)
tree5f07ce55ca9298f4386368fd8221ee39ce81da44 /src/tbf_ul.cpp
parent4bab867d9fc983ee9c9ed1ab97cfe0e9e30b42b6 (diff)
Set matching USF if available when polling a UL TBF
When the scheduler detects it's time to receive a UL block due to a scheduled poll, if that polling is done on a UL TBF, then use its USF if available instead of using USF_UNUSED (=7) when sending a DL block on that same FN. This is not really needed for correct work, since MS take care themselves of scheduling a UL block when they receive the poll (RRBP) some time before, and don't check the USF at the time of transmitting. In any case, it helps understand better when looking at pcap traces that indeed it a UL block from that MS was requested, instead of setting USF to 7. Related: OS#5033 Change-Id: I2ad9d8ea6afc8f83192033470bd27010a7474430
Diffstat (limited to 'src/tbf_ul.cpp')
-rw-r--r--src/tbf_ul.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tbf_ul.cpp b/src/tbf_ul.cpp
index 8ef600b6..f226b290 100644
--- a/src/tbf_ul.cpp
+++ b/src/tbf_ul.cpp
@@ -213,7 +213,7 @@ gprs_rlcmac_ul_tbf::gprs_rlcmac_ul_tbf(struct gprs_rlcmac_bts *bts_, GprsMs *ms)
m_ul_gprs_ctrs(NULL),
m_ul_egprs_ctrs(NULL)
{
- memset(&m_usf, 0, sizeof(m_usf));
+ memset(&m_usf, USF_INVALID, sizeof(m_usf));
}
/*