WICED functions to
| void convert_security_type_to_string | ( | wiced_security_t | security, |
| char * | out_str, | ||
| uint16_t | out_str_len | ||
| ) |
Convert a security bitmap to string
| [in] | security | : security of type wiced_security_t |
| [in] | out_str | : a character array to store output |
| [in] | out_str_len | : length of out_str char array |
| void print_scan_result | ( | wiced_scan_result_t * | record | ) |
Prints partial details of a scan result on a single line
| [in] | record | : A pointer to the wiced_scan_result_t record |
Prints partial details of a scan result on a single line
| [in] | record | A pointer to the wiced_scan_result_t record |
| wiced_result_t wiced_wifi_add_custom_ie | ( | wiced_interface_t | interface, |
| const wiced_custom_ie_info_t * | ie_info | ||
| ) |
Add Wi-Fi custom IE
| [in] | interface | : Interface to add custom IE |
| [in] | ie_info | : Pointer to the structure which contains custom IE information |
| wiced_result_t wiced_wifi_disable_11n_support | ( | wiced_interface_t | interface, |
| wiced_bool_t | disable | ||
| ) |
Disable / enable 11n mode
NOTE: Ensure WiFi core and network is down before invoking this function. Refer wiced_wifi_down() API for details.
| [in] | interface | : Disables 11n mode on the given interface |
| [in] | disable | : Boolean to indicate if 11n mode to be disabled/enabled. If set to WICED_TRUE, 11n mode will be disabled. |
| wiced_result_t wiced_wifi_down | ( | void | ) |
Bring down Wi-Fi core preserving calibration
WARNING: This brings down the Wi-Fi core and all existing network connections. Bring up the Wi-Fi core using wiced_wifi_up() and bring up the required network connections using wiced_network_up().
| wiced_result_t wiced_wifi_find_ap | ( | const char * | ssid, |
| wiced_scan_result_t * | ap_info, | ||
| const uint16_t * | optional_channel_list | ||
| ) |
Finds the AP and its information for the given SSID
| [in] | ssid | : SSID of the access point for which user wants to find information. It must be a NULL terminated string 32 characters or less |
| [out] | ap_info | : Pointer to the structure to store AP information. |
| [in] | optional_channel_list | : An optional channel list to restrict which channels are scanned. Note that the last entry must be 0 If NULL, the scan will be performed on all supported Wi-Fi channels. |
| wiced_result_t wiced_wifi_get_channel | ( | uint32_t * | channel | ) |
Get the current channel on STA interface
| [out] | channel | : A pointer to the variable where the channel value will be written |
| wiced_result_t wiced_wifi_get_counters | ( | wwd_interface_t | interface, |
| wiced_counters_t * | counters | ||
| ) |
Get WLAN counter statistics for the interface provided
| [in] | interface | : The interface for which the counters are requested |
| [out] | counters | : A pointer to the structure where the counter data will be written |
| wiced_result_t wiced_wifi_get_ht_mode | ( | wiced_interface_t | interface, |
| wiced_ht_mode_t * | ht_mode | ||
| ) |
Gets the HT mode for the given interface
| [out] | ht_mode | : Pointer to the enum to store the currently used HT mode of the given interface. |
| [in] | interface | : Interface for which HT mode to be identified. |
| wiced_result_t wiced_wifi_get_listen_interval | ( | wiced_listen_interval_t * | li | ) |
Gets the current value of all beacon listen interval variables
| [out] | li | : The current value of all listen interval settings |
| wiced_result_t wiced_wifi_get_mac_address | ( | wiced_mac_t * | mac | ) |
Retrieves the current Media Access Control (MAC) address (or Ethernet hardware address) of the 802.11 device
| mac | Pointer to a variable that the current MAC address will be written to |
| wiced_result_t wiced_wifi_get_roam_trigger | ( | int32_t * | trigger_level | ) |
Get roam trigger level for the 2.4 Gigahertz band
| trigger_level | : Trigger level in dBm. Pointer to store current roam trigger level value |
| wiced_result_t wiced_wifi_get_roam_trigger_per_band | ( | int32_t * | trigger_level, |
| wiced_802_11_band_t | band | ||
| ) |
Get roam trigger level for the given band
| trigger_level | : Trigger level in dBm. Pointer to store current roam trigger level value |
| band | : which band to use for the roam trigger query |
| wiced_result_t wiced_wifi_remove_custom_ie | ( | wiced_interface_t | interface, |
| const wiced_custom_ie_info_t * | ie_info | ||
| ) |
Remove Wi-Fi custom IE
| [in] | interface | : Interface to remove custom IE |
| [in] | ie_info | : Pointer to the structure which contains custom IE information |
| wiced_result_t wiced_wifi_set_ht_mode | ( | wiced_interface_t | interface, |
| wiced_ht_mode_t | ht_mode | ||
| ) |
Sets the HT mode for the given interface
NOTE: Ensure WiFi core and network is down before invoking this function. Refer wiced_wifi_down() and wiced_network_down() functions for details.
| [in] | ht_mode | : HT mode to be set for the given interface |
| [in] | interface | : Interface for which HT Mode to be set |
| wiced_result_t wiced_wifi_set_listen_interval | ( | uint8_t | listen_interval, |
| wiced_listen_interval_time_unit_t | time_unit | ||
| ) |
Sets the 802.11 powersave listen interval for a Wi-Fi client, and communicates the listen interval to the Access Point. The listen interval will be set to (listen_interval x time_unit) seconds.
The default value for the listen interval is 0. With the default value set, the Wi-Fi device wakes to listen for AP beacons every DTIM period.
If the DTIM listen interval is non-zero, the DTIM listen interval will over ride the beacon listen interval value.
If it is necessary to set the listen interval sent to the AP to a value other than the value set by this function, use the additional association listen interval API : wiced_wifi_set_listen_interval_assoc()
| [in] | listen_interval | : The desired beacon listen interval |
| [in] | time_unit | : The listen interval time unit; options are beacon period or DTIM period |
| wiced_result_t wiced_wifi_set_listen_interval_assoc | ( | uint16_t | listen_interval | ) |
Sets the 802.11 powersave beacon listen interval communicated to Wi-Fi Access Points
This function is used by Wi-Fi clients to set the value of the beacon listen interval sent to the AP (in the association request frame) during the association process.
To set the client listen interval as well, use the wiced_wifi_set_listen_interval() API
| listen_interval | : The beacon listen interval sent to the AP during association. The time unit is specified in multiples of beacon periods. |
| wiced_result_t wiced_wifi_set_roam_trigger | ( | int32_t | trigger_level | ) |
Set roam trigger level for all bands
| [in] | trigger_level | : Trigger level in dBm. The Wi-Fi device will search for a new AP to connect to once the signal from the AP (it is currently associated with) drops below the roam trigger level. Valid value range: 2 to -100 0 : Default roaming trigger 1 : Optimize for bandwidth roaming trigger 2 : Optimize for distance roaming trigger -1 to -100: Roaming will be triggered based on the specified RSSI value |
| wiced_result_t wiced_wifi_set_roam_trigger_per_band | ( | int32_t | trigger_level, |
| wiced_802_11_band_t | band | ||
| ) |
Set roam trigger level for given band
| [in] | trigger_level | : Trigger level in dBm. The Wi-Fi device will search for a new AP to connect to once the signal from the AP (it is currently associated with) drops below the roam trigger level. Valid value range: 2 to -100 0 : Default roaming trigger 1 : Optimize for bandwidth roaming trigger 2 : Optimize for distance roaming trigger -1 to -100: Roaming will be triggered based on the specified RSSI value |
| [in] | band | : band on which to set the roam trigger |
| wiced_result_t wiced_wifi_up | ( | void | ) |
Brings up Wi-Fi core
|
inline |
Map channel to its band, comparing channel to max 2g channel
| channel | : The channel to map to a band |
| uint32_t wwd_get_bss_index | ( | wwd_interface_t | interface | ) |
Gets the BSS index that the given interface is mapped to in Wiced
| interface | : the interface for which to get the BSS index |
| wwd_result_t wwd_get_counters | ( | wiced_counters_t * | data | ) |
Returns the WiFi driver statistics counters since the last reset.
| [in] | a | pointer to the counter statistics buffer to fill |
| wwd_result_t wwd_get_phyrate_log | ( | wiced_phyrate_log_t * | data | ) |
Returns the WiFi driver phyrate log since the last reset.
| [in] | a | pointer to the phyrate counts buffer to fill |
| wwd_result_t wwd_get_phyrate_log_size | ( | unsigned int * | size | ) |
Returns the WiFi driver phyrate log size since the last reset
| [out] | size | of the phyrate counts buffer |
| wwd_result_t wwd_get_phyrate_statistics_counters | ( | wiced_phyrate_counters_t * | counts_buffer, |
| unsigned int | size | ||
| ) |
Returns the WiFi driver phyrate statistics sinc the last reset.
| [in] | a | pointer to the phyrate counts |
| [in] | size | of the phyrate counts buffer |
| void wwd_log_event | ( | const wwd_event_header_t * | event_header, |
| const uint8_t * | event_data | ||
| ) |
Print out an event's information for debugging help
| wwd_result_t wwd_phyrate_log | ( | unsigned int | mode | ) |
Starts or stops the WiFi driver Phyrate logging facility.
| [in] | a | mode selector where 0 = stop, 1 = start TX, 2= start RX |
| wwd_result_t wwd_reset_statistics_counters | ( | void | ) |
Resets WiFi driver statistic counters
| wwd_result_t wwd_wifi_deauth_all_associated_client_stas | ( | wwd_dot11_reason_code_t | reason, |
| wwd_interface_t | interface | ||
| ) |
Deauthenticates all client STAs associated to SoftAP or Group Owner
| [in] | reason | : Deauthentication reason code |
| [in] | interface | : SoftAP interface or P2P interface |
| wwd_result_t wwd_wifi_deauth_sta | ( | const wiced_mac_t * | mac, |
| wwd_dot11_reason_code_t | reason, | ||
| wwd_interface_t | interface | ||
| ) |
Deauthenticates a STA which may or may not be associated to SoftAP or Group Owner
| [in] | mac | : Pointer to a variable containing the MAC address to which the deauthentication will be sent |
| [in] | reason | : Deauthentication reason code |
| [in] | interface | : SoftAP interface or P2P interface |
| void wwd_wifi_edcf_ac_params_print | ( | const wiced_edcf_ac_param_t * | acp, |
| const int * | priority | ||
| ) |
Print access category parameters with their priority (1-4, where 4 is highest priority)
| acp | Pointer to an array of AC parameters |
| priority | Pointer to a matching array of priority values |
| wwd_result_t wwd_wifi_get_acparams_sta | ( | wiced_edcf_ac_param_t * | acp | ) |
Retrieve the latest STA EDCF AC parameters
Retrieve the latest Station (STA) interface EDCF (Enhanced Distributed Coordination Function) Access Category parameters
| acp | The location where the array of AC parameters will be stored |
| wwd_result_t wwd_wifi_get_and_cache_mac_address | ( | wwd_interface_t | interface | ) |
Retrieves the current Media Access Control (MAC) address (or Ethernet hardware address) of the 802.11 device and store it to local cache, so subsequent wwd_wifi_get_mac_address() be faster.
| wwd_result_t wwd_wifi_get_ap_client_rssi | ( | int32_t * | rssi, |
| const wiced_mac_t * | client_mac_addr | ||
| ) |
Retrieve the latest RSSI value of the AP client
| rssi | The location where the RSSI value will be stored |
| client_mac_addr | Mac address of the AP client Please note that you can get the full list of AP clients currently connected to Wiced AP by calling a function wwd_wifi_get_associated_client_list |
| wwd_result_t wwd_wifi_get_cap | ( | char * | buffer, |
| uint16_t | buflen, | ||
| char * | cap | ||
| ) |
This function gets the feature capabilities string from the WLAN firmware.
| char | * : pointer to string buffer |
| uint16_t | : length of string buffer |
| const | char * : Optional. If nonnull string, return WWD_SUCCESS if cap is present. Failure otherwise. Allows for simple checking of a specific capability. |
| wwd_result_t wwd_wifi_get_cca_for_channel | ( | uint32_t * | channels, |
| uint32_t | duration, | ||
| uint8_t * | scores, | ||
| uint32_t | nchans | ||
| ) |
Given a specific channel, return Clear Channel Assesment (CCA) score for that channel.
| channels | List of 20 Mhz channels to measure |
| duration | How long to measure for each channel, in milliseconds. |
| scores | List of resulting scores. |
| nchans | Number of entries in channels and scores. |
| wwd_result_t wwd_wifi_get_ccode | ( | wwd_country_t * | country | ) |
Get current country code
| [out] | ccode | : Pointer to output current ccode |
Country code related functions
| wwd_result_t wwd_wifi_get_channel | ( | wwd_interface_t | interface, |
| uint32_t * | channel | ||
| ) |
Get the current channel on the WLAN radio
NOTE: on most WLAN devices this will get the channel for both AP AND STA (since there is only one radio - it cannot be on two channels simulaneously)
| interface | : The interface to set |
| channel | : pointer which receives the current channel |
| wwd_result_t wwd_wifi_get_channels | ( | wwd_interface_t | interface, |
| wl_uint32_list_t * | channels | ||
| ) |
Get the channel list on the WLAN radio
NOTE: on most WLAN devices this will get the channel list for both AP AND STA
| interface | : The interface to set |
| channels | : pointer which receives the channel list |
| wwd_result_t wwd_wifi_get_clm_version | ( | char * | version, |
| uint8_t | length | ||
| ) |
Retrieves the WLAN CLM version
| [out] | Pointer | to a buffer that version information will be written to |
| [in] | Length | of the buffer |
| wwd_result_t wwd_wifi_get_counters | ( | wwd_interface_t | interface, |
| wiced_counters_t * | counters | ||
| ) |
Get the counters for the provided interface
| interface | : The interface from which the counters are requested counters : A pointer to the structure where the counter data will be written |
| wwd_result_t wwd_wifi_get_ht_mode | ( | wwd_interface_t | interface, |
| wiced_ht_mode_t * | ht_mode | ||
| ) |
Gets the current HT mode of the given interface
| interface | : the interface for which current HT mode to be identified ht_mode : pointers to store the results (i.e., currently configured HT mode) |
| wwd_result_t wwd_wifi_get_listen_interval | ( | wiced_listen_interval_t * | li | ) |
Gets the current value of all beacon listen interval variables
| listen_interval_beacon | : The current value of the listen interval set as a multiple of the beacon period |
| listen_interval_dtim | : The current value of the listen interval set as a multiple of the DTIM period |
| listen_interval_assoc | : The current value of the listen interval sent to access points in an association request frame |
| wwd_result_t wwd_wifi_get_mac_address | ( | wiced_mac_t * | mac, |
| wwd_interface_t | interface | ||
| ) |
Retrieves the current Media Access Control (MAC) address (or Ethernet hardware address) of the 802.11 device
| mac | Pointer to a variable that the current MAC address will be written to |
| wwd_result_t wwd_wifi_get_max_associations | ( | uint32_t * | max_assoc | ) |
Get the maximum number of associations supported by all interfaces (STA and Soft AP)
| max_assoc | : The maximum number of associations supported by the STA and Soft AP interfaces. For example if the STA interface is associated then the Soft AP can support (max_assoc - 1) associated clients. |
| wwd_result_t wwd_wifi_get_noise | ( | int32_t * | noise | ) |
Get the average PHY noise detected on the antenna. This is valid only after TX. Defined only on STA interface
| noise | : reports average noise |
| wwd_result_t wwd_wifi_get_preferred_association_band | ( | int32_t * | band | ) |
Get the preferred band for association by the radio chip
| band | : pointer to a variable that will hold the band information (auto, 2.4 GHz or 5 GHz) |
| wwd_result_t wwd_wifi_get_rate | ( | wwd_interface_t | interface, |
| uint32_t * | rate | ||
| ) |
Get the current data rate for the provided interface
| interface | : The interface from which the rate is requested rate : A pointer to the uint32_t where the value will be returned in 500Kbits/s units, 0 for auto |
| wwd_result_t wwd_wifi_get_roam_delta | ( | int32_t * | trigger_delta | ) |
Get roam trigger delta value for 2.4 Gigahertz band
| trigger_delta | : Trigger delta is in dBm. Pointer to store the current roam trigger delta value |
| wwd_result_t wwd_wifi_get_roam_delta_per_band | ( | int32_t * | trigger_delta, |
| wiced_802_11_band_t | band | ||
| ) |
Get roam trigger delta value for given band
| trigger_delta | : Trigger delta is in dBm. Pointer to store the current roam trigger delta value |
| band | : Get roam delta for this band |
| wwd_result_t wwd_wifi_get_roam_scan_period | ( | uint32_t * | roam_scan_period | ) |
Get roam scan period
| roam_scan_period | : Roam scan period is in secs. Pointer to store the current partial scan period |
| wwd_result_t wwd_wifi_get_roam_trigger | ( | int32_t * | trigger_level | ) |
Get roam trigger level for the 2.4 Gigahertz band
| trigger_level | : Trigger level in dBm. Pointer to store current roam trigger level value |
| wwd_result_t wwd_wifi_get_roam_trigger_per_band | ( | int32_t * | trigger_level, |
| wiced_802_11_band_t | band | ||
| ) |
Get roam trigger level for the given band
| trigger_level | : Trigger level in dBm. Pointer to store current roam trigger level value |
| band | : Get roam trigger for this band |
| wwd_result_t wwd_wifi_get_rssi | ( | int32_t * | rssi | ) |
Retrieve the latest RSSI value
| rssi | The location where the RSSI value will be stored |
| wwd_result_t wwd_wifi_get_supplicant_eapol_key_timeout | ( | wwd_interface_t | interface, |
| int32_t * | eapol_key_timeout | ||
| ) |
Gets the current EAPOL key timeout for the given interface
| interface | : the interface for which we want the EAPOL key timeout eapol_key_timeout : pointer to store the EAPOL key timeout value |
| wwd_result_t wwd_wifi_get_supported_band_list | ( | wiced_band_list_t * | band_list | ) |
Get the bands supported by the radio chip
| band_list | : pointer to a structure that will hold the band list information |
| wwd_result_t wwd_wifi_get_tx_power | ( | uint8_t * | dbm | ) |
Gets the tx power in dBm units
| dbm | : The variable to receive the tx power in dbm. |
| wwd_result_t wwd_wifi_get_wifi_memuse | ( | char * | version, |
| uint8_t | length | ||
| ) |
Retrieves current memory usage of WLAN processor
| [out] | Pointer | to a buffer that information will be written to |
| [in] | Length | of the buffer |
| wwd_result_t wwd_wifi_get_wifi_version | ( | char * | version, |
| uint8_t | length | ||
| ) |
Retrieves the WLAN firmware version
| [out] | Pointer | to a buffer that version information will be written to |
| [in] | Length | of the buffer |
| wwd_result_t wwd_wifi_is_ready_to_transceive | ( | wwd_interface_t | interface | ) |
Determines if a particular interface is ready to transceive ethernet packets
| Radio | interface to check, options are WICED_STA_INTERFACE, WICED_AP_INTERFACE |
| void wwd_wifi_link_update | ( | void | ) |
Called to notify WWD that there has been a link change WWD in turn will call the link update callback, if it has been registered
| wwd_result_t wwd_wifi_manage_custom_ie | ( | wwd_interface_t | interface, |
| wiced_custom_ie_action_t | action, | ||
| const uint8_t * | oui, | ||
| uint8_t | subtype, | ||
| const void * | data, | ||
| uint16_t | length, | ||
| uint16_t | which_packets | ||
| ) |
Manage the addition and removal of custom IEs
| interface | : interface on which the operation to be performed |
| action | : the action to take (add or remove IE) |
| oui | : the oui of the custom IE |
| subtype | : the IE sub-type |
| data | : a pointer to the buffer that hold the custom IE |
| length | : the length of the buffer pointed to by 'data' |
| which_packets | a mask of which packets this IE should be included in. See wiced_ie_packet_flag_t |
| wiced_bool_t wwd_wifi_p2p_is_go_up | ( | void | ) |
| void wwd_wifi_p2p_set_go_is_up | ( | wiced_bool_t | is_up | ) |
Set whether the p2p GO is up or not
| is_up | : specify whether the p2p GO is up currently or not |
| void wwd_wifi_prioritize_acparams | ( | const wiced_edcf_ac_param_t * | acp, |
| int * | priority | ||
| ) |
Prioritize access category parameters as a function of min and max contention windows and backoff slots
| acp | Pointer to an array of AC parameters |
| priority | Pointer to a matching array of priority values |
| void wwd_wifi_register_link_update_callback | ( | void(*)(void) | callback_function | ) |
Used by WICED to get notified that wireless link state has changed The callback function any time STA, AP, or GO link states change
| wwd_result_t wwd_wifi_register_multicast_address | ( | const wiced_mac_t * | mac | ) |
Registers interest in a multicast address Once a multicast address has been registered, all packets detected on the medium destined for that address are forwarded to the host. Otherwise they are ignored.
| mac | Ethernet MAC address |
| wwd_result_t wwd_wifi_register_multicast_address_for_interface | ( | const wiced_mac_t * | mac, |
| wwd_interface_t | interface | ||
| ) |
Registers interest in a multicast address Similar to wwd_wifi_register_multicast_address but able to define interface
| mac | : Ethernet MAC address |
| interface | Wireless interface |
| wwd_result_t wwd_wifi_select_antenna | ( | wiced_antenna_t | antenna | ) |
Select the Wi-Fi antenna antenna = 0 -> select antenna 0 antenna = 1 -> select antenna 1 antenna = 3 -> enable auto antenna selection ie. automatic diversity
| antenna | The antenna configuration to use |
| wwd_result_t wwd_wifi_send_action_frame | ( | const wiced_action_frame_t * | action_frame, |
| wwd_interface_t | interface | ||
| ) |
Send a pre-prepared action frame
| action_frame | : A pointer to a pre-prepared action frame structure |
| interface | : The interface that is sending the action frame (WWD_STA_INTERFACE, WWD_AP_INTERFACE or WWD_P2P_INTERFACE) |
| wwd_result_t wwd_wifi_send_csa | ( | const wiced_chan_switch_t * | csa, |
| wwd_interface_t | interface | ||
| ) |
This function will send a channel switch announcement and switch to the specificed channel at the specified time.
| [in] | wiced_chan_switch_t | pointer to channel switch information |
| interface | : WWD_AP_INTERFACE (works only in AP mode) |
| wwd_result_t wwd_wifi_set_11n_support | ( | wwd_interface_t | interface, |
| wiced_11n_support_t | value | ||
| ) |
Enable or disable 11n support (support only for pre-11n modes)
NOTE: Ensure Wi-Fi core and network is down before invoking this function. Refer to wiced_wifi_down() for more details.
| interface | : The interface for which 11n mode is being controlled. Currently only STA supported disable : Boolean value which if TRUE will turn 11n off and if FALSE will turn 11n on |
| wwd_result_t wwd_wifi_set_ampdu_parameters | ( | void | ) |
Set the AMPDU parameters for both Soft AP and STA
Sets various AMPDU parameters for Soft AP and STA to ensure that the number of buffers dedicated to AMPDUs does not exceed the resources of the chip. Both Soft AP and STA interfaces must be down.
Sets the chip specific AMPDU parameters for AP and STA For SDK 3.0, and beyond, each chip will need it's own function for setting AMPDU parameters.
| wwd_result_t wwd_wifi_set_block_ack_window_size | ( | wwd_interface_t | interface | ) |
Set the AMPDU Block Ack window size for both Soft AP and STA
Sets the AMPDU Block Ack window size for Soft AP and STA. Soft AP and STA interfaces may be up.
| interface | : STA or Soft AP interface. |
Sets the chip specific AMPDU parameters for AP and STA For SDK 3.0, and beyond, each chip will need it's own function for setting AMPDU parameters.
| wwd_result_t wwd_wifi_set_ccode | ( | wwd_country_t * | ccode | ) |
Set current country code to ccode
| [in] | ccode | : Pointer to input ccode to be set |
| wwd_result_t wwd_wifi_set_channel | ( | wwd_interface_t | interface, |
| uint32_t | channel | ||
| ) |
Set the current channel on the WLAN radio
NOTE: on most WLAN devices this will set the channel for both AP AND STA (since there is only one radio - it cannot be on two channels simulaneously)
| interface | : The interface to set |
| channel | : The desired channel |
| wwd_result_t wwd_wifi_set_custom_country_code | ( | const wiced_country_info_t * | country_code | ) |
Set a custom WLAN country code
| [in] | country_code | Country code information |
| wwd_result_t wwd_wifi_set_down | ( | void | ) |
Bring down the Wi-Fi core
WARNING / NOTE: This brings down the Wi-Fi core and existing network connections will be lost. Re-establish the network by calling wiced_wifi_up() and wiced_network_up(). Refer those APIs for more details.
Set the Wi-Fi device down. Internal use only
| interface |
| wwd_result_t wwd_wifi_set_fw_cmd_debug_mode | ( | wiced_bool_t | enable | ) |
Print out additional information for SET operations
| enable | try read back and print out values after they are SET in firmware if this is true |
| wwd_result_t wwd_wifi_set_ht_mode | ( | wwd_interface_t | interface, |
| wiced_ht_mode_t | ht_mode | ||
| ) |
Sets HT mode for the given interface
NOTE: Ensure WiFi core and network is down before invoking this function. Refer wiced_wifi_down() API for more details.
| interface | : the interface for which HT mode to be changed. ht_mode : enumeration value which indicates the HT mode |
| wwd_result_t wwd_wifi_set_legacy_rate | ( | wwd_interface_t | interface, |
| int32_t | rate | ||
| ) |
Set the legacy (CCK/OFDM) transmit data rate for the provided interface
| interface | : The interface for which the rate is going to be set rate : uint32_t where the rate value is given in 500Kbits/s units, 0 for auto |
| wwd_result_t wwd_wifi_set_listen_interval | ( | uint8_t | listen_interval, |
| wiced_listen_interval_time_unit_t | time_unit | ||
| ) |
Sets the 802.11 powersave listen interval for a Wi-Fi client, and communicates the listen interval to the Access Point. The listen interval will be set to (listen_interval x time_unit) seconds.
The default value for the listen interval is 0. With the default value set, the Wi-Fi device wakes to listen for AP beacons every DTIM period.
If the DTIM listen interval is non-zero, the DTIM listen interval will over ride the beacon listen interval value.
If it is necessary to set the listen interval sent to the AP to a value other than the value set by this function, use the additional association listen interval API : wwd_wifi_set_listen_interval_assoc()
NOTE: This function applies to 802.11 powersave operation. Please read the WICED powersave application note for further information about the operation of the 802.11 listen interval.
| listen_interval | : The desired beacon listen interval |
| time_unit | : The listen interval time unit; options are beacon period or DTIM period. |
| wwd_result_t wwd_wifi_set_listen_interval_assoc | ( | uint16_t | listen_interval | ) |
Sets the 802.11 powersave beacon listen interval communicated to Wi-Fi Access Points
This function is used by Wi-Fi clients to set the value of the beacon listen interval sent to the AP (in the association request frame) during the association process.
To set the client listen interval as well, use the wwd_wifi_set_listen_interval() API
This function applies to 802.11 powersave operation. Please read the WICED powersave application note for further information about the operation of the 802.11 listen interval.
| listen_interval | : The beacon listen interval sent to the AP during association. The time unit is specified in multiples of beacon periods. |
| wwd_result_t wwd_wifi_set_mac_address | ( | wiced_mac_t | mac, |
| wwd_interface_t | interface | ||
| ) |
This function sets the current Media Access Control (MAC) address of the 802.11 device. To override the MAC address in the Wi-Fi OTP or NVRAM add a global define in the application makefile as shown below. With this define in place, the MAC address stored in the DCT is used instead of the MAC in the OTP or NVRAM.
In <WICED-SDK>/App/my_app/my_app.mk add the following global define GLOBAL_DEFINES := MAC_ADDRESS_SET_BY_HOST Further information about MAC addresses is available in the following automatically generated file AFTER building your first application <WICED-SDK>/generated_mac_address.txt
NOTE: Ensure Wi-Fi core and network is down before invoking this function. Refer wiced_wifi_down() API for details.
| [in] | mac | Wi-Fi MAC address |
| wwd_result_t wwd_wifi_set_mcs_rate | ( | wwd_interface_t | interface, |
| int32_t | mcs, | ||
| wiced_bool_t | mcsonly | ||
| ) |
Set the MCS index transmit data rate for the provided interface
| interface | : The interface for which the rate is going to be set mcs : int32_t where the mcs index is given, -1 for auto mcsonly : indicate that only the mcs index should be changed |
| wwd_result_t wwd_wifi_set_preferred_association_band | ( | int32_t | band | ) |
Set the preferred band for association by the radio chip Defined only on STA interface
| band | : preferred band (auto, 2.4 GHz or 5 GHz) |
| wwd_result_t wwd_wifi_set_roam_delta | ( | int32_t | trigger_delta | ) |
Set roam trigger delta value for all bands
| trigger_delta | : Trigger delta is in dBm. After a roaming is triggered - The successful roam will happen when a target AP with RSSI better than the current serving AP by at least trigger_delta (in dB) |
| wwd_result_t wwd_wifi_set_roam_delta_per_band | ( | int32_t | trigger_delta, |
| wiced_802_11_band_t | band | ||
| ) |
Set roam trigger delta value for given band
| trigger_delta | : Trigger delta is in dBm. After a roaming is triggered - The successful roam will happen when a target AP with RSSI better than the current serving AP by at least trigger_delta (in dB) |
| band | : Get roam delta for this band |
| wwd_result_t wwd_wifi_set_roam_scan_period | ( | uint32_t | roam_scan_period | ) |
Set roam scan period
| roam_scan_period | : Roam scan period is in secs. Updates the partial scan period - for partial scan - Only for STA |
| wwd_result_t wwd_wifi_set_roam_trigger | ( | int32_t | trigger_level | ) |
Set roam trigger level for all bands
| trigger_level | : Trigger level in dBm. The Wi-Fi device will search for a new AP to connect to once the signal from the AP (it is currently associated with) drops below the roam trigger level |
| wwd_result_t wwd_wifi_set_roam_trigger_per_band | ( | int32_t | trigger_level, |
| wiced_802_11_band_t | band | ||
| ) |
Set roam trigger level for the specified band
| trigger_level | : Trigger level in dBm. The Wi-Fi device will search for a new AP to connect to once the signal from the AP (it is currently associated with) drops below the roam trigger level |
| band | : Modify the roam trigger for this band |
| wwd_result_t wwd_wifi_set_supplicant_eapol_key_timeout | ( | wwd_interface_t | interface, |
| int32_t | eapol_key_timeout | ||
| ) |
Sets the current EAPOL key timeout for the given interface
| interface | : the interface for which we want to set the EAPOL key timeout eapol_key_timeout : EAPOL key timeout value |
| wwd_result_t wwd_wifi_set_tx_power | ( | uint8_t | dbm | ) |
Sets the tx power in dBm units
| dbm | : The desired tx power in dbm. If set to -1 (0xFF) the default value is restored. |
| wwd_result_t wwd_wifi_set_up | ( | void | ) |
Brings up the Wi-Fi core
| wwd_result_t wwd_wifi_turn_off_roam | ( | wiced_bool_t | disable | ) |
Turn off roaming
| disable | : Boolean value which if TRUE will turn roaming off and if FALSE will turn roaming on |
| wwd_result_t wwd_wifi_unregister_multicast_address | ( | const wiced_mac_t * | mac | ) |
Unregisters interest in a multicast address Once a multicast address has been unregistered, all packets detected on the medium destined for that address are ignored.
| mac | Ethernet MAC address |
| wwd_result_t wwd_wifi_unregister_multicast_address_for_interface | ( | const wiced_mac_t * | mac, |
| wwd_interface_t | interface | ||
| ) |
Unregisters interest in a multicast address Similar to wwd_wifi_unregister_multicast_address but able to define interface.
| mac | : Ethernet MAC address |
| interface | Wireless interface |
| wwd_result_t wwd_wifi_update_tos_map | ( | void | ) |
For each traffic priority (0..7) look up the 802.11 Access Category that is mapped to this type of service and update the TOS map with the priority that the AP actually allows