On Sun, Feb 14, 2016 at 12:07:19PM +0100, Harald Welte wrote:
Who is this Mister PCI anyway? ;)
heh, interesting
question: often, there are two bts pointers around, namely the gsm_subscriber_connection->bts as well as the lchan->ts->trx->bts
I should have said: there are often two bts pointers *in libbsc*, since in libmsc on my cscn branch, the gsm_subscriber_connection->bts as well as the ->lchan are already #ifdef'd away.
I would assume that both [bts] pointers are the same in all cases.
When I created OpenBSC, we only had the lchan->ts->trx->bts pointers, and we had the subscriber point directly to the lchan. IIRC, Holger later introduced the subscriber_connection when he created OsmoBSC.
ok, nice, I understand.
That comment in gsm48_handle_paging_resp() (libbsc) sounds a bit like more than one BTS could be involved: /* Stop paging on the bts we received the paging response */ and it uses lchan->...bts first, but conn->bts at the bottom. (But nm, this function is not relevant for the MSC-split anyway.)
~Neels