@@ -74,7 +74,7 @@ void NrPhyUe::handleAirFrame(cMessage *msg)
7474 }
7575
7676 // Check if the eNodeB is a secondary node
77- MacNodeId masterNodeId = binder_->getMasterNode (sourceId);
77+ MacNodeId masterNodeId = binder_->getMasterNodeOrSelf (sourceId);
7878 if (masterNodeId != sourceId) {
7979 // The node has a master node, check if the other PHY of this UE is attached to that master.
8080 // If not, the UE cannot attach to this secondary node and the packet must be deleted.
@@ -219,7 +219,7 @@ void NrPhyUe::triggerHandover()
219219 EV << " Candidate RSSI: " << candidateMasterRssi_ << endl;
220220 EV << " ############" << endl;
221221
222- MacNodeId masterNode = binder_->getMasterNode (candidateMasterId_);
222+ MacNodeId masterNode = binder_->getMasterNodeOrSelf (candidateMasterId_);
223223 if (masterNode != candidateMasterId_) { // The candidate is a secondary node
224224 if (otherPhy_->getMasterId () == masterNode) {
225225 MacNodeId otherNodeId = otherPhy_->getMacNodeId ();
@@ -259,7 +259,7 @@ void NrPhyUe::triggerHandover()
259259
260260 if (otherPhy_->getMasterId () != NODEID_NONE) {
261261 // Check if there are secondary nodes connected
262- MacNodeId otherMasterId = binder_->getMasterNode (otherPhy_->getMasterId ());
262+ MacNodeId otherMasterId = binder_->getMasterNodeOrSelf (otherPhy_->getMasterId ());
263263 if (otherMasterId == masterId_) {
264264 EV << NOW << " NrPhyUe::triggerHandover - Forcing detachment from " << otherPhy_->getMasterId () << " which was a secondary node to " << masterId_ << " . Delay this handover." << endl;
265265
@@ -445,7 +445,7 @@ void NrPhyUe::deleteOldBuffers(MacNodeId masterId)
445445 // Delete PDCP Entities
446446 // delete pdcpEntities[nodeId_] at old master
447447 // in case of NR dual connectivity, the master can be a secondary node, hence we have to delete PDCP entities residing in the node's master
448- MacNodeId masterNodeId = binder_->getMasterNode (masterId);
448+ MacNodeId masterNodeId = binder_->getMasterNodeOrSelf (masterId);
449449 LtePdcpEnb *masterPdcp = check_and_cast<LtePdcpEnb *>(binder_->getPdcpByNodeId (masterNodeId));
450450 masterPdcp->deleteEntities (nodeId_);
451451
0 commit comments