summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-01-03 19:29:28 +0100
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2015-01-03 19:29:28 +0100
commitf3ba720f70047c4924024f3867bb50ade67bc2a2 (patch)
tree1423e6b285d7a1570d6b923b11bcb9dec8360828
parentd973a7b153998e766f8792101458dc19a30c2ffe (diff)
downloadandroid_hardware_samsung-f3ba720f70047c4924024f3867bb50ade67bc2a2.tar.gz
android_hardware_samsung-f3ba720f70047c4924024f3867bb50ade67bc2a2.tar.bz2
android_hardware_samsung-f3ba720f70047c4924024f3867bb50ade67bc2a2.zip
macloader: Add SEMCO3RD and WISOL for BCM4354.
Change-Id: I165f10d339acaa700f3e4e4b6f4576fda1da09a5
-rw-r--r--macloader/macloader.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/macloader/macloader.cpp b/macloader/macloader.cpp
index c4c012d..918ec07 100644
--- a/macloader/macloader.cpp
+++ b/macloader/macloader.cpp
@@ -33,7 +33,9 @@ enum Type {
NONE,
MURATA,
SEMCOSH,
- SEMCOVE
+ SEMCOVE,
+ SEMCO3RD,
+ WISOL
};
int main() {
@@ -97,6 +99,16 @@ int main() {
type = SEMCOSH;
}
+ /* semco3rd */
+ if (strncasecmp(mac_addr_half, "f4:09:d8", 9) == 0) {
+ type = SEMCO3RD;
+ }
+
+ /* wisol */
+ if (strncasecmp(mac_addr_half, "48:5A:3F", 9) == 0) {
+ type = WISOL;
+ }
+
if (type != NONE) {
/* open cid file */
cidfile = fopen(CID_PATH, "w");
@@ -125,6 +137,14 @@ int main() {
ALOGI("Writing semcove to %s\n", CID_PATH);
ret = fputs("semcove", cidfile);
break;
+ case SEMCO3RD:
+ ALOGI("Writing semco3rd to %s\n", CID_PATH);
+ ret = fputs("semco3rd", cidfile);
+ break;
+ case WISOL:
+ ALOGI("Writing wisol to %s\n", CID_PATH);
+ ret = fputs("wisol", cidfile);
+ break;
}
if (ret != 0) {