100 #ifndef M2MB_NCM_API_H_ 101 #define M2MB_NCM_API_H_ 104 #define M2MB_NCM_FLAG_KEEP_ALIVE ( 1 << 0 ) 105 #define M2MB_NCM_FLAG_DYNAMIC_KEEP_ALIVE ( 1 << 1 ) 107 #define M2MB_NCM_FLAG_ROAMING ( 1 << 2 ) 108 #define M2MB_NCM_FLAG_WITH_STAT ( 1 << 3 ) 110 #define M2MB_WPS_PIN_LENGTH 8 111 #define M2MB_SECURITY_KEY_LENGTH_MAX 64
UINT32 currEarlyWakeupAdjInMs
UINT32 ucastNonNullRxPkts
struct M2MB_NCM_CONNECTED_STA_INFO M2MB_NCM_CONNECTED_STA_INFO_T
Connected station information.
UINT32 ucastFilteredRejectedTxPkts
struct M2MB_NCM_IFCFG M2MB_NCM_IFCFG_T
Network Connect Manager Interface configuration.
UINT32 bcastFilteredRejectedRxPkts
INT32 m2mb_ncm_deregister_cb(UINT8 handle)
This API is used to deregister the user callback in NCM module.
struct M2MB_NCM_POWER_SAVE_CFG M2MB_NCM_POWER_SAVE_CFG_T
Structure of members for scan results.
#define M2MB_WLAN_MAC_LEN
M2MB_NWIF_IPV6_CONFIG_T * pIPv6Cfg
#define M2MB_WPS_PIN_LENGTH
UINT32 avgEarlyWakeupAdjInMs
UINT32 fastScanIntervalInMs
UINT32 beaconResyncSuccessCnt
M2MB_NCM_CFG_OPCODE_E
Opcode to be used in configuration API.
union M2MB_NCM_CFG_PTR M2MB_NCM_CFG_PTR_T
Configuration pointer union.
UINT32 mcastFilteredRejectedTxPkts
struct M2MB_NCM_STA_CFG M2MB_NCM_STA_CFG_T
STA mode configuration information.
M2MB_NCM_POWER_SAVE_CFG_T * pPowerCfg
UINT32 bcastFilteredRejectedTxPkts
INT32 m2mb_ncm_stop(UINT8 handle)
Disconnect or Down the NCM module.
M2MB_WLAN_AUTH_TYPE_E auth_Mode
UINT8 macAddr[M2MB_WLAN_MAC_LEN]
UINT8 ssid[M2MB_WLAN_MAX_SSID_LEN+1]
VOID(* M2MB_NCM_SCAN_CB_T)(UINT8 device_id, UINT8 event_id, INT32 status, VOID *data)
UINT32 m2mb_ncm_check_handle_init(UINT32 handle)
This API is used to check the handle is initialized or not.
M2MB_STATUS_T m2mb_ncm_deinit(UINT8 handle)
This API is used to deintializes the NCM module.
struct M2MB_NCM_WPS_CFG M2MB_NCM_WPS_CFG_T
Station mode WPS configuration information.
M2MB_WLAN_AUTH_TYPE_E
Different authentication modes supported by WLAN.
M2MB_NCM_RETRY_CFG_T * pRtCfg
UINT32 slowScanIntervalInMs
UINT32 mcastFilteredRejectedRxPkts
UINT32 bcastFilteredAcceptedRxPkts
UINT8 pin[M2MB_WPS_PIN_LENGTH+1]
M2MB_NCM_IP_CFG_T * pIPCfg
M2MB_L2_L3_NCM_EVENTS_ID_E
Events from NCM module.
M2MB_NCM_AP_CFG_T * pAPCfg
enum M2MB_NCM_CTX_STATES M2MB_NCM_CTX_STATES_E
Different states in NCM module.
struct M2MB_NCM_DEVICE_STATS M2MB_NCM_DEVICE_STATS_T
Packet count statistics.
M2MB_NCM_ROAMING_CFG_T * pRCfg
M2MB_NCM_DHCP_SERVER_CFG_T * pDhcpSCfg
struct M2MB_NCM_AP_PROFILE M2MB_NCM_AP_PROFILE_T
AP profile information.
UINT32 totalActiveTimeInMs
UINT32 inactivity_ap_period
UINT16 l2_connect_time_delay
VOID(* M2MB_NCM_CB_T)(UINT8 device_id, UINT8 event, INT32 status_code, VOID *cb_Ctx)
NCM module user callback prototype.
M2MB_DISASSOC_REASON_T
Disconnection reason.
UINT32 ucastNonNullTxPkts
M2MB_NCM_STA_CFG_T * pSTACfg
DHCP server configuration for the device in AP mode.
M2MB_NCM_AP_PROFILE_T * pAP
Station mode WPS configuration information.
UINT32 totalPowersaveTimeInMs
UINT8 m2mb_ncm_init(UINT8 mode, UINT8 bandwidth, M2MB_NCM_CB_T cb, VOID *cb_ctx)
NCM module initialization.
UINT32 bcastFilteredAcceptedTxPkts
M2MB_NCM_WPS_CFG_T * pWpsCfg
M2MB_NWIF_DNS_SERVER_LIST_T * pDNSList
UINT32 mcastFilteredAcceptedRxPkts
INT32 m2mb_ncm_get_state(UINT8 device_id)
Current state of NCM module.
struct M2MB_NCM_IP_CFG M2MB_NCM_IP_CFG_T
Generic IP configuration.
INT32 m2mb_ncm_start(UINT8 handle)
This API is used to start the NCM module after initialization.
M2MB_NCM_IFCFG_T * pIfCfg
M2MB_NCM_CTX_STATES
Different states in NCM module.
UINT32 ucastFilteredAcceptedRxPkts
INT32 m2mb_ncm_get_cfg(UINT8 handle, M2MB_NCM_CFG_OPCODE_E opCode, M2MB_NCM_CFG_PTR_T *p)
This API is used to get different configurations of NCM module.
M2MB_NCM_CONNECTED_STA_INFO_T * pInfo
Network Connect Manager Interface configuration.
M2MB_NCM_DEVICE_STATS_T * pStat
M2MB_WLAN_ENCRYPT_TYPE_E encryption_Type
M2MB_NCM_INIT_MODE_E
Different modes.
AP mode configuration information.
#define M2MB_WLAN_MAX_SSID_LEN
UINT8 security_Key[M2MB_SECURITY_KEY_LENGTH_MAX+1]
STA mode configuration information.
UINT32 fastScanDurationInMs
struct M2MB_NCM_ROAMING_CFG M2MB_NCM_ROAMING_CFG_T
Roaming configuration.
struct M2MB_NCM_DHCP_SERVER_CFG M2MB_NCM_DHCP_SERVER_CFG_T
DHCP server configuration for the device in AP mode.
UINT32 earlyTerminationCnt
UINT32 beaconsReceivedCnt
Configuration pointer union.
UINT16 scan_retry_time_delay
UINT16 l3_retry_time_delay
UINT32 ucastFilteredRejectedRxPkts
M2MB_WLAN_ENCRYPT_TYPE_E
Different encryption modes supported by WLAN.
struct M2MB_NCM_RETRY_CFG M2MB_NCM_RETRY_CFG_T
Retry configuration.
Generic IP configuration.
UINT32 ucastFilteredAcceptedTxPkts
INT32 m2mb_ncm_set_cfg(UINT8 handle, M2MB_NCM_CFG_OPCODE_E opCode, M2MB_NCM_CFG_PTR_T *p)
This API is used to set the different configurations in NCM module.
UINT32 forceScanIntervalInMs
struct M2MB_NCM_AP_CFG M2MB_NCM_AP_CFG_T
AP mode configuration information.
#define M2MB_SECURITY_KEY_LENGTH_MAX
Connected station information.
INT32 m2mb_ncm_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 *scanentries, M2MB_NCM_SCAN_CB_T m2m_ncm_scan_cb, VOID *usr_ctx)
This API is used to get the WLAN scan results. This API expects m2mb_ncm_init prior to it in STA mode...
UINT32 mcastFilteredAcceptedTxPkts
M2MB_NWIF_IPV4_CONFIG_T * pIPv4Cfg
For use with m2mb_nwif_cfgget() to get IP addresses of DNS servers.
M2MB_NCM_IPFLAG_SETTING_E
IP configuration.
INT32 m2mb_ncm_register_cb(UINT8 handle, M2MB_NCM_CB_T m2mb_ncm_cb, VOID *Ctx)
This API is used to register application callback in NCM module.
UINT32 beaconResyncFailureCnt