Jay
2024-11-08 02722a3f9eca857ce7fffea352e9f7ee692a1b71
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package com.iailab.netsdk.lib.structure;
 
import com.iailab.netsdk.lib.NetSDKLib;
 
/**
 * @author 251823
 * @description 单个WLAN配置
 * @date 2023/03/16 11:15:26
 */
public class CFG_WLAN_INFO extends NetSDKLib.SdkStructure {
    /**
     * Wlan名称, 只能获取不能修改
     */
    public byte[] szWlanName = new byte[32];
    /**
     * WIFI网卡使能开关, TRUE打开, FALSE关闭
     */
    public int bEnable;
    /**
     * 网络名称(SSID)
     */
    public byte[] szSSID = new byte[36];
    /**
     * 手动连接开关, TRUE手动连接, FALSE手动断开
     */
    public int bConnectEnable;
    /**
     * 自动连接开关, TRUE不自动连接, FALSE自动连接, IPC无意义
     */
    public int bLinkEnable;
    /**
     * 连接模式, 0: auto, 1: adhoc, 2: Infrastructure
     */
    public int nLinkMode;
    /**
     * 加密模式, 0: off, 1: on, 2: WEP64, 3: WEP128, 4: WPA-PSK-TKIP, 5: WPA-PSK-AES, 6:
     * WPA2-PSK-TKIP, 7: WPA2-PSK-AES, 8: WPA-TKIP, 9: WPA-AES, 10: WPA2-TKIP, 11:
     * WPA2-AES, 12: AUTO
     * 
     *  二代byAuthMode  , byEncrAlgr  与三代映射关系
    * Authentication认证方式    DataEncryption数据加密方式    Encryption加密模式                        
    * OPEN                    NONE                        "On"                             
    * OPEN                    WEP                         "WEP-OPEN"                            
    * SHARD                   WEP                         "WEP-SHARED"                        
    * WPA                     TKIP                        "WPA-TKIP"                            
    * WPA-PSK                 TKIP                        "WPA-PSK-TKIP"                        
    * WPA2                    TKIP                        "WPA2-TKIP"                            
    * WPA2-PSK                TKIP                        "WPA2-PSK-TKIP"                        
    * WPA                     AES(CCMP)                   "WPA-AES"                            
    * WPA-PSK                 AES(CCMP)                   "WPA-PSK-AES"                        
    * WPA2                    AES(CCMP)                   "WPA2-AES"                            
    * WPA2-PSK                AES(CCMP)                   "WPA2-PSK-AES"                    
    * WPA                     TKIP+AES( mix Mode)         "WPA-TKIP"或者"WPA-AES"                
    * WPA-PSK                 TKIP+AES( mix Mode)         "WPA-PSK-TKIP"或者"WPA-PSK-AES"        
    * WPA2                    TKIP+AES( mix Mode)         "WPA2-TKIP"或者"WPA2-AES"            
    * WPA2-PSK                TKIP+AES( mix Mode)         "WPA2-PSK-TKIP"或者"WPA2-PSK-AES"            
    * WPA3-SAE                AES(CCMP)                    "WPA3-SAE-CCMP"                        
     */
    public int nEncryption;
    /**
     * 认证方式, 暂时没用 {@link com.iailab.netsdk.lib.enumeration.EM_CFG_WIRELESS_AUTHENTICATION}
     */
    public int emAuthentication;
    /**
     * 数据加密方式, 暂时没用 {@link com.iailab.netsdk.lib.enumeration.EM_CFG_WIRELESS_DATA_ENCRYPT}
     */
    public int emDataEncryption;
    /**
     * 密码类型, 0: Hex, 1: ASCII
     */
    public int nKeyType;
    /**
     * 秘钥索引, 取值0~3
     */
    public int nKeyID;
    /**
     * 四组密码
     */
    public byte[] szKeys = new byte[4 * 128];
    /**
     * 密码是否已经设置
     */
    public int bKeyFlag;
    /**
     * EAP
     */
    public CFG_WLAN_EAP stuEap = new CFG_WLAN_EAP();
    /**
     * Network
     */
    public CFG_WLAN_NETWORK stuNetwork = new CFG_WLAN_NETWORK();
 
    public CFG_WLAN_INFO() {
    }
}