fix some madwifi-testing bugs
[openwrt.git] / package / libertas / src / compat.h
1 #ifndef __COMPAT_H
2 #define __COMPAT_H
3
4 #include <linux/kernel.h>
5 #include <linux/types.h>
6
7 #define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
8 #define DECLARE_MAC_BUF(var) char var[18] __maybe_unused
9
10 static inline char *print_mac(char *buf, const u8 *addr)
11 {
12 sprintf(buf, MAC_FMT,
13 addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
14 return buf;
15 }
16
17 #endif
This page took 0.048081 seconds and 5 git commands to generate.