[DIRECTFB] Placeholder
[openwrt/mini2440.git] / package / libertas / src / compat.h
blob26c636343ea147106df389942f54a85041a61e9d
1 #ifndef __COMPAT_H
2 #define __COMPAT_H
4 #include <linux/kernel.h>
5 #include <linux/types.h>
7 #define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
8 #define DECLARE_MAC_BUF(var) char var[18] __maybe_unused
10 static inline char *print_mac(char *buf, const u8 *addr)
12 sprintf(buf, MAC_FMT,
13 addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
14 return buf;
17 #endif