55 #ifndef __WIFI_AP_HAL_H__
56 #define __WIFI_AP_HAL_H__
58 #include <wifi_common_hal.h>
70 UCHAR cli_MACAddress[6];
71 BOOL cli_AuthenticationState;
72 UINT cli_LastDataDownlinkRate;
73 UINT cli_LastDataUplinkRate;
74 INT cli_SignalStrength;
75 UINT cli_Retransmissions;
78 CHAR cli_OperatingStandard[64];
79 CHAR cli_OperatingChannelBandwidth[64];
81 CHAR cli_InterferenceSources[64];
82 ULONG cli_DataFramesSentAck;
83 ULONG cli_DataFramesSentNoAck;
85 ULONG cli_BytesReceived;
89 UINT cli_Disassociations;
90 UINT cli_AuthenticationFailures;
96 INT RadiusServerRetries;
97 INT RadiusServerRequestTimeout;
100 INT PMKCacheInterval;
101 INT MaxAuthenticationAttempts;
102 INT BlacklistTableTimeout;
103 INT IdentityRequestRetryInterval;
104 INT QuietPeriodAfterFailedAuthentication;
105 UCHAR RadiusSecret[64];
133 INT wifi_setRadioCtsProtectionEnable(INT apIndex, BOOL enable);
134 INT wifi_setRadioObssCoexistenceEnable(INT apIndex, BOOL enable);
135 INT wifi_setRadioFragmentationThreshold(INT apIndex, UINT threshold);
136 INT wifi_setRadioSTBCEnable(INT radioIndex, BOOL STBC_Enable);
137 INT wifi_getRadioAMSDUEnable(INT radioIndex, BOOL *output_bool);
138 INT wifi_setRadioAMSDUEnable(INT radioIndex, BOOL amsduEnable);
139 INT wifi_getRadioTxChainMask(INT radioIndex, INT *output_int);
140 INT wifi_setRadioTxChainMask(INT radioIndex, INT numStreams);
141 INT wifi_getRadioRxChainMask(INT radioIndex, INT *output_int);
142 INT wifi_setRadioRxChainMask(INT radioIndex, INT numStreams);
148 INT wifi_getRadioReverseDirectionGrantEnable(INT radioIndex, BOOL *output_bool);
149 INT wifi_setRadioReverseDirectionGrantEnable(INT radioIndex, BOOL enable);
150 INT wifi_getRadioDeclineBARequestEnable(INT radioIndex, BOOL *output_bool);
151 INT wifi_setRadioDeclineBARequestEnable(INT radioIndex, BOOL enable);
152 INT wifi_getRadioAutoBlockAckEnable(INT radioIndex, BOOL *output_bool);
153 INT wifi_setRadioAutoBlockAckEnable(INT radioIndex, BOOL enable);
154 INT wifi_getRadio11nGreenfieldEnable(INT radioIndex, BOOL *output_bool);
155 INT wifi_setRadio11nGreenfieldEnable(INT radioIndex, BOOL enable);
156 INT wifi_getRadioIGMPSnoopingEnable(INT radioIndex, BOOL *output_bool);
157 INT wifi_setRadioIGMPSnoopingEnable(INT radioIndex, BOOL enable);
158 INT wifi_getRadioDfsSupport(INT radioIndex, UINT *output_uint);
159 INT wifi_getRadioDfsEnable(INT radioIndex, BOOL *output_bool);
160 INT wifi_setRadioDfsEnable(INT radioIndex, BOOL enabled);
169 INT wifi_createAp(INT apIndex, INT radioIndex, CHAR *essid, BOOL hideSsid);
170 INT wifi_deleteAp(INT apIndex);
171 INT wifi_getApName(INT apIndex, CHAR *output_string);
173 INT wifi_getApBeaconType(INT apIndex, CHAR *output_string);
174 INT wifi_setApBeaconType(INT apIndex, CHAR *beaconTypeString);
175 INT wifi_setApBeaconInterval(INT apIndex, INT beaconInterval);
176 INT wifi_setApRtsThreshold(INT apIndex, UINT threshold);
178 INT wifi_getApWpaEncryptoinMode(INT apIndex, CHAR *output_string);
179 INT wifi_setApWpaEncryptionMode(INT apIndex, CHAR *encMode);
180 INT wifi_removeApSecVaribles(INT apIndex);
181 INT wifi_disableApEncryption(INT apIndex);
182 INT wifi_setApAuthMode(INT apIndex, INT mode);
183 INT wifi_setApBasicAuthenticationMode(INT apIndex, CHAR *authMode);
185 INT wifi_kickApAssociatedDevice(INT apIndex, CHAR *client_mac);
187 INT wifi_getApRadioIndex(INT apIndex, INT *output_int);
188 INT wifi_setApRadioIndex(INT apIndex, INT radioIndex);
190 INT wifi_addApAclDevice(INT apIndex, CHAR *DeviceMacAddress);
191 INT wifi_delApAclDevice(INT apIndex, CHAR *DeviceMacAddress);
192 INT wifi_getApAclDeviceNum(INT apIndex, UINT *output_uint);
193 INT wifi_kickApAclAssociatedDevices(INT apIndex,BOOL enable);
194 INT wifi_setApMacAddressControlMode(INT apIndex, INT filterMode);
195 INT wifi_setApVlanEnable(INT apIndex, BOOL VlanEnabled);
197 INT wifi_setApVlanID(INT apIndex, INT vlanId);
198 INT wifi_getApBridgeInfo(INT index, CHAR *bridgeName, CHAR *
IP, CHAR *subnet);
199 INT wifi_setApBridgeInfo(INT apIndex, CHAR *bridgeName, CHAR *
IP, CHAR *subnet);
201 INT wifi_resetApVlanCfg(INT apIndex);
202 INT wifi_setApBridging(INT apIndex, BOOL bridgeEnable);
206 INT wifi_createHostApdConfig(INT apIndex, BOOL createWpsCfg);
207 INT wifi_startHostApd();
208 INT wifi_stopHostApd();
213 INT wifi_setApEnable(INT apIndex, BOOL enable);
214 INT wifi_getApEnable(INT apIndex, BOOL *output_bool);
217 INT wifi_getApStatus(INT apIndex, CHAR *output_string);
221 INT wifi_getApSsidAdvertisementEnable(INT apIndex, BOOL *output_bool);
222 INT wifi_setApSsidAdvertisementEnable(INT apIndex, BOOL enable);
227 INT wifi_getApRetryLimit(INT apIndex, UINT *output);
228 INT wifi_setApRetryLimit(INT apIndex, UINT number);
232 INT wifi_getApWMMCapability(INT apIndex, UINT *output);
236 INT wifi_getApUAPSDCapability(INT apIndex, UINT *output);
240 INT wifi_getApWmmEnable(INT apIndex, BOOL *output);
241 INT wifi_setApWmmEnable(INT apIndex, BOOL enable);
245 INT wifi_getApWmmUapsdEnable(INT apIndex, BOOL *output);
246 INT wifi_setApWmmUapsdEnable(INT apIndex, BOOL enable);
250 INT wifi_getApIsolationEnable(INT apIndex, BOOL *output);
251 INT wifi_setApIsolationEnable(INT apIndex, BOOL enable);
255 INT wifi_getApMaxAssociatedDevices(INT apIndex, UINT *output);
256 INT wifi_setApMaxAssociatedDevices(INT apIndex, UINT number);
260 INT wifi_getApAssociatedDevicesHighWatermarkThreshold(INT apIndex, UINT *output);
261 INT wifi_setApAssociatedDevicesHighWatermarkThreshold(INT apIndex, UINT Threshold);
265 INT wifi_getApAssociatedDevicesHighWatermarkThresholdReached(INT apIndex, UINT *output);
269 INT wifi_getApAssociatedDevicesHighWatermark(INT apIndex, UINT *output);
273 INT wifi_getApAssociatedDevicesHighWatermarkDate(INT apIndex,
ULONG *output_in_seconds);
296 INT wifi_getApSecurityModesSupported(INT apIndex, CHAR *output);
300 INT wifi_getApSecurityModeEnabled(INT apIndex, CHAR *output);
301 INT wifi_setApSecurityModeEnabled(INT apIndex, CHAR *encMode);
308 INT wifi_getApSecurityPreSharedKey(INT apIndex, CHAR *output_string);
309 INT wifi_setApSecurityPreSharedKey(INT apIndex, CHAR *preSharedKey);
313 INT wifi_getApSecurityKeyPassphrase(INT apIndex, CHAR *output_string);
314 INT wifi_setApSecurityKeyPassphrase(INT apIndex, CHAR *passPhrase);
323 INT wifi_setApSecurityReset(INT apIndex);
327 INT wifi_getApKeyPassphrase(INT apIndex, CHAR *output);
328 INT wifi_setApKeyPassphrase(INT apIndex, CHAR *passphase);
337 INT wifi_getApSecurityRadiusServer(INT apIndex, CHAR *IP_output, UINT *Port_output);
338 INT wifi_setApSecurityRadiusServer(INT apIndex, CHAR *IPAddress, UINT port);
359 INT wifi_getApWpsEnable(INT apIndex, BOOL *output_bool);
360 INT wifi_setApWpsEnable(INT apIndex, BOOL enableValue);
364 INT wifi_getApWpsConfigMethodsSupported(INT apIndex, CHAR *output);
368 INT wifi_getApWpsConfigMethodsEnabled(INT apIndex, CHAR *output_string);
369 INT wifi_setApWpsConfigMethodsEnabled(INT apIndex, CHAR *methodString);
371 INT wifi_getApWpsDevicePIN(INT apIndex,
ULONG *output_ulong);
372 INT wifi_setApWpsDevicePIN(INT apIndex,
ULONG pin);
373 INT wifi_getApWpsConfigurationState(INT apIndex, CHAR *output_string);
374 INT wifi_setApWpsEnrolleePin(INT apIndex, CHAR *pin);
375 INT wifi_setApWpsButtonPush(INT apIndex);
376 INT wifi_cancelApWPS(INT apIndex);
394 INT wifi_getApAssociatedDeviceDiagnosticResult(INT apIndex,
wifi_associated_dev_t **associated_dev_array, UINT *output_array_size);
404 typedef INT (*wifi_newApAssociatedDevice_callback)(INT apIndex,
wifi_associated_dev_t *associated_dev);
406 void wifi_newApAssociatedDevice_callback_register(wifi_newApAssociatedDevice_callback callback_proc);
412 INT wifi_setAccessNetworkType(INT apIndex, INT accessNetworkType);
537 #error "! __WIFI_AP_HAL_H__"