AllocateUid/Search seem to not calculate correctly mode uids.

This commit is contained in:
Mathieu Lacage
2008-03-21 09:09:10 -07:00
parent 91cf6bfccd
commit 621b84064a

View File

@@ -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++)
{