diff options
author | ryd <ryd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-12-15 19:59:21 +0000 |
---|---|---|
committer | ryd <ryd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-12-15 19:59:21 +0000 |
commit | 7a4bdab85080df3e4a39ed3cf6d7e5ee325a26d2 (patch) | |
tree | a49d4db44f0bf8b2497d1450ef5507605fde6c7a /package/libertas/src/compat.h | |
parent | c7c0768dc837f9f8cc0eb7b876ba8255c4a9b55d (diff) |
* adding network config for olpc
* adding libertas
* config issue
* quiet mode for bootloader
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9768 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libertas/src/compat.h')
-rw-r--r-- | package/libertas/src/compat.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/package/libertas/src/compat.h b/package/libertas/src/compat.h new file mode 100644 index 000000000..26c636343 --- /dev/null +++ b/package/libertas/src/compat.h @@ -0,0 +1,17 @@ +#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 |