aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/package/base-files/include/wlutils.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-10-22 20:52:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-10-22 20:52:12 +0000
commit1b354a2df4f22d18483e4040b89c9e402cd80265 (patch)
treef7b9323cc0f3bb83edf53e7d2b24242b1a31052e /target/linux/package/base-files/include/wlutils.h
parent970b7bcc234e88327961c1dbb7544452b4f2f528 (diff)
downloadupstream-1b354a2df4f22d18483e4040b89c9e402cd80265.tar.gz
upstream-1b354a2df4f22d18483e4040b89c9e402cd80265.tar.bz2
upstream-1b354a2df4f22d18483e4040b89c9e402cd80265.zip
rename target/linux/package/openwrt to base-files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2261 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/package/base-files/include/wlutils.h')
-rw-r--r--target/linux/package/base-files/include/wlutils.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/target/linux/package/base-files/include/wlutils.h b/target/linux/package/base-files/include/wlutils.h
new file mode 100644
index 00000000000..07e2536ca3c
--- /dev/null
+++ b/target/linux/package/base-files/include/wlutils.h
@@ -0,0 +1,59 @@
+/*
+ * Broadcom wireless network adapter utility functions
+ *
+ * Copyright 2004, Broadcom Corporation
+ * All Rights Reserved.
+ *
+ * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
+ * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
+ * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
+ * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
+ *
+ * $Id$
+ */
+
+#ifndef _wlutils_h_
+#define _wlutils_h_
+
+#include <typedefs.h>
+#include <wlioctl.h>
+
+/*
+ * Pass a wlioctl request to the specified interface.
+ * @param name interface name
+ * @param cmd WLC_GET_MAGIC <= cmd < WLC_LAST
+ * @param buf buffer for passing in and/or receiving data
+ * @param len length of buf
+ * @return >= 0 if successful or < 0 otherwise
+ */
+extern int wl_ioctl(char *name, int cmd, void *buf, int len);
+
+/*
+ * Get the MAC (hardware) address of the specified interface.
+ * @param name interface name
+ * @param hwaddr 6-byte buffer for receiving address
+ * @return >= 0 if successful or < 0 otherwise
+ */
+extern int wl_hwaddr(char *name, unsigned char *hwaddr);
+
+/*
+ * Probe the specified interface.
+ * @param name interface name
+ * @return >= 0 if a Broadcom wireless device or < 0 otherwise
+ */
+extern int wl_probe(char *name);
+
+/*
+ * Set/Get named variable.
+ * @param name interface name
+ * @param var variable name
+ * @param val variable value/buffer
+ * @param len variable value/buffer length
+ * @return success == 0, failure != 0
+ */
+extern int wl_set_val(char *name, char *var, void *val, int len);
+extern int wl_get_val(char *name, char *var, void *val, int len);
+extern int wl_set_int(char *name, char *var, int val);
+extern int wl_get_int(char *name, char *var, int *val);
+
+#endif /* _wlutils_h_ */