mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-22 02:12:27 +03:00
* adding libertas * config issue * quiet mode for bootloader git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9768 3c298f89-4303-0410-b956-a3cf2f4a3e73
18 lines
359 B
C
18 lines
359 B
C
#ifndef __COMPAT_H
|
|
#define __COMPAT_H
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/types.h>
|
|
|
|
#define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
|
|
#define DECLARE_MAC_BUF(var) char var[18] __maybe_unused
|
|
|
|
static inline char *print_mac(char *buf, const u8 *addr)
|
|
{
|
|
sprintf(buf, MAC_FMT,
|
|
addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
|
|
return buf;
|
|
}
|
|
|
|
#endif
|