RDK-B
wifi_hal_ap.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _wifi_trafficStats
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  _wifi_HS2_OperatorNameDuple_t
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  wifi_eapol_key_frame_t
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  _wifi_radius_setting_t
 RADIUS Server information. More...
 
struct  _wifi_associated_dev
 
struct  wifi_InterworkingElement_t
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  _wifi_GASConfiguration_t
 
struct  _wifi_key_multi_psk
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 
struct  __attribute__
 Wifi RADIUS Settings. More...
 

Macros

#define WIFI_ETH_TYPE_IP   0x0800
 
#define WIFI_ETH_TYPE_ARP   0x0806
 
#define WIFI_ETH_TYPE_REVARP   0x8035
 
#define WIFI_ETH_TYPE_VLAN   0x8100
 
#define WIFI_ETH_TYPE_LOOPBACK   0x9000
 
#define WIFI_ETH_TYPE_IP6   0x86DD
 
#define WIFI_ETH_TYPE_EAPOL   0x888e
 
#define GAS_CFG_TYPE_SUPPORTED   1
 
#define WIFI_AP_MAX_WPSPIN_LEN   9
 
#define WIFI_AP_MAX_SSID_LEN   33
 
#define WIFI_BRIDGE_NAME_LEN   32
 

Typedefs

typedef struct _wifi_trafficStats wifi_trafficStats_t
 
typedef struct _wifi_radius_setting_t wifi_radius_setting_t
 RADIUS Server information. More...
 
typedef struct _wifi_associated_dev wifi_associated_dev_t
 
typedef INT(* wifi_newApAssociatedDevice_callback) (INT apIndex, wifi_associated_dev_t *associated_dev)
 
typedef INT(* wifi_apDisassociatedDevice_callback) (INT apIndex, char *MAC, INT event_type)
 This call back will be invoked when new wifi client disassociates from Access Point.
More...
 
typedef INT(* wifi_apDeAuthEvent_callback) (int ap_index, char *mac, int reason)
 This call back will be invoked when DeAuth Event (reason 2 wrong password) comes from client. More...
 
typedef void(* wifi_received8021xFrame_callback) (unsigned int ap_index, mac_address_t sta, wifi_eapol_type_t type, void *data, unsigned int len)
 
typedef void(* wifi_sent8021xFrame_callback) (unsigned int ap_index, mac_address_t sta, wifi_eapol_type_t type, void *data, unsigned int len)
 
typedef void(* wifi_receivedAuthFrame_callback) (unsigned int ap_index, mac_address_t sta, void *data, unsigned int len)
 
typedef void(* wifi_sentAuthFrame_callback) (unsigned int ap_index, mac_address_t sta, void *data, unsigned int len)
 
typedef void(* wifi_receivedAssocReqFrame_callback) (unsigned int ap_index, mac_address_t sta, void *data, unsigned int len)
 
typedef void(* wifi_sentAssocRspFrame_callback) (unsigned int ap_index, mac_address_t sta, void *data, unsigned int len)
 
typedef INT(* wifi_receivedMgmtFrame_callback) (INT apIndex, UCHAR *sta_mac, UCHAR *frame, UINT len, wifi_mgmtFrameType_t type, wifi_direction_t dir)
 
typedef INT(* wifi_receivedDataFrame_callback) (INT apIndex, UCHAR *sta_mac, UCHAR *frame, UINT len, wifi_dataFrameType_t type, wifi_direction_t dir)
 
typedef INT(* wifi_csi_callback) (mac_address_t mac_addr, wifi_csi_data_t *csi_data)
 
typedef struct _wifi_key_multi_psk wifi_key_multi_psk_t
 
typedef UINT wifi_vap_index_t
 
typedef INT(* wifi_vapstatus_callback) (INT apIndex, wifi_vapstatus_t status)
 This call back will be invoked when VAP status changes. More...
 
typedef INT(* wifi_analytics_callback) (CHAR *fmt,...)
 This call back will be invoked when HAL wants to log catasrophic failures. More...
 

Enumerations

enum  wifi_ipv4_field_values_t {
  wifi_ipv4_field_values_not_available, wifi_ipv4_field_values_available, wifi_ipv4_field_values_post_restricted, wifi_ipv4_field_values_single_nated_private,
  wifi_ipv4_field_values_double_nated_private, wifi_ipv4_field_values_port_restricted_single_nated, wifi_ipv4_field_values_port_restricted_double_nated, wifi_ipv4_field_values_not_known
}
 
