XDK API  3.4.0
Documentation
Macros | Functions | Variables
WLAN.c File Reference
#include "XdkCommonInfo.h"
#include "XDK_WLAN.h"
#include <stdio.h>
#include "WLANHostPgm.h"
#include "BCDS_WlanConnect.h"
#include "BCDS_NetworkConfig.h"
#include "Serval_Ip.h"
#include "simplelink.h"
#include "FreeRTOS.h"
#include "task.h"
#include "wlan.h"
+ Include dependency graph for WLAN.c:

Macros

#define BCDS_MODULE_ID   XDK_COMMON_ID_WLAN
 
#define WLAN_CONNECT_WPA_RETRY_MAX   INT32_C(3)
 
#define WLAN_MAC_ADDR_LENGTH   UINT8_C(6)
 
#define WLAN_NETWORKCONFIG_FAILURE   INT32_C(-1)
 
#define WLAN_NETWORKCONFIG_ONE   UINT8_C(1)
 
#define WLAN_NETWORKCONFIG_SUCCESS   INT32_C(0)
 
#define WLAN_NETWORKCONFIG_TIMEOUT   UINT16_C(0xFF)
 

Functions

Retcode_T WLAN_ConvertIPAddressToString (uint32_t ipAddress, char *string)
 
Retcode_T WLAN_Disable (void)
 This will disable the WLAN. More...
 
Retcode_T WLAN_Enable (void)
 This will enable the WLAN. More...
 
Retcode_T WLAN_IsIpChanged (bool *ipChangeStatus, uint32_t *newIp)
 This will validate if the WLAN IP configuration changed since WLAN_Enable. More...
 
Retcode_T WLAN_Setup (WLAN_Setup_T *setup)
 This will setup the WLAN. More...
 
static Retcode_T WLANEnterpriseWPA2Connect (void)
 WLANEnterpriseWPA2Connect will setup Enterprise WPA2 connection. More...
 
static Retcode_T WLANIpCredentialsValidateAndLog (void)
 Validates the WLAN IP credential informations and logs it. More...
 
static Retcode_T WLANPersonalWPA2Connect (void)
 WLANPersonalWPA2Connect will setup Personal WPA2 connection. More...
 
static void WLANVersionLog (void)
 Logs the WLAN chip version informations. More...
 

Variables

static char WLANMacAddress [] = "00:00:00:00:00:00"
 
static WLAN_Setup_T WLANSetup
 

Detailed Description

This module handles the WLAN services (Personal WPA2 and Enterprise WPA2 connection)

Macro Definition Documentation

#define BCDS_MODULE_ID   XDK_COMMON_ID_WLAN
#define WLAN_CONNECT_WPA_RETRY_MAX   INT32_C(3)

Macro used for maximum retry for WlanConnect_WPA API

#define WLAN_MAC_ADDR_LENGTH   UINT8_C(6)

Macro used to specify MAC address length

#define WLAN_NETWORKCONFIG_FAILURE   INT32_C(-1)

Macro for defining -1

#define WLAN_NETWORKCONFIG_ONE   UINT8_C(1)

Macro for defining 1

#define WLAN_NETWORKCONFIG_SUCCESS   INT32_C(0)

Macro for defining 0

#define WLAN_NETWORKCONFIG_TIMEOUT   UINT16_C(0xFF)

Macro for defining timeout

Function Documentation

static Retcode_T WLANEnterpriseWPA2Connect ( void  )
static
Returns
RETCODE_OK on success, or an error code otherwise.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Retcode_T WLANIpCredentialsValidateAndLog ( void  )
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Retcode_T WLANPersonalWPA2Connect ( void  )
static
Returns
RETCODE_OK on success, or an error code otherwise.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void WLANVersionLog ( void  )
static

+ Here is the caller graph for this function:

Variable Documentation

char WLANMacAddress[] = "00:00:00:00:00:00"
static
WLAN_Setup_T WLANSetup
static

< WLAN Setup To keep the MAC address returned by the WLAN network device


All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Sat Jul 28 2018 21:51:48 by doxygen 1.8.8