From 621b84064ae3eaec0eccc0fe65a1394ba1d58e26 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Fri, 21 Mar 2008 09:09:10 -0700 Subject: [PATCH] AllocateUid/Search seem to not calculate correctly mode uids. --- src/devices/wifi/wifi-mode.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/devices/wifi/wifi-mode.cc b/src/devices/wifi/wifi-mode.cc index 4c6449eff..96b7685c4 100644 --- a/src/devices/wifi/wifi-mode.cc +++ b/src/devices/wifi/wifi-mode.cc @@ -156,7 +156,7 @@ WifiModeFactory::CreateQam (std::string uniqueName, bool WifiModeFactory::Search (std::string name, WifiMode *mode) { - uint32_t j = 0; + uint32_t j = 1; for (WifiModeItemList::const_iterator i = m_itemList.begin (); i != m_itemList.end (); i++) { @@ -167,13 +167,14 @@ WifiModeFactory::Search (std::string name, WifiMode *mode) } j++; } + *mode = WifiMode (0); return false; } uint32_t WifiModeFactory::AllocateUid (std::string uniqueUid) { - uint32_t j = 0; + uint32_t j = 1; for (WifiModeItemList::const_iterator i = m_itemList.begin (); i != m_itemList.end (); i++) {