MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / getMultislotClass

Function getMultislotClass

GPRS/MSInfo.cpp:105–117  ·  view source on GitHub ↗

Return an entry from the 45.002 Annex B table. We use T(rb) and T(tb) instead of T(ra), T(ta) because the latter are only used when there is a requirement for adjacent cell measurements. We dont need to worry much about T(rb) and T(tb) because we will always just keep Trb >= 1. This constraint is satisfied by allocating adjacent channels when Rx <= 2 or Tx <= 2.

Source from the content-addressed store, hash-verified

103// always just keep Trb >= 1. This constraint is satisfied by allocating
104// adjacent channels when Rx <= 2 or Tx <= 2.
105static MultislotClass getMultislotClass(MSInfo *ms)
106{
107 int multislotclass = ms->sgsnGetMultislotClass(ms->msTlli);
108 GPRSLOG(1) << ms <<LOGVAR(multislotclass);
109 // -1 means not specified and 0 or >45 are illegal.
110 if (multislotclass <= 0 || multislotclass > sMultislotMax) {
111 return sMultislotInfo[0]; // No multislot capability.
112 } else {
113 MultislotClass result = sMultislotInfo[multislotclass-1];
114 devassert((int)result.mMultislotClass == multislotclass);
115 return result;
116 }
117}
118
119MSInfo::MSInfo(uint32_t tlli)
120 : msDebugId(++Stats.countMSInfo),

Callers 1

msAssignChannelsMethod · 0.85

Calls 1

sgsnGetMultislotClassMethod · 0.80

Tested by

no test coverage detected