From 3a2d4d31f87891ba4ef10c1dbaf03ae12739d131 Mon Sep 17 00:00:00 2001
From: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: Fri, 4 Aug 2023 13:38:16 +0200
Subject: [PATCH] simplify EASYMESH_VENDOR_EXT_OUI definition and usage

Pass -DEASYMESH_VENDOR_EXT_OUI=0xAABBCC during build to override the
default vendor OUI with the passed value. Here, AABBCC are hex
characters representing the three octets of vendor OUI.
---
 src/host.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/host.h b/src/host.h
index 1a42d87..6f094df 100644
--- a/src/host.h
+++ b/src/host.h
@@ -29,8 +29,8 @@
 #define HOST_AGE_TIMER_DEFAULT 1440
 
 
-#ifndef EASYMESH_VENDOR_EXT_OUI
-#define EASYMESH_VENDOR_EXT_OUI         (uint8_t *)"\x00\x11\x22"
+#ifndef EASYMESH_VENDOR_EXT_OUI_DEFAULT
+#define EASYMESH_VENDOR_EXT_OUI_DEFAULT		0xB456FA  /* IOPSYS OUI */
 #endif
 
 #define MIN_VENDOR_TLV_LEN 5
-- 
GitLab