|
|
@ -35,6 +35,7 @@ enum Type { |
|
|
|
SEMCOSH, |
|
|
|
SEMCOSH, |
|
|
|
SEMCOVE, |
|
|
|
SEMCOVE, |
|
|
|
SEMCO3RD, |
|
|
|
SEMCO3RD, |
|
|
|
|
|
|
|
SEMCO, |
|
|
|
WISOL |
|
|
|
WISOL |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -104,6 +105,12 @@ int main() { |
|
|
|
type = SEMCO3RD; |
|
|
|
type = SEMCO3RD; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* semco */ |
|
|
|
|
|
|
|
if (strncasecmp(mac_addr_half, "c0:bd:d1", 9) == 0 || |
|
|
|
|
|
|
|
strncasecmp(mac_addr_half, "51:f6:6b", 9) == 0) { |
|
|
|
|
|
|
|
type = SEMCO; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* wisol */ |
|
|
|
/* wisol */ |
|
|
|
if (strncasecmp(mac_addr_half, "48:5A:3F", 9) == 0) { |
|
|
|
if (strncasecmp(mac_addr_half, "48:5A:3F", 9) == 0) { |
|
|
|
type = WISOL; |
|
|
|
type = WISOL; |
|
|
@ -141,6 +148,11 @@ int main() { |
|
|
|
ALOGI("Writing semco3rd to %s\n", CID_PATH); |
|
|
|
ALOGI("Writing semco3rd to %s\n", CID_PATH); |
|
|
|
ret = fputs("semco3rd", cidfile); |
|
|
|
ret = fputs("semco3rd", cidfile); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case SEMCO: |
|
|
|
|
|
|
|
/* write semco to cid file */ |
|
|
|
|
|
|
|
ALOGI("Writing semco to %s\n", CID_PATH); |
|
|
|
|
|
|
|
ret = fputs("semco", cidfile); |
|
|
|
|
|
|
|
break; |
|
|
|
case WISOL: |
|
|
|
case WISOL: |
|
|
|
ALOGI("Writing wisol to %s\n", CID_PATH); |
|
|
|
ALOGI("Writing wisol to %s\n", CID_PATH); |
|
|
|
ret = fputs("wisol", cidfile); |
|
|
|
ret = fputs("wisol", cidfile); |
|
|
|