enum  wifi_ipv6_field_values_t { wifi_ipv6_field_values_not_available, wifi_ipv6_field_values_available, wifi_ipv6_field_values_not_known }
 
enum  wifi_auth_id_t {
  wifi_auth_id_reserved, wifi_auth_id_expanded_eap, wifi_auth_id_inner_auth_eap, wifi_auth_id_expanded_inner_auth_eap,
  wifi_auth_id_credential_type, wifi_auth_id_tunneled_eap
}
 
enum  wifi_HS2_Wan_Info_Link_Status_t { wifi_hs2_wan_info_reserved, wifi_hs2_wan_info_linkup, wifi_hs2_wan_info_linkdown, wifi_hs2_wan_info_link_in_test_state }
 
enum  wifi_HS2_ConnectionCapability_Status_t { wifi_hs2_connection_capability_closed, wifi_hs2_connection_capability_open, wifi_hs2_connection_capability_unknown, wifi_hs2_connection_capability_reserved }
 
enum  wifi_eap_code_t { wifi_eap_code_request = 1, wifi_eap_code_response, wifi_eap_code_success, wifi_eap_code_failure }
 
enum  wifi_eapol_type_t { wifi_eapol_type_eap_packet, wifi_eapol_type_eapol_start, wifi_eapol_type_eapol_logoff, wifi_eapol_type_eapol_key }
 
enum  wifi_direction_t { wifi_direction_unknown, wifi_direction_uplink, wifi_direction_downlink }
 
enum  wifi_neighborScanMode_t {
  WIFI_RADIO_SCAN_MODE_NONE = 0, WIFI_RADIO_SCAN_MODE_FULL, WIFI_RADIO_SCAN_MODE_ONCHAN, WIFI_RADIO_SCAN_MODE_OFFCHAN,
  WIFI_RADIO_SCAN_MODE_SURVEY
}
 Represents the wifi scan modes. More...
 
enum  wifi_eap_t {
  WIFI_EAP_TYPE_NONE = 0, WIFI_EAP_TYPE_IDENTITY = 1, WIFI_EAP_TYPE_NOTIFICATION = 2, WIFI_EAP_TYPE_NAK = 3,
  WIFI_EAP_TYPE_MD5 = 4, WIFI_EAP_TYPE_OTP = 5, WIFI_EAP_TYPE_GTC = 6, WIFI_EAP_TYPE_TLS = 13,
  WIFI_EAP_TYPE_LEAP = 17, WIFI_EAP_TYPE_SIM = 18, WIFI_EAP_TYPE_TTLS = 21, WIFI_EAP_TYPE_AKA = 23,
  WIFI_EAP_TYPE_PEAP = 25, WIFI_EAP_TYPE_MSCHAPV2 = 26, WIFI_EAP_TYPE_TLV = 33, WIFI_EAP_TYPE_TNC = 38,
  WIFI_EAP_TYPE_FAST = 43, WIFI_EAP_TYPE_PAX = 46, WIFI_EAP_TYPE_PSK = 47, WIFI_EAP_TYPE_SAKE = 48,
  WIFI_EAP_TYPE_IKEV2 = 49, WIFI_EAP_TYPE_AKA_PRIME = 50, WIFI_EAP_TYPE_GPSK = 51, WIFI_EAP_TYPE_PWD = 52,
  WIFI_EAP_TYPE_EKE = 53, WIFI_EAP_TYPE_TEAP = 55, WIFI_EAP_TYPE_EXPANDED = 254
}
 Eap types. More...
 
enum  wifi_mgmtFrameType_t {
  WIFI_MGMT_FRAME_TYPE_INVALID =-1, WIFI_MGMT_FRAME_TYPE_PROBE_REQ =0, WIFI_MGMT_FRAME_TYPE_PROBE_RSP =1, WIFI_MGMT_FRAME_TYPE_ASSOC_REQ =2,
  WIFI_MGMT_FRAME_TYPE_ASSOC_RSP =3, WIFI_MGMT_FRAME_TYPE_AUTH =4, WIFI_MGMT_FRAME_TYPE_DEAUTH =5, WIFI_MGMT_FRAME_TYPE_REASSOC_REQ =6,
  WIFI_MGMT_FRAME_TYPE_REASSOC_RSP =7, WIFI_MGMT_FRAME_TYPE_DISASSOC =8, WIFI_MGMT_FRAME_TYPE_ACTION =9
}
 
