From d8587dc1c5256cebc880e91920849b1bcffb8a4f Mon Sep 17 00:00:00 2001 From: Kirill Andreev Date: Fri, 18 Sep 2009 14:22:15 +0400 Subject: [PATCH] Mesh: fixed peer link reopening - always overwrite peerLinkId. --- src/devices/mesh/dot11s/peer-link.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/devices/mesh/dot11s/peer-link.cc b/src/devices/mesh/dot11s/peer-link.cc index 98be146ab..825685397 100644 --- a/src/devices/mesh/dot11s/peer-link.cc +++ b/src/devices/mesh/dot11s/peer-link.cc @@ -241,10 +241,7 @@ PeerLink::Close (uint16_t localLinkId, uint16_t peerLinkId, PmpReasonCode reason void PeerLink::OpenAccept (uint16_t localLinkId, IeConfiguration conf, Mac48Address peerMp) { - if (m_peerLinkId == 0) - { - m_peerLinkId = localLinkId; - } + m_peerLinkId = localLinkId; m_configuration = conf; if (m_peerMeshPointAddress != Mac48Address::GetBroadcast ()) {