View | Details | Raw Unified | Return to bug 2505
Collapse All | Expand All

(-)a/src/wifi/model/wifi-information-element-vector.cc (-3 / +5 lines)
 Lines 80-92    Link Here 
80
WifiInformationElementVector::Deserialize (Buffer::Iterator start, Buffer::Iterator end)
80
WifiInformationElementVector::Deserialize (Buffer::Iterator start, Buffer::Iterator end)
81
{
81
{
82
  uint32_t size = start.GetDistanceFrom (end);
82
  uint32_t size = start.GetDistanceFrom (end);
83
  while (size > 0)
83
  uint32_t remaining = size;
84
  while (remaining > 0)
84
    {
85
    {
85
      uint32_t deserialized = DeserializeSingleIe (start);
86
      uint32_t deserialized = DeserializeSingleIe (start);
86
      start.Next (deserialized);
87
      start.Next (deserialized);
87
      NS_ASSERT (deserialized <= size);
88
      NS_ASSERT (deserialized <= remaining);
88
      size -= deserialized;
89
      remaining -= deserialized;
89
    }
90
    }
91
  NS_ASSERT_MSG (remaining == 0, "Error in deserialization");
90
  return size;
92
  return size;
91
}
93
}
92
94

Return to bug 2505