enum  wifi_dataFrameType_t { WIFI_DATA_FRAME_TYPE_INVALID =-1, WIFI_DATA_FRAME_TYPE_8021x }
 
enum  wifi_frameType_t { WIFI_FRAME_TYPE_INVALID =-1, WIFI_FRAME_TYPE_MGMT, WIFI_FRAME_TYPE_CTRL, WIFI_FRAME_TYPE_DATA }
 
enum  wifi_data_priority_t {
  wifi_data_priority_be, wifi_data_priority_bk, wifi_data_priority_ee, wifi_data_priority_ca,
  wifi_data_priority_vi, wifi_data_priority_vo, wifi_data_prioirty_ic, wifi_data_priority_nc
}
 
enum  wifi_onboarding_methods_t {
  WIFI_ONBOARDINGMETHODS_USBFLASHDRIVE = 0x0001, WIFI_ONBOARDINGMETHODS_ETHERNET = 0x0002, WIFI_ONBOARDINGMETHODS_LABEL = 0x0004, WIFI_ONBOARDINGMETHODS_DISPLAY = 0x0008,
  WIFI_ONBOARDINGMETHODS_EXTERNALNFCTOKEN = 0x0010, WIFI_ONBOARDINGMETHODS_INTEGRATEDNFCTOKEN = 0x0020, WIFI_ONBOARDINGMETHODS_NFCINTERFACE = 0x0040, WIFI_ONBOARDINGMETHODS_PUSHBUTTON = 0x0080,
  WIFI_ONBOARDINGMETHODS_PIN = 0x0100, WIFI_ONBOARDINGMETHODS_PHYSICALPUSHBUTTON = 0x0200, WIFI_ONBOARDINGMETHODS_PHYSICALDISPLAY = 0x0400, WIFI_ONBOARDINGMETHODS_VIRTUALPUSHBUTTON = 0x0800,
  WIFI_ONBOARDINGMETHODS_VIRTUALDISPLAY = 0x1000, WIFI_ONBOARDINGMETHODS_EASYCONNECT = 0x2000
}
 Wifi onboarding methods. More...
 
enum  wifi_mfp_cfg_t { wifi_mfp_cfg_disabled, wifi_mfp_cfg_optional, wifi_mfp_cfg_required }
 
enum  wifi_mac_filter_mode_t { wifi_mac_filter_mode_black_list, wifi_mac_filter_mode_white_list }
 
enum  wifi_security_key_type_t { wifi_security_key_type_psk, wifi_security_key_type_pass, wifi_security_key_type_sae, wifi_security_key_type_psk_sae }
 
enum  wifi_encryption_method_t { wifi_encryption_none, wifi_encryption_tkip = 1, wifi_encryption_aes, wifi_encryption_aes_tkip }
 Wifi encryption types. More...
 
enum  wifi_security_modes_t {
  wifi_security_mode_none = 0x00000001, wifi_security_mode_wep_64 = 0x00000002, wifi_security_mode_wep_128 = 0x00000004, wifi_security_mode_wpa_personal = 0x00000008,
  wifi_security_mode_wpa2_personal = 0x00000010, wifi_security_mode_wpa_wpa2_personal = 0x00000020, wifi_security_mode_wpa_enterprise = 0x00000040, wifi_security_mode_wpa2_enterprise = 0x00000080,
  wifi_security_mode_wpa_wpa2_enterprise = 0x00000100, wifi_security_mode_wpa3_personal = 0x00000200, wifi_security_mode_wpa3_transition = 0x00000400, wifi_security_mode_wpa3_enterprise = 0x00000800
}
 Wifi security mode types. More...
 
enum  wifi_vap_mode_t { wifi_vap_mode_ap, wifi_vap_mode_sta, wifi_vap_mode_monitor }
 
enum  wifi_vapstatus_t { wifi_vapstatus_down, wifi_vapstatus_up }
 VAP status possible values. More...
 

Functions

struct _wifi_HS2_OperatorNameDuple_t __attribute__ ((packed)) wifi_HS2_OperatorNameDuple_t
 
