diff options
author | Seungjae Yoo <seungjaeyoo@google.com> | 2023-05-03 09:23:22 +0900 |
---|---|---|
committer | Seungjae Yoo <seungjaeyoo@google.com> | 2023-05-03 09:23:22 +0900 |
commit | 0d4355030861d89d1f04bfedc955495ad51692a7 (patch) | |
tree | 032b9c64e54c77bc63ec48b0facf0c2558eb5239 | |
parent | aed623b43b083a41325352643b8da02d2cc88cbf (diff) | |
download | wmediumd-0d4355030861d89d1f04bfedc955495ad51692a7.tar.gz |
Change the structure of MAC_ARGS(a)android-u-beta-2-gpl
Bug: 273384914
Test: cvd env call WmediumdService ListStations ""
Change-Id: I033c41a4f62df36a424b9114aaa3d408cef4e0b2
-rw-r--r-- | wmediumd/wmediumd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wmediumd/wmediumd.h b/wmediumd/wmediumd.h index 695f871..4632713 100644 --- a/wmediumd/wmediumd.h +++ b/wmediumd/wmediumd.h @@ -149,7 +149,7 @@ typedef uint64_t u64; #define TIME_ARGS(a) ((unsigned long long)(a)->tv_sec), ((unsigned long long)(a)->tv_nsec/1000) #define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x" -#define MAC_ARGS(a) a[0],a[1],a[2],a[3],a[4],a[5] +#define MAC_ARGS(a) a[0]&0xff,a[1]&0xff,a[2]&0xff,a[3]&0xff,a[4]&0xff,a[5]&0xff #ifndef min #define min(x,y) ((x) < (y) ? (x) : (y)) |