X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/f38b3364e09900f0f1787b77e9009dc9013f3970..25ea0c2afb9795e9ba7a5446af302e522c3b606f:/package/openwrt/include/wlioctl.h?ds=sidebyside diff --git a/package/openwrt/include/wlioctl.h b/package/openwrt/include/wlioctl.h index d0f633b79..d5ef11f9e 100644 --- a/package/openwrt/include/wlioctl.h +++ b/package/openwrt/include/wlioctl.h @@ -28,6 +28,8 @@ #define PACKED #endif +#define WLC_ESSID_MAX_SIZE 32 + #define WL_NUMRATES 255 /* max # of rates in a rateset */ typedef struct wl_rateset { @@ -212,7 +214,7 @@ typedef struct wl_rm_rep { #define WLC_MAX_IV_SIZE 16 /* max size of any IV */ #define WLC_EXT_IV_FLAG (1<<5) /* flag to indicate IV is > 4 bytes */ #define WLC_MAX_DEFAULT_KEYS 4 /* # of default WEP keys */ -#define WLC_MAX_KEYS 16 /* # of WEP keys */ +#define WLC_MAX_KEYS 54 /* Max # of WEP keys */ #define WLC_WEP1_KEY_SIZE 5 /* max size of any WEP key */ #define WLC_WEP1_KEY_HEX_SIZE 10 /* size of WEP key in hex. */ #define WLC_WEP128_KEY_SIZE 13 /* max size of any WEP key */ @@ -457,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) */ @@ -836,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 @@ -1042,6 +1087,8 @@ typedef struct wlc_rev_info { #define ABO_OFF 0 /* force afterburner off */ #define ABO_ON 1 /* force afterburner on */ +#define GMODE_AFTERBURNER 6 + #undef PACKED #endif /* _wlioctl_h_ */