INT wifi_getWifiTrafficStats (INT apIndex, wifi_trafficStats_t *output_struct)
 Outputs more detailed traffic stats per AP. More...
 
INT wifi_factoryResetAP (int apIndex)
 Restore Access point paramters to default without change other AP nor Radio parameters (No need to reboot wifi) More...
 
INT wifi_deleteAp (INT apIndex)
 Deletes this access point entry on the hardware, clears all internal variables associated with this access point. More...
 
INT wifi_getApName (INT apIndex, CHAR *output_string)
 Outputs a 16 byte or less name associated with the Access Point. String buffer must be pre-allocated by the caller. More...
 
INT wifi_setApRtsThreshold (INT apIndex, UINT threshold)
 Sets the packet size threshold in bytes to apply RTS/CTS backoff rules. More...
 
INT wifi_removeApSecVaribles (INT apIndex)
 Deletes internal security variable settings for this access point. More...
 
INT wifi_disableApEncryption (INT apIndex)
 Changes the hardware settings to disable encryption on this access point. More...
 
INT wifi_getApNumDevicesAssociated (INT apIndex, ULONG *output_ulong)
 Outputs the number of stations associated per Access Point. More...
 
INT wifi_getApRadioIndex (INT apIndex, INT *output_int)
 Outputs the radio index for the specified access point. More...
 
INT wifi_delApAclDevices (INT apINdex)
 Get the ACL MAC list per Access Point. More...
 
INT wifi_getApAclDeviceNum (INT apIndex, UINT *output_uint)
 Outputs the number of devices in the filter list. More...
 
INT wifi_kickApAclAssociatedDevices (INT apIndex, BOOL enable)
 Enable kick for devices on acl black list. More...
 
INT wifi_setApMacAddressControlMode (INT apIndex, INT filterMode)
 Sets the mac address filter control mode. More...
 
INT wifi_getApMacAddressControlMode (INT apIndex, INT *output_filterMode)
 This function is to read the ACL mode. More...
 
INT wifi_setApVlanID (INT apIndex, INT vlanId)
 Sets the vlan ID for this access point to an internal environment variable. More...
 
INT wifi_resetApVlanCfg (INT apIndex)
 Reset the vlan configuration for this access point. More...
 
INT wifi_setApEnable (INT apIndex, BOOL enable)
 Sets the Access Point enable status variable for the specified access point. More...
 
INT wifi_getApEnable (INT apIndex, BOOL *output_bool)
 Outputs the setting of the internal variable that is set by wifi_setEnable(). More...
 
INT wifi_getApStatus (INT apIndex, CHAR *output_string)
 Outputs the AP "Enabled" "Disabled" status from driver. More...
 
INT wifi_getApSsidAdvertisementEnable (INT apIndex, BOOL *output_bool)
 Indicates whether or not beacons include the SSID name. More...
 
INT wifi_setApSsidAdvertisementEnable (INT apIndex, BOOL enable)
 Sets an internal variable for ssid advertisement. More...
 
INT wifi_getApRetryLimit (INT apIndex, UINT *output)
 Get the maximum number of retransmission for a packet. More...
 
INT wifi_setApRetryLimit (INT apIndex, UINT number)
 Set the maximum number of retransmission for a packet. More...
 
INT wifi_getApWmmEnable (INT apIndex, BOOL *output)
 Indicates whether WMM support is currently enabled. More...
 
INT wifi_setApWmmEnable (INT apIndex, BOOL enable)
 Enables/disables WMM on the hardwawre for this AP. enable==1, disable == 0. More...
 
INT wifi_getApWmmUapsdEnable (INT apIndex, BOOL *output)
 Indicates whether U-APSD support is currently enabled. More...
 
INT wifi_setApWmmUapsdEnable (INT apIndex, BOOL enable)
 Enables/disables Automatic Power Save Delivery on the hardwarwe for this Access Point. More...
 
INT wifi_setApWmmOgAckPolicy (INT apIndex, INT cla, BOOL ackPolicy)
 Sets the WMM ACK policy on the hardware. More...
 
INT wifi_getApIsolationEnable (INT apIndex, BOOL *output)
 Get Access Point isolation value. More...
 
INT wifi_setApIsolationEnable (INT apIndex, BOOL enable)
 Enables or disables device isolation. More...
 
