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