mirror of
https://github.com/PentHertz/OpenBTS.git
synced 2026-04-26 10:30:36 +00:00
limit GPRS channel allocation to number actually requested, without this all of CN is filled with GPRS if we request anything from it
This commit is contained in:
parent
f6dd22cb5c
commit
2992951933
1 changed files with 5 additions and 1 deletions
|
|
@ -368,10 +368,14 @@ static unsigned getChanGroup(vector<ChanType*>& chanList, ChanType **results)
|
|||
|
||||
// Allocate a group of channels for gprs.
|
||||
// See comments at getChanGroup.
|
||||
int GSMConfig::getTCHGroup(int /* unused groupSize*/,TCHFACCHLogicalChannel **results)
|
||||
int GSMConfig::getTCHGroup(int groupSize,TCHFACCHLogicalChannel **results)
|
||||
{
|
||||
ScopedLock lock(mLock);
|
||||
int nfound = getChanGroup<TCHFACCHLogicalChannel>(mTCHPool,results);
|
||||
// limit to channels actually requested
|
||||
if (groupSize < nfound) {
|
||||
nfound = groupSize;
|
||||
}
|
||||
for (int i = 0; i < nfound; i++) {
|
||||
results[i]->lcGetL1()->setGPRS(true,NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue