Commit 45252163 authored by Jan Möbius's avatar Jan Möbius

Ignore non ethernet devices

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10811 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 326a351e
......@@ -212,8 +212,10 @@ bool LicenseManager::authenticate() {
currentMac +=":";
}
// Ignore non ethernet macs
if ( (currentMac.count(":") == 5) ) {
// Ignore non ethernet macs with more than 5 blocks
// Only check ethernet and wireless interfaces
if ( (currentMac.count(":") == 5) &&
( pCurrAddresses->IfType == IF_TYPE_IEEE80211 || pCurrAddresses->IfType == IF_TYPE_ETHERNET_CSMACD ) ) {
// Cleanup and remember mac adress
currentMac = currentMac.toAscii().toUpper();
currentMac = currentMac.remove(":");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment