summaryrefslogtreecommitdiff
path: root/cleopatre/devkit/mt7601udrv/include/wsc_tlv.h
diff options
context:
space:
mode:
authorFisher Cheng2013-05-24 16:54:08 +0800
committerJulien Lacour2013-10-01 12:12:48 +0200
commit8c1eb022607c0aba81d93b961abbfb47a2dcc325 (patch)
tree13b1cd55172e93b3d1e5baa7141ba259fd71b0af /cleopatre/devkit/mt7601udrv/include/wsc_tlv.h
parent9e4d9d72dcac9686f1b4720e46e3bb88f6375a1e (diff)
cleo/devkit: add MTK MT7601U drv source code, refs #4011
- Enable Wireless LAN and Wireless extension in linux26.config
Diffstat (limited to 'cleopatre/devkit/mt7601udrv/include/wsc_tlv.h')
-rw-r--r--cleopatre/devkit/mt7601udrv/include/wsc_tlv.h280
1 files changed, 280 insertions, 0 deletions
diff --git a/cleopatre/devkit/mt7601udrv/include/wsc_tlv.h b/cleopatre/devkit/mt7601udrv/include/wsc_tlv.h
new file mode 100644
index 0000000000..43eb906642
--- /dev/null
+++ b/cleopatre/devkit/mt7601udrv/include/wsc_tlv.h
@@ -0,0 +1,280 @@
+/*
+ ***************************************************************************
+ * Ralink Tech Inc.
+ * 4F, No. 2 Technology 5th Rd.
+ * Science-based Industrial Park
+ * Hsin-chu, Taiwan, R.O.C.
+ *
+ * (c) Copyright 2002-2006, Ralink Technology, Inc.
+ *
+ * All rights reserved. Ralink's source code is an unpublished work and the
+ * use of a copyright notice does not imply otherwise. This source code
+ * contains confidential trade secret material of Ralink Tech. Any attemp
+ * or participation in deciphering, decoding, reverse engineering or in any
+ * way altering the source code is stricitly prohibited, unless the prior
+ * written consent of Ralink Technology, Inc. is obtained.
+ ***************************************************************************
+
+ Module Name:
+ wsc_tlv.h
+
+ Abstract:
+
+ Revision History:
+ Who When What
+ -------- ---------- ----------------------------------------------
+ Name Date Modification logs
+ JuemingChen 06-09-11 Initial
+*/
+
+#ifndef __WSC_TLV_H__
+#define __WSC_TLV_H__
+
+/* Data Element Definitions */
+#define WSC_ID_AP_CHANNEL 0x1001
+#define WSC_ID_ASSOC_STATE 0x1002
+#define WSC_ID_AUTH_TYPE 0x1003
+#define WSC_ID_AUTH_TYPE_FLAGS 0x1004
+#define WSC_ID_AUTHENTICATOR 0x1005
+#define WSC_ID_CONFIG_METHODS 0x1008
+#define WSC_ID_CONFIG_ERROR 0x1009
+#define WSC_ID_CONF_URL4 0x100A
+#define WSC_ID_CONF_URL6 0x100B
+#define WSC_ID_CONN_TYPE 0x100C
+#define WSC_ID_CONN_TYPE_FLAGS 0x100D
+#define WSC_ID_CREDENTIAL 0x100E
+#define WSC_ID_ENCR_TYPE 0x100F
+#define WSC_ID_ENCR_TYPE_FLAGS 0x1010
+#define WSC_ID_DEVICE_NAME 0x1011
+#define WSC_ID_DEVICE_PWD_ID 0x1012
+#define WSC_ID_E_HASH1 0x1014
+#define WSC_ID_E_HASH2 0x1015
+#define WSC_ID_E_SNONCE1 0x1016
+#define WSC_ID_E_SNONCE2 0x1017
+#define WSC_ID_ENCR_SETTINGS 0x1018
+#define WSC_ID_ENROLLEE_NONCE 0x101A
+#define WSC_ID_FEATURE_ID 0x101B
+#define WSC_ID_IDENTITY 0x101C
+#define WSC_ID_IDENTITY_PROOF 0x101D
+#define WSC_ID_KEY_WRAP_AUTH 0x101E
+#define WSC_ID_KEY_IDENTIFIER 0x101F
+#define WSC_ID_MAC_ADDR 0x1020
+#define WSC_ID_MANUFACTURER 0x1021
+#define WSC_ID_MSG_TYPE 0x1022
+#define WSC_ID_MODEL_NAME 0x1023
+#define WSC_ID_MODEL_NUMBER 0x1024
+#define WSC_ID_NW_INDEX 0x1026
+#define WSC_ID_NW_KEY 0x1027
+#define WSC_ID_NW_KEY_INDEX 0x1028
+#define WSC_ID_NEW_DEVICE_NAME 0x1029
+#define WSC_ID_NEW_PWD 0x102A
+#define WSC_ID_OOB_DEV_PWD 0x102C
+#define WSC_ID_OS_VERSION 0x102D
+#define WSC_ID_POWER_LEVEL 0x102F
+#define WSC_ID_PSK_CURRENT 0x1030
+#define WSC_ID_PSK_MAX 0x1031
+#define WSC_ID_PUBLIC_KEY 0x1032
+#define WSC_ID_RADIO_ENABLED 0x1033
+#define WSC_ID_REBOOT 0x1034
+#define WSC_ID_REGISTRAR_CURRENT 0x1035
+#define WSC_ID_REGISTRAR_ESTBLSHD 0x1036
+#define WSC_ID_REGISTRAR_LIST 0x1037
+#define WSC_ID_REGISTRAR_MAX 0x1038
+#define WSC_ID_REGISTRAR_NONCE 0x1039
+#define WSC_ID_REQ_TYPE 0x103A
+#define WSC_ID_RESP_TYPE 0x103B
+#define WSC_ID_RF_BAND 0x103C
+#define WSC_ID_R_HASH1 0x103D
+#define WSC_ID_R_HASH2 0x103E
+#define WSC_ID_R_SNONCE1 0x103F
+#define WSC_ID_R_SNONCE2 0x1040
+#define WSC_ID_SEL_REGISTRAR 0x1041
+#define WSC_ID_SERIAL_NUM 0x1042
+#define WSC_ID_SC_STATE 0x1044
+#define WSC_ID_SSID 0x1045
+#define WSC_ID_TOT_NETWORKS 0x1046
+#define WSC_ID_UUID_E 0x1047
+#define WSC_ID_UUID_R 0x1048
+#define WSC_ID_VENDOR_EXT 0x1049
+#define WSC_ID_VERSION 0x104A
+#define WSC_ID_X509_CERT_REQ 0x104B
+#define WSC_ID_X509_CERT 0x104C
+#define WSC_ID_EAP_IDENTITY 0x104D
+#define WSC_ID_MSG_COUNTER 0x104E
+#define WSC_ID_PUBKEY_HASH 0x104F
+#define WSC_ID_REKEY_KEY 0x1050
+#define WSC_ID_KEY_LIFETIME 0x1051
+#define WSC_ID_PERM_CFG_METHODS 0x1052
+#define WSC_ID_SEL_REG_CFG_METHODS 0x1053
+#define WSC_ID_PRIM_DEV_TYPE 0x1054
+#define WSC_ID_SEC_DEV_TYPE_LIST 0x1055
+#define WSC_ID_PORTABLE_DEVICE 0x1056
+#define WSC_ID_AP_SETUP_LOCKED 0x1057
+#define WSC_ID_APP_LIST 0x1058
+#define WSC_ID_EAP_TYPE 0x1059
+#define WSC_ID_INIT_VECTOR 0x1060
+#define WSC_ID_KEY_PROVIDED_AUTO 0x1061
+#define WSC_ID_8021X_ENABLED 0x1062
+#define WSC_ID_APPSESSIONKEY 0x1063
+#define WSC_ID_WEPTRANSMITKEY 0x1064
+
+/* WFA Vendor Extension Subelements */
+#define WFA_EXT_ID_VERSION2 0x00
+#define WFA_EXT_ID_AUTHORIZEDMACS 0x01
+#define WFA_EXT_ID_NW_KEY_SHAREABLE 0x02
+#define WFA_EXT_ID_REQ_TO_ENROLL 0x03
+#define WFA_EXT_ID_SETTINGS_DELAY_TIME 0x04
+
+/* Association states */
+#define WSC_ASSOC_NOT_ASSOCIATED 0
+#define WSC_ASSOC_CONN_SUCCESS 1
+#define WSC_ASSOC_CONFIG_FAIL 2
+#define WSC_ASSOC_ASSOC_FAIL 3
+#define WSC_ASSOC_IP_FAIL 4
+
+/* Authentication types */
+#define WSC_AUTHTYPE_OPEN 0x0001
+#define WSC_AUTHTYPE_WPAPSK 0x0002
+#define WSC_AUTHTYPE_SHARED 0x0004
+#define WSC_AUTHTYPE_WPA 0x0008
+#define WSC_AUTHTYPE_WPA2 0x0010
+#define WSC_AUTHTYPE_WPA2PSK 0x0020
+#define WSC_AUTHTYPE_WPANONE 0x0080
+
+/* Config methods */
+#define WSC_CONFMET_USBA 0x0001
+#define WSC_CONFMET_ETHERNET 0x0002
+#define WSC_CONFMET_LABEL 0x0004
+#define WSC_CONFMET_DISPLAY 0x0008
+#define WSC_CONFMET_EXT_NFC_TOK 0x0010
+#define WSC_CONFMET_INT_NFC_TOK 0x0020
+#define WSC_CONFMET_NFC_INTF 0x0040
+#define WSC_CONFMET_PBC 0x0080
+#define WSC_CONFMET_KEYPAD 0x0100
+
+/* WSC error messages */
+#define WSC_ERROR_NO_ERROR 0
+#define WSC_ERROR_OOB_INT_READ_ERR 1
+#define WSC_ERROR_DECRYPT_CRC_FAIL 2
+#define WSC_ERROR_CHAN24_NOT_SUPP 3
+#define WSC_ERROR_CHAN50_NOT_SUPP 4
+#define WSC_ERROR_SIGNAL_WEAK 5
+#define WSC_ERROR_NW_AUTH_FAIL 6
+#define WSC_ERROR_NW_ASSOC_FAIL 7
+#define WSC_ERROR_NO_DHCP_RESP 8
+#define WSC_ERROR_FAILED_DHCP_CONF 9
+#define WSC_ERROR_IP_ADDR_CONFLICT 10
+#define WSC_ERROR_FAIL_CONN_REGISTRAR 11
+#define WSC_ERROR_MULTI_PBC_DETECTED 12
+#define WSC_ERROR_ROGUE_SUSPECTED 13
+#define WSC_ERROR_DEVICE_BUSY 14
+#define WSC_ERROR_SETUP_LOCKED 15
+#define WSC_ERROR_MSG_TIMEOUT 16
+#define WSC_ERROR_REG_SESSION_TIMEOUT 17
+#define WSC_ERROR_DEV_PWD_AUTH_FAIL 18
+#define WSC_ERROR_DO_MULTI_PBC_DETECTION 251
+#define WSC_ERROR_CAN_NOT_ALLOCMEM 252
+#define WSC_ERROR_WANTING_FIELD 253
+#define WSC_ERROR_HASH_FAIL 254
+#define WSC_ERROR_HMAC_FAIL 255
+
+/* Connection types */
+#define WSC_CONNTYPE_ESS 0x01
+#define WSC_CONNTYPE_IBSS 0x02
+
+/* Device password ID */
+#define WSC_DEVICEPWDID_DEFAULT 0x0000
+#define WSC_DEVICEPWDID_USER_SPEC 0x0001
+#define WSC_DEVICEPWDID_MACHINE_SPEC 0x0002
+#define WSC_DEVICEPWDID_REKEY 0x0003
+#define WSC_DEVICEPWDID_PUSH_BTN 0x0004
+#define WSC_DEVICEPWDID_REG_SPEC 0x0005
+
+/* Device type */
+#define WSC_DEVICETYPE_COMPUTER "Computer"
+#define WSC_DEVICETYPE_AP "Access_Point"
+#define WSC_DEVICETYPE_ROUTER_AP "Router_AP"
+#define WSC_DEVICETYPE_PRINTER "Printer"
+#define WSC_DEVICETYPE_PRINTER_BRIDGE "Printer_Brigde"
+#define WSC_DEVICETYPE_ELECT_PIC_FRAME "Electronic_Picture_Frame"
+#define WSC_DEVICETYPE_DIG_AUDIO_RECV "Digital_Audio_Receiver"
+#define WSC_DEVICETYPE_WIN_MCE "Windows_Media_Center_Extender"
+#define WSC_DEVICETYPE_WIN_MOBILE "Windows_Mobile"
+#define WSC_DEVICETYPE_PVR "Personal_Video_Recorder"
+#define WSC_DEVICETYPE_VIDEO_STB "Video_STB"
+#define WSC_DEVICETYPE_PROJECTOR "Projector"
+#define WSC_DEVICETYPE_IP_TV "IP_TV"
+#define WSC_DEVICETYPE_DIG_STILL_CAM "Digital_Still_Camera"
+#define WSC_DEVICETYPE_PHONE "Phone"
+#define WSC_DEVICETYPE_VOID_PHONE "VoIP_Phone"
+#define WSC_DEVICETYPE_GAME_CONSOLE "Game_console"
+#define WSC_DEVICETYPE_OTHER "Other"
+
+/* Encryption type */
+#define WSC_ENCRTYPE_NONE 0x0001
+#define WSC_ENCRTYPE_WEP 0x0002
+#define WSC_ENCRTYPE_TKIP 0x0004
+#define WSC_ENCRTYPE_AES 0x0008
+
+/* WSC Message Types */
+#define WSC_ID_BEACON 0x01
+#define WSC_ID_PROBE_REQ 0x02
+#define WSC_ID_PROBE_RESP 0x03
+#define WSC_ID_MESSAGE_M1 0x04
+#define WSC_ID_MESSAGE_M2 0x05
+#define WSC_ID_MESSAGE_M2D 0x06
+#define WSC_ID_MESSAGE_M3 0x07
+#define WSC_ID_MESSAGE_M4 0x08
+#define WSC_ID_MESSAGE_M5 0x09
+#define WSC_ID_MESSAGE_M6 0x0A
+#define WSC_ID_MESSAGE_M7 0x0B
+#define WSC_ID_MESSAGE_M8 0x0C
+#define WSC_ID_MESSAGE_ACK 0x0D
+#define WSC_ID_MESSAGE_NACK 0x0E
+#define WSC_ID_MESSAGE_DONE 0x0F
+#define WSC_ID_MESSAGE_EAP_REQ_ID 0x21
+#define WSC_ID_MESSAGE_EAP_REQ_START 0x22
+#define WSC_ID_MESSAGE_EAP_FAIL 0x23
+#define WSC_ID_MESSAGE_UNKNOWN 0xFF
+
+/* Device Type categories for primary and secondary device types */
+#define WSC_DEVICE_TYPE_CAT_COMPUTER 1
+#define WSC_DEVICE_TYPE_CAT_INPUT_DEVICE 2
+#define WSC_DEVICE_TYPE_CAT_PRINTER 3
+#define WSC_DEVICE_TYPE_CAT_CAMERA 4
+#define WSC_DEVICE_TYPE_CAT_STORAGE 5
+#define WSC_DEVICE_TYPE_CAT_NW_INFRA 6
+#define WSC_DEVICE_TYPE_CAT_DISPLAYS 7
+#define WSC_DEVICE_TYPE_CAT_MM_DEVICES 8
+#define WSC_DEVICE_TYPE_CAT_GAME_DEVICES 9
+#define WSC_DEVICE_TYPE_CAT_TELEPHONE 10
+
+/* Device Type sub categories for primary and secondary device types */
+#define WSC_DEVICE_TYPE_SUB_CAT_COMP_PC 1
+#define WSC_DEVICE_TYPE_SUB_CAT_COMP_SERVER 2
+#define WSC_DEVICE_TYPE_SUB_CAT_COMP_MEDIA_CTR 3
+#define WSC_DEVICE_TYPE_SUB_CAT_PRTR_PRINTER 1
+#define WSC_DEVICE_TYPE_SUB_CAT_PRTR_SCANNER 2
+#define WSC_DEVICE_TYPE_SUB_CAT_CAM_DGTL_STILL 1
+#define WSC_DEVICE_TYPE_SUB_CAT_STOR_NAS 1
+#define WSC_DEVICE_TYPE_SUB_CAT_NW_AP 1
+#define WSC_DEVICE_TYPE_SUB_CAT_NW_ROUTER 2
+#define WSC_DEVICE_TYPE_SUB_CAT_NW_SWITCH 3
+#define WSC_DEVICE_TYPE_SUB_CAT_DISP_TV 1
+#define WSC_DEVICE_TYPE_SUB_CAT_DISP_PIC_FRAME 2
+#define WSC_DEVICE_TYPE_SUB_CAT_DISP_PROJECTOR 3
+#define WSC_DEVICE_TYPE_SUB_CAT_MM_DAR 1
+#define WSC_DEVICE_TYPE_SUB_CAT_MM_PVR 2
+#define WSC_DEVICE_TYPE_SUB_CAT_MM_MCX 3
+#define WSC_DEVICE_TYPE_SUB_CAT_GAM_XBOX 1
+#define WSC_DEVICE_TYPE_SUB_CAT_GAM_XBOX_360 2
+#define WSC_DEVICE_TYPE_SUB_CAT_GAM_PS 3
+#define WSC_DEVICE_TYPE_SUB_CAT_PHONE_WM 1
+
+typedef struct _WSC_TLV_0B {
+ /*USHORT tag;*/
+ USHORT len;
+} WSC_TLV_0B, *PWSC_TLV_0B;
+
+#endif /* __WSC_TLV_H__ */
+