aboutsummaryrefslogtreecommitdiffstats
path: root/package/libertas/src/compat.h
diff options
context:
space:
mode:
authorJens Muecke <jens@nons.de>2007-12-15 19:59:21 +0000
committerJens Muecke <jens@nons.de>2007-12-15 19:59:21 +0000
commit7eeb4e6f7f10c17c889abe4b905a909bb9f58af0 (patch)
treed2cd4d28e2b5c18464c71f4a9492a4eccc85b842 /package/libertas/src/compat.h
parentb03f211098f218b9e09d93a0056aec27a7a1e452 (diff)
downloadupstream-7eeb4e6f7f10c17c889abe4b905a909bb9f58af0.tar.gz
upstream-7eeb4e6f7f10c17c889abe4b905a909bb9f58af0.tar.bz2
upstream-7eeb4e6f7f10c17c889abe4b905a909bb9f58af0.zip
* adding network config for olpc * adding libertas * config issue * quiet mode for bootloader
SVN-Revision: 9768
Diffstat (limited to 'package/libertas/src/compat.h')
-rw-r--r--package/libertas/src/compat.h17
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 0000000000..26c636343e
--- /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