mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
util: added macros to print mac addresses
This commit is contained in:
parent
62bdf6c482
commit
ce0d5858da
@ -32,6 +32,9 @@
|
||||
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
|
||||
(type *)( (char *)__mptr - offsetof(type,member) );})
|
||||
|
||||
#define MAC "%02x:%02x:%02x:%02x:%02x:%02x"
|
||||
#define MAC_STR(a) a[0], a[1], a[2], a[3], a[4], a[5]
|
||||
|
||||
const char *util_ssid_to_utf8(size_t len, const uint8_t *ssid);
|
||||
bool util_ssid_is_utf8(size_t len, const uint8_t *ssid);
|
||||
const char *util_address_to_string(const uint8_t *addr);
|
||||
|
Loading…
Reference in New Issue
Block a user