src/devices/wifi/supported-rates.cc
changeset 2077 8ff95ff1ed2e
parent 2026 db34213ef8b8
child 5265 7ca522b5c6c6
--- a/src/devices/wifi/supported-rates.cc	Tue Nov 06 13:30:40 2007 +0100
+++ b/src/devices/wifi/supported-rates.cc	Tue Nov 06 14:48:31 2007 +0100
@@ -117,7 +117,8 @@
 Buffer::Iterator 
 SupportedRates::Deserialize (Buffer::Iterator start)
 {
-  uint8_t elementId = start.ReadU8 ();
+  uint8_t elementId;
+  elementId = start.ReadU8 ();
   NS_ASSERT (elementId == ELEMENT_ID);
   m_nRates = start.ReadU8 ();
   NS_ASSERT (m_nRates <= 8);