Syntax
VM_RESULT vm_wlan_mode_set(
    VM_WLAN_MODE mode, 
    vm_wlan_callback callback, 
    void* user_data
);
ContentsIndex
PreviousUpNext
vm_wlan_mode_set
Example
Syntax
VM_RESULT vm_wlan_mode_set(
    VM_WLAN_MODE mode, 
    vm_wlan_callback callback, 
    void* user_data
);
Description

Switches the mode. VM_WLAN_SET_MODE_OFF turns off both AP mode and STA mode. VM_WLAN_SET_MODE_AP turns only AP mode on. VM_WLAN_SET_MODE_STA turns only STA mode on. VM_WLAN_SET_MODE_AP_STA turns both AP mode and STA mode on.

Parameters
Parameters 
Description 
VM_WLAN_MODE mode 
[IN] Specifies the mode to be switched on. 
vm_wlan_callback callback 
[IN] The callback to notify the application about the completion of the mode switch. 
void* user_data 
[IN] Additional user data for the callback. 
Example
vm_wlan_mode_set(VM_WLAN_SET_MODE_AP, switch_mode_cb, NULL);
void switch_mode_cb(void* user_data, VM_WLAN_REQUEST_RESULT res)
{
    if (VM_WLAN_REQUEST_DONE == res)
    {
        // Switch mode successfully.
    }
}
File

vmwlan.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.