WICED functions to
WICED functions to
|
extern |
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 |
|
extern |
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 |
|
extern |
Add Wi-Fi custom IE
| [in] | interface | : Interface to add custom IE |
| [in] | ie_info | : Pointer to the structure which contains custom IE information |
|
extern |
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. |
|
extern |
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().
|
extern |
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. |
|
extern |
Get the current channel on STA interface
| [out] | channel | : A pointer to the variable where the channel value will be written |
|
extern |
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 |
|
extern |
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. |
|
extern |
Gets the current value of all beacon listen interval variables
| [out] | li | : The current value of all listen interval settings |
|
extern |
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 |
|
extern |
Get roam trigger level for the 2.4 Gigahertz band
| trigger_level | : Trigger level in dBm. Pointer to store current roam trigger level value |
|
extern |
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 |
|
extern |
Remove Wi-Fi custom IE
| [in] | interface | : Interface to remove custom IE |
| [in] | ie_info | : Pointer to the structure which contains custom IE information |
|
extern |
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 |
|
extern |
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 |
|
extern |
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. |
|
extern |
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 |
|
extern |
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 |
|
extern |
Brings up Wi-Fi core
|
externinline |
Map channel to its band, comparing channel to max 2g channel
| channel | : The channel to map to a band |
|
extern |
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
|
extern |
Deauthenticates all client STAs associated to SoftAP or Group Owner
| [in] | reason | : Deauthentication reason code |
| [in] | interface | : SoftAP interface or P2P interface |
|
extern |
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 |
|
extern |
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 |
|
extern |
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 |
|
extern |
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.
|
extern |
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 |
|
extern |
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. |
|
extern |
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. |
|
extern |
Get current country code
| [out] | ccode | : Pointer to output current ccode |
Country code related functions
|
extern |
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 |
|
extern |
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 |
|
extern |
Retrieves the WLAN CLM version
| [out] | Pointer | to a buffer that version information will be written to |
| [in] | Length | of the buffer |
|
extern |
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 |
|
extern |
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) |
|
extern |
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 |
|
extern |
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 |
|
extern |
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. |
|
extern |
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) |
|
extern |
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 |
|
extern |
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 |
|
extern |
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 |
|
extern |
Get roam scan period
| roam_scan_period | : Roam scan period is in secs. Pointer to store the current partial scan period |
|
extern |
Get roam trigger level for the 2.4 Gigahertz band
| trigger_level | : Trigger level in dBm. Pointer to store current roam trigger level value |
|
extern |
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 |
|
extern |
Retrieve the latest RSSI value
| rssi | The location where the RSSI value will be stored |
|
extern |
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 |
|
extern |
Get the bands supported by the radio chip
| band_list | : pointer to a structure that will hold the band list information |
|
extern |
Gets the tx power in dBm units
| dbm | : The variable to receive the tx power in dbm. |
|
extern |
Retrieves current memory usage of WLAN processor
| [out] | Pointer | to a buffer that information will be written to |
| [in] | Length | of the buffer |
|
extern |
Retrieves the WLAN firmware version
| [out] | Pointer | to a buffer that version information will be written to |
| [in] | Length | of the buffer |
|
extern |
Determines if a particular interface is ready to transceive ethernet packets
| Radio | interface to check, options are WICED_STA_INTERFACE, WICED_AP_INTERFACE |
|
extern |
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
|
extern |
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 |
|
extern |
|
extern |
Set whether the p2p GO is up or not
| is_up | : specify whether the p2p GO is up currently or not |
|
extern |
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 |
|
extern |
Used by WICED to get notified that wireless link state has changed The callback function any time STA, AP, or GO link states change
|
extern |
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 |
|
extern |
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 |
|
extern |
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 |
|
extern |
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) |
|
extern |
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) |
|
extern |
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 |
|
extern |
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.
|
extern |
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.
|
extern |
Set current country code to ccode
| [in] | ccode | : Pointer to input ccode to be set |
|
extern |
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 |
|
extern |
Set a custom WLAN country code
| [in] | country_code | Country code information |
|
extern |
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 |
|
extern |
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 |
|
extern |
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 |
|
extern |
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 |
|
extern |
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. |
|
extern |
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. |
|
extern |
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 |
|
extern |
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) |
|
extern |
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) |
|
extern |
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 |
|
extern |
Set roam scan period
| roam_scan_period | : Roam scan period is in secs. Updates the partial scan period - for partial scan - Only for STA |
|
extern |
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 |
|
extern |
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 |
|
extern |
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 |
|
extern |
Sets the tx power in dBm units
| dbm | : The desired tx power in dbm. If set to -1 (0xFF) the default value is restored. |
|
extern |
Brings up the Wi-Fi core
|
extern |
Turn off roaming
| disable | : Boolean value which if TRUE will turn roaming off and if FALSE will turn roaming on |
|
extern |
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 |
|
extern |
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 |
|
extern |
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