Andrea Arcangeli
a322ea2bdd
macloader: Drop semcove case and enum
...
The all_ranges structure has one entry less than MAX_TYPES because
semcove type is not defined there, but there's no check for NULL and if
the mac isn't found it segfaults.
Change-Id: Ie218ea0a82b03992085db0f2d1cfc7079e7415a0
7 years ago
Christopher N. Hesse
afec0fd5ca
macloader: Rework mac address half classification
...
* Don't return in the middle of a function, set the
return code and jump to the exit point instead.
* Close file pointers properly.
* Unify error code returns (macloader will always exit
with -1 on error now).
Change-Id: I32ac8ea85fcbabed45550a4d176ac999eff9f9e9
8 years ago
Christopher N. Hesse
c7dd07ab9b
macloader: Add another SEMCO mac address half
...
http://hwaddress.com/?q=d8%3Ac4%3Ae9
Change-Id: I80c7be6cb61d8eea1be72118104b1cd2397d48a1
8 years ago
Paul Keith
59ba89e0d0
macloader: Allow overriding non-standard paths
...
* Follow the rest of the hals
Change-Id: Ib3bf92b3e975d96586802a1473c589fc9536ad40
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
8 years ago
Paul Keith
6e35157bd6
macloader: Decapitalize wisol MAC addresses
...
* These should be lowercase, otherwise detection will fail
Change-Id: Ibdc446a8f9c58bc9b17b8e9c6cfd5f4894f7ecff
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
8 years ago
Fevax
e9b45af8b2
Added new murata, semco and wisol addresses
...
(needed by exynos8890 - bcm4359)
Change-Id: Ie890d8b1370650a81b52a6c1b2c5cf5cd896b500
8 years ago
RGIB
a7a0ecde63
macloader : add n5120 murata MAC address
...
Change-Id: I617eba4abfe9ad2088aaeb740e4deccce439c569
8 years ago
RGIB
1bf77699ec
macloader : add n5110 murata MAC address
...
Change-Id: Ie7f71f4e678eb69b7d1942f5ee31127b2091715a
8 years ago
Kevin F. Haggerty
1d09298e09
macloader: Yet another SEMCO3RD OUI
...
* OUI types verified by comparing dump of CIS against VID table
in kernel source
Change-Id: I3bf4d778c88445da6e47854b8bd90d1d7433d337
8 years ago
Kevin F. Haggerty
b21592339a
macloader: Add even more OUIs
...
* OUI types verified by comparing dump of CIS against VID table
in kernel source
* Added: 84:38:38, fc:db:b3
Change-Id: I2909d03be8cf7227ce008e981106705866571898
8 years ago
Kevin F. Haggerty
d4ee359c8d
macloader: Add additional OUIs
...
* Fix c0:bd:d1 while we are at it
* All OUI types verified by comparing dump of CIS against VID table
in kernel source
Change-Id: I7858d8c03a176b9b37798bf0112f4b460ff2c9de
8 years ago
Cal Archer
ae50788ed7
macloader: add another semco3rd OUI for klte (SM-G900F)
...
Change-Id: I669a4cab0fba92c4ac5d4bd1c496634d06aa4a40
(cherry picked from commit c2104657697740a9bee31dc03bf0c5134ff93e6c)
8 years ago
RGIB
02302a7eef
macloader: add n5100 murata wifi address
...
Change-Id: I8296825f3d17bfdaccfa990d45598652ab40faaa
9 years ago
Christopher N. Hesse
438a27e268
macloader: Add another SEMCO mac address half
...
Order existing SEMCO values while we're at it.
Change-Id: I2b5c8a3e458cbcf41ea78eb953117a6779db2cc0
9 years ago
Caio Schnepper
02c9c719ad
macloader: include errno.h
...
Fix build
Change-Id: Ib60f66ddc2065bc92cd32e507ae9f3a5023f54c2
9 years ago
Andreas Schneider
3ff947b8d3
macloader: Add support to set nvram calibration file.
...
Change-Id: I0eb99ad6084eb8cd4452a91b13dd75384785f5a8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit e283a09f99d0cbad2cf8b903ffe2da1c3e44663e)
10 years ago
Andreas Schneider
ca1a0eea09
macloader: Fix log output and return value.
...
Change-Id: Ic306ffd3bffc274406b9c11513a7ae2794578d16
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
10 years ago
Andreas Schneider
c7212d0365
macloader: Use a variable for device type.
...
Change-Id: Ice29862ad6aaa15b07d6341893b0b8f1c65152e6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
10 years ago
Andreas Schneider
3a73bd3f2e
macloader: Close file when we don't need it anymore.
...
Change-Id: Ib539b45ed45f1dcfc9eea0475adb9c50d17011b5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
10 years ago
Andreas Schneider
7558b9dda2
macloader: Use fchown() to change owner of the cidfile.
...
Change-Id: Ia99c0ae414366d91b6d0112f50b00630749ea570
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
10 years ago
Andreas Schneider
7f517d761b
macloader: Use fchmod() to change permissions.
...
Change-Id: I18bca9b022dba24403867b022af9d858aad72bc4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
10 years ago
Andreas Schneider
2b601794d7
macloader: Fix build warning with LOG defines.
...
They need to be set before log.h is included or we will get redefiniton
warnings.
Change-Id: I87e971d32139a807998468e6a781e1f39dd7a8e5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
10 years ago
Andreas Schneider
60f13f21c2
macloader: Make macloader a C file.
...
Change-Id: I6bd4a324cc5a596f2900027615b83f73736d12e0
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
10 years ago
Christopher N. Hesse
0ed5670246
macloader: Add SEMCO for BCM43569
...
Values were read out from a Galaxy Note N910C (Exynos) running stock KK.
Change-Id: I3ce4bd360633642c423482070d18af035f50d8d9
10 years ago
Andreas Schneider
f3ba720f70
macloader: Add SEMCO3RD and WISOL for BCM4354.
...
Change-Id: I165f10d339acaa700f3e4e4b6f4576fda1da09a5
10 years ago
MarcKe
d973a7b153
macloader: add new murata vendor ID
...
Change-Id: If5968a040e9e8969985f0f307eb4a8a44486d94d
10 years ago
MarcKe
a81d58b35e
macloader: add semcosh mac address
...
Change-Id: I510291c32c76140c5b37eb87a00600e8b4c034c0
macloader: add new semcosh mac addresses
Change-Id: I879e224a32acadde09762f5101a776869ee56f67
10 years ago
JustArchi
300ecd3b0b
samsung: Correct macloader values
...
Detect is done on lower-case, so these records didn't work previously at all
Change-Id: I9a58e89679ed8aeeb194fde60cb90576aac79388
10 years ago
Liam Alford
2fccbdf3da
Added more MAC's for murata.
...
After finding some i9300 devices who's MAC addresses were missing from the list, i searched for all murata MAC's and thought it wise to add them.
Change-Id: I9e0db81cf2b1809b37b1660a4763db82699dd452
11 years ago
golcheck
5b41817b96
add 1c:99:4c as murata mac
...
Change-Id: I0e60940524f7e4ef652cdb2a625507d1f983b6dc
11 years ago
Dan Pasanen
708e7c7a15
macloader: add f0:27:65 as a murata mac
...
Change-Id: I895dc26a71253b31a2ee8ae27feeb5feb673a9bf
11 years ago
XpLoDWilD
731cd20c21
macloader: Add one more MAC prefix to murata
...
Change-Id: Ib00ca46608a834a6a5f1e2fe996d56ec98d1ffab
11 years ago
Ethan Chen
727dea780a
macloader: add additional SEMCOSH mac addr
...
Change-Id: Ib0015cb828772b1723d596442df3f7e2e298c2a2
11 years ago
Javier Ferrer
76ea68e99b
Fix macloader buffer overflow
...
Fixes this log entries.
I/macloader( 1915): Writing murata to /data/.cid.info
D/macloader( 1915): Setting permissions on /data/.cid.info
F/libc ( 1915): *** vsprintf buffer overflow detected ***
F/libc ( 1915): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 1915 (macloader)
Change-Id: I1ccb257bada18030de76a2be40477172993ca2a0
12 years ago
Daniel Hillenbrand
2b8a73fc5c
macloader: add 5C:F8:A1 to murata
...
Change-Id: Ic328f6265ce9e5b09b86843b5dea3f1594d09163
12 years ago
codeworkx
84f8d1d325
macloader: add new murata value
...
Change-Id: I1bc1aa88ec58f406fcf46a7c118ef577d6b0fb78
12 years ago
R. Andrew Ohana
81c2e053c0
Move macloader to hardware/samsung
...
There are quite a few different Samsung devices which require
macloader (many of which are just using binary blobs), so we
should move it out of the device trees.
Change-Id: I9e23fca0ba4c17da328cace801a92fa57df9a862
12 years ago