Kevin F. Haggerty
523971c63b
macloader: Stop allowing G and O write perms to the cidfile
...
* Only macloader should ever write to this, but others (e.g,
libbt-vendor.so) read from it. 0644 is more than enough.
Change-Id: I3d2fb3dfec1ba81c9c382ed18c93114e641df4a0
2017-12-28 09:09:41 -07:00
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
2017-07-26 18:02:32 -06:00
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
2017-02-10 20:29:26 +00:00
Christopher N. Hesse
c7dd07ab9b
macloader: Add another SEMCO mac address half
...
http://hwaddress.com/?q=d8%3Ac4%3Ae9
Change-Id: I80c7be6cb61d8eea1be72118104b1cd2397d48a1
2017-02-09 18:44:07 +00:00
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>
2017-02-09 18:41:18 +00:00
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>
2017-02-07 15:17:17 -06:00
Fevax
e9b45af8b2
Added new murata, semco and wisol addresses
...
(needed by exynos8890 - bcm4359)
Change-Id: Ie890d8b1370650a81b52a6c1b2c5cf5cd896b500
2017-01-25 15:03:54 -03:00
RGIB
a7a0ecde63
macloader : add n5120 murata MAC address
...
Change-Id: I617eba4abfe9ad2088aaeb740e4deccce439c569
2016-12-11 06:12:14 -08:00
RGIB
1bf77699ec
macloader : add n5110 murata MAC address
...
Change-Id: Ie7f71f4e678eb69b7d1942f5ee31127b2091715a
2016-12-10 02:41:35 -08:00
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
2016-11-30 05:38:41 -07:00
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
2016-11-06 12:45:26 -07:00
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
2016-10-27 11:36:46 -07:00
Cal Archer
ae50788ed7
macloader: add another semco3rd OUI for klte (SM-G900F)
...
Change-Id: I669a4cab0fba92c4ac5d4bd1c496634d06aa4a40
(cherry picked from commit c2104657697740a9bee31dc03bf0c5134ff93e6c)
2016-10-17 04:34:33 -07:00
RGIB
02302a7eef
macloader: add n5100 murata wifi address
...
Change-Id: I8296825f3d17bfdaccfa990d45598652ab40faaa
2016-03-11 15:59:30 +01:00
Christopher N. Hesse
438a27e268
macloader: Add another SEMCO mac address half
...
Order existing SEMCO values while we're at it.
Change-Id: I2b5c8a3e458cbcf41ea78eb953117a6779db2cc0
2016-03-01 09:09:48 -08:00
Caio Schnepper
02c9c719ad
macloader: include errno.h
...
Fix build
Change-Id: Ib60f66ddc2065bc92cd32e507ae9f3a5023f54c2
2015-10-10 02:14:28 -03:00
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)
2015-02-16 21:59:25 +00:00
Andreas Schneider
ca1a0eea09
macloader: Fix log output and return value.
...
Change-Id: Ic306ffd3bffc274406b9c11513a7ae2794578d16
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:44:27 -08:00
Andreas Schneider
c7212d0365
macloader: Use a variable for device type.
...
Change-Id: Ice29862ad6aaa15b07d6341893b0b8f1c65152e6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:44:04 -08:00
Andreas Schneider
3a73bd3f2e
macloader: Close file when we don't need it anymore.
...
Change-Id: Ib539b45ed45f1dcfc9eea0475adb9c50d17011b5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:42:03 -08:00
Andreas Schneider
7558b9dda2
macloader: Use fchown() to change owner of the cidfile.
...
Change-Id: Ia99c0ae414366d91b6d0112f50b00630749ea570
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:41:51 -08:00
Andreas Schneider
7f517d761b
macloader: Use fchmod() to change permissions.
...
Change-Id: I18bca9b022dba24403867b022af9d858aad72bc4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:41:41 -08:00
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>
2015-01-27 14:41:20 -08:00
Andreas Schneider
60f13f21c2
macloader: Make macloader a C file.
...
Change-Id: I6bd4a324cc5a596f2900027615b83f73736d12e0
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-27 14:41:08 -08:00