INT wifi_setApBeaconRate (INT apIndex, char *sBeaconRate)
 Set Access Point Beacon TX rate. More...
 
INT wifi_getApBeaconRate (INT apIndex, char *output_BeaconRate)
 Get Access Point Beacon TX rate. More...
 
INT wifi_getApMaxAssociatedDevices (INT apIndex, UINT *output)
 Get maximum associated devices with the Access Point index. More...
 
INT wifi_setApMaxAssociatedDevices (INT apIndex, UINT number)
 Set maximum associated devices with the Access Point index. More...
 
INT wifi_setApSecurityReset (INT apIndex)
 When set to true, this AccessPoint instance's WiFi security settings are reset to their factory default values. More...
 
INT wifi_getApSecurityMFPConfig (INT apIndex, CHAR *output_string)
 To retrive the MFPConfig for each VAP. More...
 
INT wifi_setApSecurityMFPConfig (INT apIndex, CHAR *MfpConfig)
 the hal is used to set the MFP config for each VAP. More...
 
INT wifi_getApSecurityRadiusServer (INT apIndex, CHAR *IP_output, UINT *Port_output, CHAR *RadiusSecret_output)
 Get the IP Address and port number of the RADIUS server, which are used for WLAN security. More...
 
INT wifi_setApSecurityRadiusServer (INT apIndex, CHAR *IPAddress, UINT port, CHAR *RadiusSecret)
 Set the IP Address and port number of the RADIUS server, which are used for WLAN security. More...
 
INT wifi_getApSecuritySecondaryRadiusServer (INT apIndex, CHAR *IP_output, UINT *Port_output, CHAR *RadiusSecret_output)
 Get secondary IP Address, port number and RADIUS server. More...
 
INT wifi_setApSecuritySecondaryRadiusServer (INT apIndex, CHAR *IPAddress, UINT port, CHAR *RadiusSecret)
 Set secondary IP Address, port number and RADIUS server, which are used for WLAN security. More...
 
INT wifi_getApDASRadiusServer (INT apIndex, CHAR *IP_output, UINT *Port_output, CHAR *RadiusdasSecret_output)
 
INT wifi_setApDASRadiusServer (INT apIndex, CHAR *IPAddress, UINT port, CHAR *RadiusdasSecret)
 Set the IP Address and port number of the RADIUS DAS server, which are used for WLAN security. More...
 
INT wifi_enableGreylistAccessControl (BOOL enable)
 This function is to enable or disable grey list Access Control on all applicable VAP. More...
 
INT wifi_getApSecurityRadiusSettings (INT apIndex, wifi_radius_setting_t *output)
 Get Access Point security radius settings. More...
 
INT wifi_setApSecurityRadiusSettings (INT apIndex, wifi_radius_setting_t *input)
 Set Access Point security radius settings. More...
 
INT wifi_getApWpsConfigurationState (INT apIndex, CHAR *output_string)
 Get WPS configuration state. More...
 
INT wifi_setApWpsEnrolleePin (INT apIndex, CHAR *pin)
 Sets the WPS pin for this Access Point. More...
 
INT wifi_setApWpsButtonPush (INT apIndex)
 This function is called when the WPS push button has been pressed for this AP. More...
 
INT wifi_cancelApWPS (INT apIndex)
 Cancels WPS mode for this Access Point. More...
 
INT wifi_getApManagementFramePowerControl (INT apIndex, INT *output_dBm)
 Get the ApManagementFramePowerControl. More...
 
INT wifi_setApManagementFramePowerControl (INT apIndex, INT dBm)
 Sets the ApManagementFramePowerControl. More...
 
void wifi_newApAssociatedDevice_callback_register (wifi_newApAssociatedDevice_callback callback_proc)
 Callback registration function.
More...
 
void wifi_apDisassociatedDevice_callback_register (wifi_apDisassociatedDevice_callback callback_proc)
 Callback registration function.
More...
 
void wifi_apDeAuthEvent_callback_register (wifi_apDeAuthEvent_callback callback_proc)
 Callback registration function. More...
 
INT wifi_setInterworkingAccessNetworkType (INT apIndex, INT accessNetworkType)
 
INT wifi_getInterworkingAccessNetworkType (INT apIndex, UINT *output_uint)
 
