![]() |
WE310F5
39.00.000
|
This section describes the M2MB APIs for WLAN control operations. More...
This section describes the M2MB APIs for WLAN control operations.
WLAN module APIs are used to connect to an AP till layer 2 connection in STA mode. This WLAN module APIs are also used to create a network till Layer 2 when the device is in AP mode. This module also has APIs to set the security for both STA and AP modes.
Initialization of WLAN module and interface are MANDATORY before any operations. These can be achieved by m2mb_wlan_init and m2mb_wlan_interface_init APIs respectively.
m2mb_wlan_get_param and m2mb_wlan_set_param are used to get and set parameters respectively. M2MB_WLAN_PARAM_FLAG_E enumeration plays a vital role in these APIs.
m2mb_wlan_connect is used to connect the AP in STA mode. m2mb_wlan_create is used to create a limited AP in AP mode.
#define AFGHANISTAN "AF" |
Definition at line 828 of file m2mb_wlan_driver.h.
#define ALBANIA "AL" |
Definition at line 776 of file m2mb_wlan_driver.h.
#define ALGERIA "DZ" |
Definition at line 954 of file m2mb_wlan_driver.h.
#define AMERICAN_SAMOA "AS" |
Definition at line 908 of file m2mb_wlan_driver.h.
#define ARGENTINA "AR" |
Definition at line 873 of file m2mb_wlan_driver.h.
#define ARMENIA "AM" |
Definition at line 858 of file m2mb_wlan_driver.h.
#define ARUBA "AW" |
Definition at line 777 of file m2mb_wlan_driver.h.
#define AUSTRALIA "AU" |
Definition at line 875 of file m2mb_wlan_driver.h.
#define AUSTRALIA_AP "AU" |
Definition at line 931 of file m2mb_wlan_driver.h.
#define AUSTRIA "AT" |
Definition at line 778 of file m2mb_wlan_driver.h.
#define AZERBAIJAN "AZ" |
Definition at line 859 of file m2mb_wlan_driver.h.
#define BAHAMAS "BS" |
Definition at line 909 of file m2mb_wlan_driver.h.
#define BAHRAIN "BH" |
Definition at line 941 of file m2mb_wlan_driver.h.
#define BANGLADESH "BD" |
Definition at line 933 of file m2mb_wlan_driver.h.
#define BARBADOS "BB" |
Definition at line 869 of file m2mb_wlan_driver.h.
#define BELARUS "BY" |
Definition at line 779 of file m2mb_wlan_driver.h.
#define BELGIUM "BE" |
Definition at line 780 of file m2mb_wlan_driver.h.
#define BELIZE "BZ" |
Definition at line 861 of file m2mb_wlan_driver.h.
#define BERMUDA "BM" |
Definition at line 910 of file m2mb_wlan_driver.h.
#define BHUTAN "BT" |
Definition at line 829 of file m2mb_wlan_driver.h.
#define BOLIVIA "BO" |
Definition at line 947 of file m2mb_wlan_driver.h.
#define BOSNIA_HERZEGOWANIA "BA" |
Definition at line 781 of file m2mb_wlan_driver.h.
#define BRAZIL "BR" |
Definition at line 876 of file m2mb_wlan_driver.h.
#define BRUNEI_DARUSSALAM "BN" |
Definition at line 942 of file m2mb_wlan_driver.h.
#define BULGARIA "BG" |
Definition at line 782 of file m2mb_wlan_driver.h.
#define BURKINA_FASO "BF" |
Definition at line 911 of file m2mb_wlan_driver.h.
#define CAMBODIA "KH" |
Definition at line 783 of file m2mb_wlan_driver.h.
#define CANADA "CA" |
Definition at line 877 of file m2mb_wlan_driver.h.
#define CAYMAN_ISLANDS "KY" |
Definition at line 912 of file m2mb_wlan_driver.h.
#define CENTRAL_AFRICA_REPUBLIC "CF" |
Definition at line 913 of file m2mb_wlan_driver.h.
#define CHAD "TD" |
Definition at line 831 of file m2mb_wlan_driver.h.
#define CHILE "CL" |
Definition at line 943 of file m2mb_wlan_driver.h.
#define CHINA "CN" |
Definition at line 870 of file m2mb_wlan_driver.h.
#define CHRISTMAS_ISLAND "CX" |
Definition at line 914 of file m2mb_wlan_driver.h.
#define COLOMBIA "CO" |
Definition at line 878 of file m2mb_wlan_driver.h.
#define COSTA_RICA "CR" |
Definition at line 879 of file m2mb_wlan_driver.h.
#define CROATIA "HR" |
Definition at line 784 of file m2mb_wlan_driver.h.
#define CYPRUS "CY" |
Definition at line 785 of file m2mb_wlan_driver.h.
#define CZECH "CZ" |
Definition at line 787 of file m2mb_wlan_driver.h.
#define DENMARK "DK" |
Definition at line 788 of file m2mb_wlan_driver.h.
#define DEV_NUM 2 |
No of device Ids or interfaces
Definition at line 82 of file m2mb_wlan_driver.h.
#define DIVOIRE "CI" |
Definition at line 915 of file m2mb_wlan_driver.h.
#define DOMINICA "DM" |
Definition at line 868 of file m2mb_wlan_driver.h.
#define DOMINICAN_REPUBLIC "DO" |
Definition at line 865 of file m2mb_wlan_driver.h.
#define ECUADOR "EC" |
Definition at line 880 of file m2mb_wlan_driver.h.
#define EGYPT "EG" |
Definition at line 851 of file m2mb_wlan_driver.h.
#define EL_SALVADOR "SV" |
Definition at line 866 of file m2mb_wlan_driver.h.
#define ESTONIA "EE" |
Definition at line 789 of file m2mb_wlan_driver.h.
#define ETHIOPIA "ET" |
Definition at line 832 of file m2mb_wlan_driver.h.
#define FINLAND "FI" |
Definition at line 790 of file m2mb_wlan_driver.h.
#define FRANCE "FR" |
Definition at line 791 of file m2mb_wlan_driver.h.
#define FRENCH_GUIANA "GF" |
Definition at line 833 of file m2mb_wlan_driver.h.
#define FRENCH_POLYNESIA "PF" |
Definition at line 834 of file m2mb_wlan_driver.h.
#define GAUTEMALA "GT" |
Definition at line 795 of file m2mb_wlan_driver.h.
#define GEORGIA "GE" |
Definition at line 860 of file m2mb_wlan_driver.h.
#define GERMANY "DE" |
Definition at line 792 of file m2mb_wlan_driver.h.
#define GHANA "GH" |
Definition at line 916 of file m2mb_wlan_driver.h.
#define GREECE "GR" |
Definition at line 793 of file m2mb_wlan_driver.h.
#define GREENLAND "GL" |
Definition at line 794 of file m2mb_wlan_driver.h.
#define GRENADA "GD" |
Definition at line 881 of file m2mb_wlan_driver.h.
#define GUADELOUPE "GP" |
Definition at line 835 of file m2mb_wlan_driver.h.
#define GUAM "GU" |
Definition at line 882 of file m2mb_wlan_driver.h.
#define GUYANA "GY" |
Definition at line 936 of file m2mb_wlan_driver.h.
#define HAITI "HT" |
Definition at line 883 of file m2mb_wlan_driver.h.
#define HONDURAS "HN" |
Definition at line 884 of file m2mb_wlan_driver.h.
#define HONG_KONG "HK" |
Definition at line 886 of file m2mb_wlan_driver.h.
#define HUNGARY "HU" |
Definition at line 796 of file m2mb_wlan_driver.h.
#define ICELAND "IS" |
Definition at line 798 of file m2mb_wlan_driver.h.
#define INDIA "IN" |
Definition at line 944 of file m2mb_wlan_driver.h.
#define INDONESIA "ID" |
Definition at line 938 of file m2mb_wlan_driver.h.
#define IRELAND "IE" |
Definition at line 799 of file m2mb_wlan_driver.h.
#define ISRAEL "IL" |
Definition at line 853 of file m2mb_wlan_driver.h.
#define ITALY "IT" |
Definition at line 800 of file m2mb_wlan_driver.h.
#define JAMAICA "JM" |
Definition at line 887 of file m2mb_wlan_driver.h.
#define JAPAN "JP" |
Definition at line 955 of file m2mb_wlan_driver.h.
#define JORDAN "JO" |
Definition at line 939 of file m2mb_wlan_driver.h.
#define KENYA "KE" |
Definition at line 953 of file m2mb_wlan_driver.h.
#define KOREA_ROC "KR" |
Definition at line 949 of file m2mb_wlan_driver.h.
#define KUWAIT "KW" |
Definition at line 854 of file m2mb_wlan_driver.h.
#define LATVIA "LV" |
Definition at line 801 of file m2mb_wlan_driver.h.
#define LEBANON "LB" |
Definition at line 888 of file m2mb_wlan_driver.h.
#define LESOTHO "LS" |
Definition at line 836 of file m2mb_wlan_driver.h.
#define LIECHTENSTEIN "LI" |
Definition at line 802 of file m2mb_wlan_driver.h.
#define LITHUANIA "LT" |
Definition at line 803 of file m2mb_wlan_driver.h.
#define LUXEMBOURG "LU" |
Definition at line 804 of file m2mb_wlan_driver.h.
#define M2MB_WLAN_MAC_LEN 6 |
Length of MAC address
Definition at line 66 of file m2mb_wlan_driver.h.
#define M2MB_WLAN_MAX_PASSPHRASE_LEN 64 |
Maximum length of passphrase
Definition at line 70 of file m2mb_wlan_driver.h.
#define M2MB_WLAN_MAX_SSID_LEN 32 |
Maximum length of SSID
Definition at line 67 of file m2mb_wlan_driver.h.
#define M2MB_WLAN_MAX_WEP_KEY_SIZE 26 |
Maximum WEP key size
Definition at line 77 of file m2mb_wlan_driver.h.
#define M2MB_WLAN_MIN_PASSPHRASE_LEN 8 |
Minimum length of passphrase
Definition at line 69 of file m2mb_wlan_driver.h.
#define M2MB_WLAN_MIN_WEP_KEY_SIZE 10 |
Minimum WEP key size
Definition at line 76 of file m2mb_wlan_driver.h.
#define M2MB_WLAN_NUM_OF_DEVICES 2 |
Maximum number of virtual devices
Definition at line 72 of file m2mb_wlan_driver.h.
#define M2MB_WLAN_PROM_FILTER_DST_ADDR 0x02 |
Definition at line 733 of file m2mb_wlan_driver.h.
#define M2MB_WLAN_PROM_FILTER_FRAME_SUB_TYPE 0x08 |
Definition at line 735 of file m2mb_wlan_driver.h.
#define M2MB_WLAN_PROM_FILTER_FRAME_TYPE 0x04 |
Definition at line 734 of file m2mb_wlan_driver.h.
#define M2MB_WLAN_PROM_FILTER_SRC_ADDR 0x01 |
Definition at line 732 of file m2mb_wlan_driver.h.
#define M2MB_WLAN_WPS_MAX_KEY_LEN 64 |
Maximum size of WPS key in bytes
Definition at line 79 of file m2mb_wlan_driver.h.
#define MACAU "MO" |
Definition at line 889 of file m2mb_wlan_driver.h.
#define MACEDONIA "MK" |
Definition at line 805 of file m2mb_wlan_driver.h.
#define MALAWI "MW" |
Definition at line 806 of file m2mb_wlan_driver.h.
#define MALAYSIA "MY" |
Definition at line 932 of file m2mb_wlan_driver.h.
#define MALDIVES "MV" |
Definition at line 946 of file m2mb_wlan_driver.h.
#define MALTA "MT" |
Definition at line 807 of file m2mb_wlan_driver.h.
#define MARSHAL_ISLANDS "MH" |
Definition at line 917 of file m2mb_wlan_driver.h.
#define MARTINIQUE "MQ" |
Definition at line 837 of file m2mb_wlan_driver.h.
#define MAURITIUS "MU" |
Definition at line 919 of file m2mb_wlan_driver.h.
#define MAYOTTE "YT" |
Definition at line 838 of file m2mb_wlan_driver.h.
#define MEXICO "MX" |
Definition at line 890 of file m2mb_wlan_driver.h.
#define MICRONESIA "FM" |
Definition at line 920 of file m2mb_wlan_driver.h.
#define MOLDOVA "MD" |
Definition at line 839 of file m2mb_wlan_driver.h.
#define MONACO "MC" |
Definition at line 809 of file m2mb_wlan_driver.h.
#define MONGOLIA "MN" |
Definition at line 921 of file m2mb_wlan_driver.h.
#define MONTENEGRO "ME" |
Definition at line 840 of file m2mb_wlan_driver.h.
#define MONTENEGRO "ME" |
Definition at line 840 of file m2mb_wlan_driver.h.
#define MOROCCO "MA" |
Definition at line 855 of file m2mb_wlan_driver.h.
#define NEPAL "NP" |
Definition at line 945 of file m2mb_wlan_driver.h.
#define NETHERLAND_ANTILLES "AN" |
Definition at line 811 of file m2mb_wlan_driver.h.
#define NETHERLANDS "NL" |
Definition at line 810 of file m2mb_wlan_driver.h.
#define NEW_ZEALAND "NZ" |
Definition at line 891 of file m2mb_wlan_driver.h.
#define NICARAGUA "NI" |
Definition at line 922 of file m2mb_wlan_driver.h.
#define NIGERIA "NG" |
Definition at line 948 of file m2mb_wlan_driver.h.
#define NORTHERN_MARIANA_ISLANDS "MP" |
Definition at line 923 of file m2mb_wlan_driver.h.
#define NORWAY "NO" |
Definition at line 812 of file m2mb_wlan_driver.h.
#define OMAN "OM" |
Definition at line 813 of file m2mb_wlan_driver.h.
#define PAKISTAN "PK" |
Definition at line 934 of file m2mb_wlan_driver.h.
#define PALAU "PW" |
Definition at line 924 of file m2mb_wlan_driver.h.
#define PANAMA "PA" |
Definition at line 867 of file m2mb_wlan_driver.h.
#define PARAGUAY "PY" |
Definition at line 925 of file m2mb_wlan_driver.h.
#define PERU "PE" |
Definition at line 892 of file m2mb_wlan_driver.h.
#define PHILIPPINES "PH" |
Definition at line 893 of file m2mb_wlan_driver.h.
#define POLAND "PL" |
Definition at line 814 of file m2mb_wlan_driver.h.
#define PORTUGAL "PT" |
Definition at line 815 of file m2mb_wlan_driver.h.
#define PUERTO_RICO "PR" |
Definition at line 894 of file m2mb_wlan_driver.h.
#define QATAR "QA" |
Definition at line 935 of file m2mb_wlan_driver.h.
#define REUNION "RE" |
Definition at line 842 of file m2mb_wlan_driver.h.
#define ROMANIA "RO" |
Definition at line 816 of file m2mb_wlan_driver.h.
#define RUSSIA "RU" |
Definition at line 862 of file m2mb_wlan_driver.h.
#define RWANDA "RW" |
Definition at line 895 of file m2mb_wlan_driver.h.
#define SAINT_BARTHELEMY "BL" |
Definition at line 843 of file m2mb_wlan_driver.h.
#define SAINT_KITTS_AND_NEVIS "KN" |
Definition at line 950 of file m2mb_wlan_driver.h.
#define SAINT_LUCIA "LC" |
Definition at line 952 of file m2mb_wlan_driver.h.
#define SAINT_MARTIN "MF" |
Definition at line 844 of file m2mb_wlan_driver.h.
#define SAINT_PIERRE_AND_MIQUELON "PM" |
Definition at line 845 of file m2mb_wlan_driver.h.
#define SAINT_VINCENT_AND_THE_GRENADIENS "VC" |
Definition at line 846 of file m2mb_wlan_driver.h.
#define SAMOA "WS" |
Definition at line 847 of file m2mb_wlan_driver.h.
#define SAUDI_ARABIA "SA" |
Definition at line 897 of file m2mb_wlan_driver.h.
#define SENEGAL "SN" |
Definition at line 926 of file m2mb_wlan_driver.h.
#define SERBIA "RS" |
Definition at line 818 of file m2mb_wlan_driver.h.
#define SINGAPORE "SG" |
Definition at line 898 of file m2mb_wlan_driver.h.
#define SLOVAKIA "SK" |
Definition at line 820 of file m2mb_wlan_driver.h.
#define SLOVENIA "SI" |
Definition at line 821 of file m2mb_wlan_driver.h.
#define SOUTH_AFRICA "ZA" |
Definition at line 899 of file m2mb_wlan_driver.h.
#define SPAIN "ES" |
Definition at line 822 of file m2mb_wlan_driver.h.
#define SURINAME "SR" |
Definition at line 848 of file m2mb_wlan_driver.h.
#define SWEDEN "SE" |
Definition at line 823 of file m2mb_wlan_driver.h.
#define SWITZERLAND "CH" |
Definition at line 824 of file m2mb_wlan_driver.h.
#define TAIWAN "TW" |
Definition at line 900 of file m2mb_wlan_driver.h.
#define TANZANIA "TZ" |
Definition at line 937 of file m2mb_wlan_driver.h.
#define THAILAND "TH" |
Definition at line 901 of file m2mb_wlan_driver.h.
#define TOGO "TG" |
Definition at line 849 of file m2mb_wlan_driver.h.
#define TRINIDAD_Y_TOBAGO "TT" |
Definition at line 902 of file m2mb_wlan_driver.h.
#define TUNISIA "TN" |
Definition at line 856 of file m2mb_wlan_driver.h.
#define TURKEY "TR" |
Definition at line 825 of file m2mb_wlan_driver.h.
#define TURKS_AND_CAICOS "TC" |
Definition at line 927 of file m2mb_wlan_driver.h.
#define UAE "AE" |
Definition at line 904 of file m2mb_wlan_driver.h.
#define UGANDA "UG" |
Definition at line 903 of file m2mb_wlan_driver.h.
#define UKRAINE "UA" |
Definition at line 864 of file m2mb_wlan_driver.h.
#define UNITED_KINGDOM "GB" |
Definition at line 826 of file m2mb_wlan_driver.h.
#define UNITED_STATES "US" |
Definition at line 905 of file m2mb_wlan_driver.h.
#define URUGUAY "UY" |
Definition at line 871 of file m2mb_wlan_driver.h.
#define US_VIRGIN_ISLANDS "VI" |
Definition at line 930 of file m2mb_wlan_driver.h.
#define UZBEKISTAN "UZ" |
Definition at line 857 of file m2mb_wlan_driver.h.
#define VANUATU "VU" |
Definition at line 928 of file m2mb_wlan_driver.h.
#define VENEZUELA "VE" |
Definition at line 872 of file m2mb_wlan_driver.h.
#define VIET_NAM "VN" |
Definition at line 906 of file m2mb_wlan_driver.h.
#define WALLIS_AND_FUTUNA "WF" |
Definition at line 850 of file m2mb_wlan_driver.h.
#define ZIMBABWE "ZW" |
Definition at line 827 of file m2mb_wlan_driver.h.
typedef struct M2MB_CONNECTION_DATA_S M2MB_CONNECTION_DATA_T |
Connection event info for both AP and STA modes.
Data structure that presents connect event information from the driver to the application. The application uses this data structure to interpret the event payload received with an M2MB_WLAN_CONNECT_CB, M2MB_WLAN_DISCONNECT_CB events.
typedef struct M2MB_STA_BMISS_CONFIG_S M2MB_STA_BMISS_CONFIG_T |
Beacon miss parameters setting in firmware.
Structure used to set beacon missing parameters in the firmware. Either of the values will be set by the user. Based on the values the WLAN firmware detects link loss and disconnected from the network. This can be settled by using m2mb_wlan_set_param with M2MB_WLAN_PARAM_BMISS_CONFIG flag.
typedef struct M2MB_WEP_KEY_INFO_S M2MB_WEP_KEY_INFO_T |
WEP key info structure.
Structure for setting key index and key, which will be used in upcoming association when WEP security is enabled.
typedef struct M2MB_WLAN_BSS_SCAN_CB_INFO_S M2MB_WLAN_BSS_SCAN_CB_INFO_T |
Structure to get the count for scan results.
Structure for storing a number of scan results and pointer to the array of M2MB_WLAN_BSS_SCAN_INFO_T type structures, so that the user can come to know the total number of filled structures. The application uses this data structure to interpret the event payload received with an M2MB_WLAN_SCAN_COMPLETE_CB event.
typedef struct M2MB_WLAN_BSS_SCAN_INFO_S M2MB_WLAN_BSS_SCAN_INFO_T |
Structure of members for scan results.
Structure for storing scan results. User application should send the array of this structure as a parameter to get filled when scan completed by the driver. This structure can be passed as one of the parameters for the m2mb_wlan_scan function.
typedef VOID(* M2MB_WLAN_CALLBACK) (UINT8 device_id, UINT8 event_id, INT32 status, VOID *data, VOID *usr_ctx) |
WLAN call back prototype.
Type definition of the user callback to receive asynchronous events from WLAN driver. Device_id represents 0 or 1 after successful initialization, event_id is asynchronous events from WLAN driver. status is 0 for success -1 for failure. data is data from WLAN driver
Definition at line 965 of file m2mb_wlan_driver.h.
typedef struct M2MB_WLAN_PHY_DATA_RATE_S M2MB_WLAN_PHY_DATA_RATE_T |
typedef struct M2MB_WLAN_POWER_MODE_SETTING_S M2MB_WLAN_POWER_MODE_SETTING_T |
Data structure for power mode setting.
Data structure used to request the necessary operating power mode (Maximum Performance or Power Save mode).
typedef struct M2MB_WLAN_PROFILE_PNO_S M2MB_WLAN_PROFILE_PNO_T |
Preferred Network Offload setting in firmware.
Data structure to set an AP profile information to search for when enabling the PNO feature. This data structure is used to set the profile by passing the required profile information to m2mb_wlan_set_param() with M2MB_WLAN_SETTING_PROFILE_INFO as flag
typedef struct M2MB_WLAN_RAW_SEND_PARAMS_S M2MB_WLAN_RAW_SEND_PARAMS_T |
802.11 RAW frame.
Data structure that the application is to pass when invoking m2mb_wlan_send_raw_packet() to transmit a raw frame.
typedef struct M2MB_WLAN_WPS_CB_INFO_S M2MB_WLAN_WPS_CB_INFO_T |
WPS cb information.
Data structure to get WPS command results from the driver.
typedef struct M2MB_WLAN_WPS_CREDENTIALS_S M2MB_WLAN_WPS_CREDENTIALS_T |
WPS credentials information.
Data structure to pass WPS credentials from the driver to the application.
enum M2MB_WLAN_11N_HT_E |
11n HT configurations.
Enumeration for WLAN 11n HT configurations.
Enumerator | |
---|---|
M2MB_WLAN_11N_DISABLED | 802.11n disabled. Not supported |
M2MB_WLAN_11N_HT20 | 802.11n with bandwidth 20M. This will be default |
M2MB_WLAN_11N_HT40 | 802.11n with bandwidth 40M. |
Definition at line 469 of file m2mb_wlan_driver.h.
Different 802.1x methods supported by WLAN firmware.
Enumeration that identifies 802.1x enterprise supported by the WLAN subsystem. The application sets the required 802.1x method from one of these methods using m2mb_wlan_set_param() with M2MB_WLAN_PARAM_EAP_8021X and the required information should be filled in the M2MB_WLAN_EAP_T structure.
Definition at line 260 of file m2mb_wlan_driver.h.
Different authentication modes supported by WLAN.
Enumeration that identifies authentication modes supported by the WLAN subsystem. The application sets the required authentication from one of these modes using m2mb_wlan_set_param() with M2MB_WLAN_PARAM_AUTH_TYPE as the flag.
Definition at line 217 of file m2mb_wlan_driver.h.
enum M2MB_WLAN_CB_ID_E |
Events for an application registered CB functions.
WLAN driver invokes an application-registered callback function to indicate various asynchronous events to the application. This data structure enumerates the list of various event IDs for which the WLAN driver invokes the application-registered callback function.
Definition at line 507 of file m2mb_wlan_driver.h.
DTIM policies.
Enumeration of supported DTIM policies.
Definition at line 694 of file m2mb_wlan_driver.h.
Different encryption modes supported by WLAN.
Enumeration that identifies encryption modes supported by the WLAN subsystem. The application sets the required encryption from one of these modes using m2mb_wlan_set_param() with M2MB_WLAN_PARAM_ENCRYPTION_TYPE as the flag.
Definition at line 241 of file m2mb_wlan_driver.h.
MGMT frame types.
Enum declaration for management frame types.
Definition at line 590 of file m2mb_wlan_driver.h.
enum M2MB_WLAN_MODE_E |
WLAN interface operating modes.
Enumeration that provides a list of supported operating modes for each virtual device.
Definition at line 445 of file m2mb_wlan_driver.h.
enum M2MB_WLAN_MODE_UP_E |
Enumerator | |
---|---|
M2MB_WLAN_MODE_DOWN | |
M2MB_WLAN_MODE_STA_UP | |
M2MB_WLAN_MODE_AP_UP | |
M2MB_WLAN_MODE_BOTH_UP |
Definition at line 768 of file m2mb_wlan_driver.h.
WLAN interface set or get flags.
Enumeration of flags which are used to set or get the parameters to the driver and from the driver. Some flags may support both set and get functionalities.
Definition at line 303 of file m2mb_wlan_driver.h.
enum M2MB_WLAN_PHY_MODE_E |
802.11 PHY modes.
Enumeration that provides a list of supported 802.11 PHY modes.
Definition at line 481 of file m2mb_wlan_driver.h.
power save modes.
Enumeration of a list of supported power modes in the WLAN subsystem.
Definition at line 651 of file m2mb_wlan_driver.h.
power save modes.
Enumeration of a list of supported power modes in the WLAN subsystem.
Enumerator | |
---|---|
M2MB_WLAN_POWER_MODULE_USER | If the application requires the system to be in Maximum Performance mode. |
M2MB_WLAN_POWER_MODULE_INVALID |
Definition at line 667 of file m2mb_wlan_driver.h.
802.11 header types.
Enumeration of a list of supported 802.11 header types for a Raw mode transmission.
Definition at line 605 of file m2mb_wlan_driver.h.
action after WPS procedure success.
Enumerator | |
---|---|
M2MB_WLAN_NO_ACTION_POST_WPS_PROCEDURE | No action to be taken after WPS initiation succeeds. |
M2MB_WLAN_L2_CONNECT_POST_WPS_PROCEDURE | Set up a connection after WPS initiation succeeds. |
Definition at line 534 of file m2mb_wlan_driver.h.
enum M2MB_WLAN_WPS_MODE_E |
WPS methods.
Enumeration for different types of WPS methods.
Enumerator | |
---|---|
M2MB_WLAN_WPS_PIN_MODE | WPS PIN method. |
M2MB_WLAN_WPS_PBC_MODE | WPS Pushbutton method. |
M2MB_WLAN_WPS_DEFAULT_PIN_MODE | Default PIN (No support) |
Definition at line 526 of file m2mb_wlan_driver.h.
INT32 m2mb_wlan_add_ie_mgmt_frames | ( | UINT8 | device_id, |
M2MB_WLAN_MGMT_FRAME_TYPE_E | frame_type, | ||
INT8 * | oui, | ||
INT8 * | vndr_spefc_data | ||
) |
Adding information element for mgmt frames.
This API is used to add the information elements to the management frames. the management frames are any one of from M2MB_WLAN_MGMT_FRAME_TYPE_E enum.
[in] | device_id | Specific device Identifier [mandatory] |
[in] | frame_type | [mandatory] Frame type to add IE. In STA mode, the IE can be added to probe request. In AP mode, the IE can be added to probe response and beacon frame. |
[in] | oui | [mandatory] OUI of vendor specific element. |
[in] | vndr_spefc_data | [mandatory] vendor specific data to be added in IE for the particular mgmt frame. |
m2mb_wlan_add_ie_mgmt_frames(device_id, frame_type, oui, vendor_content);
This API is part of connect process in non-AP station mode.
This function scans for particular SSID given by user and try to connects to it.If SSID is set to a non-empty string before calling this API then it is considered as a connect request. Then, user callback gets called after connect event with status.
[in] | device_id | Specific device Identifier [mandatory] |
[in] | ssid | SSID of the particular Access Point to connect [mandatory] |
m2m_wlan_connect ( device_id, ssid);
This API is part of create process in soft-AP mode.
This function creates the network with SSID and security types given by user. User should given channel number also. Or else default values will take
[in] | device_id | Specific device Identifier [mandatory] |
m2mb_wlan_create ( device_id);
Disables the WLAN module.
This API disables the WLAN module. After this API, no WLAN API will work until application enables it again by using m2mb_wlan_init()
Deregister the cb in WLAN driver.
This API allows to deregister the call back in WLAN driver.
[in] | device_id | Specific device Identifier [mandatory] |
m2mb_wlan_deregister_cb( device_id );
Disconnects a device from a network.
This API allows the user to disconnect a device, or abort the current connection process. After disconnection, the user call back will get asynchronous event from WLAN driver
[in] | device_id | Specific device Identifier [mandatory] |
m2mb_wlan_disconnect( device_id );
INT32 m2mb_wlan_get_param | ( | UINT8 | device_id, |
M2MB_WLAN_PARAM_FLAG_E | flag, | ||
void * | data | ||
) |
Getting the value[M2M_WLAN_PARAM_FLAG_E] from WLAN.
This API returns the value of WLAN parameter requested by the user. The user can use M2M_WLAN_PARAM_FLAG_E flags as references to pass to WLAN driver.
[in] | device_id | Specific device Identifier [mandatory] |
[in] | flag | Get the one of the flags from M2M_WLAN_PARAM_FLAG_E enumeration |
[in,out] | data | Pass the pointer from user, it will be returned from the WLAN driver |
m2mb_wlan_get_param(device_id, M2M_WLAN_PARAM_OPERATION_MODE, &operating_mode);
INT8 m2mb_wlan_init | ( | M2MB_WLAN_11N_HT_E | mode | ) |
WLAN module initialization.
This API enables and initializes WLAN module.
Removes the interface from the WLAN driver.
This API used to remove the device id or interface from the WLAN driver. But, this API does not disable the WLAN module
[in] | device_id | Specific device Identifier [mandatory] |
m2mb_wlan_interface_deinit(device_id);
INT8 m2mb_wlan_interface_init | ( | M2MB_WLAN_MODE_E | mode, |
M2MB_WLAN_CALLBACK | m2m_wlan_user_cb, | ||
VOID * | appCtx, | ||
UINT8 * | device_id | ||
) |
WLAN Interface Initialization.
This API initializes the interface depend on the mode given by the user and the WLAN driver returns the device_id after initialization. Since, m2mb_wlan_init is the dependency for this API, so m2mb_wlan_init should call before calling the m2m_wlan_interface_init.
[in] | mode | User should pass the mode using M2MB_WLAN_MODE_E. |
[in] | m2m_wlan_user_cb | Application call back for WLAn events |
[in] | appCtx | Application context |
[in,out] | device_id | Device ID user will get after successful m2mb_wlan_interface_init |
m2mb_wlan_interface_init( M2MB_WLAN_MODE_E mode , M2MB_WLAN_CALLBACK m2mB_wlan_user_cb, VOID *appCtx, UINT8 *device_id);
INT8 m2mb_wlan_register_cb | ( | UINT8 | device_id, |
M2MB_WLAN_CALLBACK | m2m_wlan_cb, | ||
VOID * | ctx | ||
) |
Registering a call back in WLAN driver to handle events.
This API allows to overwrite the callback function which was already registered by m2mb_wlan_interface_init function.
[in] | device_id | Specific device Identifier [mandatory] |
[in] | m2m_wlan_cb | Application call back for WLAn events |
[in] | ctx | Application context |
m2mb_wlan_register_cb( UINT8 device_id, M2MB_WLAN_CALLBACK m2m_wlan_cb, VOID *ctx );
INT8 m2mb_wlan_register_wps_cb | ( | UINT8 | device_id, |
M2MB_WLAN_CALLBACK | m2m_wlan_cb, | ||
VOID * | ctx | ||
) |
Registering a call back for handling WPS events.
This API allows to register a callback function to handle WPS events from WLAN firmware.
[in] | device_id | Specific device Identifier [mandatory] |
[in] | m2m_wlan_cb | call back function [mandatory] |
[in] | ctx | app level context [mandatory] |
m2mb_wlan_register_wps_cb( UINT8 device_id, M2MB_WLAN_CALLBACK m2m_wlan_cb, VOID *ctx );
INT8 m2mb_wlan_scan | ( | UINT8 | device_id, |
UINT8 * | ssid, | ||
UINT8 | no_of_channels, | ||
UINT8 * | channel_list, | ||
UINT8 | scan_type, | ||
UINT32 | num_of_scan_entries, | ||
M2MB_WLAN_BSS_SCAN_INFO_T * | result_buff, | ||
M2MB_WLAN_CALLBACK | m2mb_user_cb, | ||
VOID * | ctx | ||
) |
This API is used to initiate a wireless scan to find nearby access points m2mb_wlan_init and m2mb_wlan_interface_init should call before calling m2mb_wlan_scan.
This function does the wireless scan depending on the parameters passed by the user, and WLAN driver fill the user buffer with the most recent scan results. User callback function gets the asynchronous event for scan complete after completion. The last parameter of user callback contains the scan results with count.
[in] | device_id | Specific device Identifier [mandatory]. Since device id 0 and device id 1 supports STA mode, user can pass any device id after initialization of it |
[in] | ssid | SSID of the particular Access Point to scan [optional] |
[in] | no_of_channels | Number of channels to scan [optional]. 0 for all channel scan |
[in] | channel_list | List of channels that user wants to scan. |
[in] | scan_type | Scanning type ; [active - 0] or [passive - 1] |
[in] | num_of_scan_entries | User can pass number of entries of scan results and he should provide buffer of that number of scan results. Array of M2MB_WLAN_BSS_SCAN_INFO_T structures |
[in,out] | result_buff | Buffer which is provided by the user to store scan results. |
m2m_wlan_scan( deviceId, ssid, no_of_channels, channel_list, scan_type, 25, resultBuffer);
INT32 m2mb_wlan_send_raw_packet | ( | UINT8 | device_id, |
M2MB_WLAN_RAW_SEND_PARAMS_T * | params | ||
) |
API to send raw packets in the air.
This API is used to send the raw packets or unsolicited tx.
[in] | device_id | Specific device Identifier [mandatory] |
[in] | params | [mandatory] User should specifies the structure members accordingly. |
m2mb_wlan_send_raw_packet(WHANDLE, &raw_packet_params);
INT32 m2mb_wlan_set_param | ( | UINT8 | device_id, |
M2MB_WLAN_PARAM_FLAG_E | flag, | ||
VOID * | data | ||
) |
Setting the value[M2M_WLAN_PARAM_FLAG_E] to WLAN.
This API sets the value to WLAN driver sent by the user. The user can use M2M_WLAN_PARAM_FLAG_E flags as references to pass to WLAN driver.
[in] | device_id | Specific device Identifier [mandatory] |
[in] | flag | Set the one of the flags from M2M_WLAN_PARAM_FLAG_E enumeration |
[in,out] | data | Pass the pointer which contain the value from user, so that the value will be set in the WLAN driver |
m2mb_wlan_set_param(device_id, M2M_WLAN_PARAM_OPERATION_MODE, &operating_mode);
L2 association status for both STA and AP modes.
This API will return whether L2 connection is completed or not in STA and AP modes. Checking L2 connection for both device IDs.
[in] | device_id | Specific device Identifier [mandatory] |
m2mb_wlan_status_get(device_id);
INT32 m2mb_wlan_wps_start | ( | UINT8 | device_id, |
M2MB_WLAN_WPS_MODE_E | method, | ||
M2MB_WLAN_WPS_CONNECT_ACTION_E | connect_action, | ||
UINT8 * | pin, | ||
UINT8 * | ssid | ||
) |
This API is part of WPS procedure.
This function is used to set up the WPS information and start the method and L2 configuration given by the user in both STA and AP modes.
[in] | device_id | Specific device Identifier [mandatory] |
[in] | method | PIN or PUSH method [mandatory] |
[in] | connect_action | L2 connect action [mandatory] |
[in] | pin | pin in PIN method [optional] |
[in] | ssid | ssid for default pin method[N/S] [optional] |
m2mb_wlan_wps_start(UINT8 device_id, UINT8 method, UINT8 connect_action, UINT8 *pin, UINT8 *ssid);