summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-08 13:20:30 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-08 13:20:30 +0000
commite752bef0b0699c6adc109d1e7100349557e36367 (patch)
tree9fc40580d11fccd5a167bc8a4ec6daa58e3d66a6 /package
parent28ee75241aa9a45a6727afde001907ca9c8bc2b3 (diff)
add some ioctl stuff from wrt54gs.2.06 source
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@582 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/openwrt/include/wlioctl.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/package/openwrt/include/wlioctl.h b/package/openwrt/include/wlioctl.h
index 6768955e9..84b6272e4 100644
--- a/package/openwrt/include/wlioctl.h
+++ b/package/openwrt/include/wlioctl.h
@@ -459,6 +459,48 @@ typedef struct {
struct ether_addr ea;
} scb_val_t;
+/* callback registration data types */
+
+typedef struct _mac_event_params {
+ uint msg;
+ struct ether_addr *addr;
+ uint result;
+ uint status;
+ uint auth_type;
+} mac_event_params_t;
+
+typedef struct _mic_error_params {
+ struct ether_addr *ea;
+ bool group;
+ bool flush_txq;
+} mic_error_params_t;
+
+typedef enum _wl_callback {
+ WL_MAC_EVENT_CALLBACK = 0,
+ WL_LINK_UP_CALLBACK,
+ WL_LINK_DOWN_CALLBACK,
+ WL_MIC_ERROR_CALLBACK,
+ WL_LAST_CALLBACK
+} wl_callback_t;
+
+typedef struct _callback {
+ void (*fn)(void *, void *);
+ void *context;
+} callback_t;
+
+typedef struct _scan_callback {
+ void (*fn)(void *);
+ void *context;
+} scan_callback_t;
+
+/* used to register an arbitrary callback via the IOCTL interface */
+typedef struct _set_callback {
+ int index;
+ callback_t callback;
+} set_callback_t;
+
+
+
/* Event data type */
typedef struct {
uint msg; /* Message (see below) */
@@ -838,6 +880,7 @@ typedef struct wlc_rev_info {
#define WLC_SET_WET 231
#define WLC_GET_KEY_PRIMARY 235
#define WLC_SET_KEY_PRIMARY 236
+#define WLC_SCAN_WITH_CALLBACK 240
#define WLC_WDS_GET_REMOTE_HWADDR 246 /* currently handled in wl_linux.c/wl_vx.c */
#define WLC_SET_CS_SCAN_TIMER 248
#define WLC_GET_CS_SCAN_TIMER 249