INT wifi_getApInterworkingServiceEnable (INT apIndex, BOOL *output_bool)
 Get the Interworking Service enable/disable value for the AP. More...
 
INT wifi_setApInterworkingServiceEnable (INT apIndex, BOOL input_bool)
 Set the Interworking Service enable/disable value for the AP. More...
 
INT wifi_getApInterworkingElement (INT apIndex, wifi_InterworkingElement_t *output_struct)
 Get the Interworking Element that will be sent by the AP. More...
 
INT wifi_pushApInterworkingElement (INT apIndex, wifi_InterworkingElement_t *infoEelement)
 
INT wifi_mgmt_frame_callbacks_register (wifi_receivedMgmtFrame_callback mgmtRxCallback)
 
void wifi_csi_callback_register (wifi_csi_callback callback_proc)
 CSI call back registration function. Callback will be executed when the CSI data is available from the HAL. if CSI engine is disabled, this callback should not be executed. More...
 
INT wifi_enableCSIEngine (INT apIndex, mac_address_t sta, BOOL enable)
 
INT wifi_sendDataFrame (INT apIndex, mac_address_t sta, UCHAR *data, UINT len, BOOL insert_llc, UINT eth_proto, wifi_data_priority_t prio)
 
INT wifi_sendActionFrame (INT apIndex, mac_address_t sta, UINT frequency, UCHAR *frame, UINT len)
 
INT wifi_applyGASConfiguration (wifi_GASConfiguration_t *input_struct)
 
INT wifi_setCountryIe (INT apIndex, BOOL enabled)
 
INT wifi_getCountryIe (INT apIndex, BOOL *enabled)
 
INT wifi_setLayer2TrafficInspectionFiltering (INT apIndex, BOOL enabled)
 
INT wifi_getLayer2TrafficInspectionFiltering (INT apIndex, BOOL *enabled)
 
INT wifi_setDownStreamGroupAddress (INT apIndex, BOOL disabled)
 
INT wifi_getDownStreamGroupAddress (INT apIndex, BOOL *disabled)
 
INT wifi_setBssLoad (INT apIndex, BOOL enabled)
 
INT wifi_getBssLoad (INT apIndex, BOOL *enabled)
 
INT wifi_setProxyArp (INT apIndex, BOOL enabled)
 
INT wifi_getProxyArp (INT apIndex, BOOL *enable)
 
INT wifi_pushApHotspotElement (INT apIndex, BOOL enabled)
 
INT wifi_getApHotspotElement (INT apIndex, BOOL *enabled)
 
INT wifi_pushApRoamingConsortiumElement (INT apIndex, wifi_roamingConsortiumElement_t *infoElement)
 
INT wifi_getApRoamingConsortiumElement (INT apIndex, wifi_roamingConsortiumElement_t *infoElement)
 
INT wifi_setP2PCrossConnect (INT apIndex, BOOL disabled)
 
INT wifi_getP2PCrossConnect (INT apIndex, BOOL *disabled)
 
INT wifi_getTWTsessions (INT ap_index, UINT maxNumberSessions, wifi_twt_sessions_t *twtSessions, UINT *numSessionReturned)
 get all the TWT session(individual or Broadcast) connected to that AP Index . More...
 
INT wifi_setBroadcastTWTSchedule (INT ap_index, wifi_twt_params_t twtParams, BOOL create, INT *sessionID)
 Create or update a broadcast TWT Session
More...
 
INT wifi_setTeardownTWTSession (INT ap_index, INT sessionID)
 teardown the individual session or the broadcast session associate to the MAC More...
 
INT wifi_pushMultiPskKeys (INT apIndex, wifi_key_multi_psk_t *keys, INT keysNumber)
 
INT wifi_getMultiPskKeys (INT apIndex, wifi_key_multi_psk_t *keys, INT keysNumber)
 
INT wifi_getMultiPskClientKey (INT apIndex, mac_address_t mac, wifi_key_multi_psk_t *key)
 
INT wifi_createVAP (wifi_radio_index_t index, wifi_vap_info_map_t *map)
 
INT wifi_getRadioVapInfoMap (wifi_radio_index_t index, wifi_vap_info_map_t *map)
 
INT wifi_setApSecurity (INT ap_index, wifi_vap_security_t *security)
 
INT wifi_getApSecurity (INT ap_index, wifi_vap_security_t *security)
 
INT wifi_getAPCapabilities (INT ap_index, wifi_ap_capabilities_t *apCapabilities)
 
INT wifi_getApWpsConfiguration (INT ap_index, wifi_wps_t *wpsConfig)
 
INT wifi_setApWpsConfiguration (INT ap_index, wifi_wps_t *wpsConfig)
 
INT wifi_getLibhostapd (BOOL *output_bool)
 
INT wifi_updateLibHostApdConfig (int apIndex)
 
INT wifi_vapstatus_callback_register (wifi_vapstatus_callback callback)
 VAP Status call back registration function. More...
 
INT wifi_hal_analytics_callback_register (wifi_analytics_callback callback)
 VAP Status call back registration function. More...
 

Variables

typedef __attribute__
 
UCHAR length
 
UCHAR languageCode [3]
 
UCHAR operatorName [252]
 
typedef struct
 
UCHAR name [255]
 
wifi_HS2_NAI_Home_Realm_Data_t homeRealmData [20]
 
UINT AdvertisementID
 
BOOL PauseForServerResponse
 
UINT ResponseTimeout
 
UINT ComeBackDelay
 
UINT ResponseBufferingTime
 
UINT QueryResponseLengthLimit
 

Function Documentation

◆ wifi_pushMultiPskKeys()

INT wifi_pushMultiPskKeys ( INT  apIndex,
wifi_key_multi_psk_t keys,
INT  keysNumber 
)

@description Function sets the new set of multi psk keys. Previously set keys are removed. This API is for setting all keys except the primary key. Primary key is set by wifi_setApSecurityKeyPassphrase.

Parameters
[in]apIndex- access point index
[in]keys- Array with all keys that client devices can associate with AP
[in]keysNumber- Number of elements in 'keys' array
Returns
The status of the operation
Return values
RETURN_OKif successful
RETURN_ERRif any error is detected
Side Effects:\n None

◆ wifi_getMultiPskKeys()

INT wifi_getMultiPskKeys ( INT  apIndex,
wifi_key_multi_psk_t keys,
INT  keysNumber 
)

@description Function gets all keys from multi psk config. Implementation has to fill all active keys into wifi_key_multi_psk_t array. The keys should be consecutively written starting at [0] element of the keys array. This API is for getting all keys the except primary key. Primary key can be get by wifi_getApSecurityKeyPassphrase.

Parameters
[in]apIndex- access point index
[out]keys- An array to which multi-psk keys active on the AP should be written to. If there are less present keys than 'keysNumber' the unused array elements should contain empty strings (""). Array is allocated by the caller.
[in]keysNumber- Number of elements in 'keys' array
Returns
The status of the operation
Return values
RETURN_OKif successful
RETURN_ERRif any error is detected
Side Effects:\n None

◆ wifi_getMultiPskClientKey()

INT wifi_getMultiPskClientKey ( INT  apIndex,
mac_address_t  mac,
wifi_key_multi_psk_t key 
)

@description Function gets multi psk key for the client mac address. If wifi_key_multi_psk_t.wifi_keyID is null this means that multi psk key was not used for authentication.

Parameters
[in]apIndex- access point index
[in]mac- client mac address
[out]key- multi psk key structure
Returns
The status of the operation
Return values
RETURN_OKif successful
RETURN_ERRif any error is detected
Side Effects:\n None

Variable Documentation

◆ languageCode

UCHAR languageCode[3]

Definition at line 3 of file wifi_hal_ap.h.

◆ operatorName

UCHAR operatorName[252]

Definition at line 4 of file wifi_hal_ap.h.

◆ AdvertisementID

UINT AdvertisementID

Definition at line 2056 of file wifi_hal_ap.h.

◆ PauseForServerResponse

BOOL PauseForServerResponse

Definition at line 2057 of file wifi_hal_ap.h.

◆ ResponseTimeout

UINT ResponseTimeout

Definition at line 2058 of file wifi_hal_ap.h.

◆ ComeBackDelay

UINT ComeBackDelay

Definition at line 2059 of file wifi_hal_ap.h.

◆ ResponseBufferingTime

UINT ResponseBufferingTime

Definition at line 2060 of file wifi_hal_ap.h.

◆ QueryResponseLengthLimit

UINT QueryResponseLengthLimit

Definition at line 2061 of file wifi_hal_ap.h.