Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
csr_wifi_vif_utils.h File Reference
#include "csr_wifi_private_common.h"

Go to the source code of this file.

Macros

#define CSR_WIFI_NUM_INTERFACES   (u8)0x1
 
#define CSR_WIFI_INTERFACE_IN_USE   (u16)0x0
 
#define CSR_WIFI_INTERFACE_ZERO   0
 
#define CSR_WIFI_INTERFACE_STA   0
 
#define CSR_WIFI_INTERFACE_AMP   0
 
#define CSR_WIFI_VIF_UTILS_UNDEFINED_TAG   0xFFFF
 
#define CsrWifiVifUtilsGetVifTagFromEvent(msg)   ((u16) * ((u16 *) ((u8 *) (msg) + sizeof(CsrWifiFsmEvent))))
 
#define CsrWifiVifUtilsGetVifTagFromHipEvent(msg)   ((msg)->virtualInterfaceIdentifier & 0x00FF)
 
#define CsrWifiVifUtilsPackHipEventVif(type, interfaceId)   ((u16)((interfaceId) | ((type) << 8)))
 
#define CsrWifiVifUtilsLogTextRegister()
 

Functions

u8 CsrWifiVifUtilsCheckCompatibility (u8 interfaceCapability, u8 *currentInterfaceModes, u16 interfaceTag, CsrWifiInterfaceMode mode)
 First checks if the mode is supported capability bitmap of the interface. If this succeeds, then checks if running this mode on this interface is allowed.
 
u8 CsrWifiVifUtilsIsSupported (u16 interfaceTag)
 Checks if the specified interface is supported. NOTE: Only checks that the interface is supported, no checks are made to determine whether a supported interface may be made active.
 

Macro Definition Documentation

#define CSR_WIFI_INTERFACE_AMP   0

Definition at line 33 of file csr_wifi_vif_utils.h.

#define CSR_WIFI_INTERFACE_IN_USE   (u16)0x0

Definition at line 28 of file csr_wifi_vif_utils.h.

#define CSR_WIFI_INTERFACE_STA   0

Definition at line 32 of file csr_wifi_vif_utils.h.

#define CSR_WIFI_INTERFACE_ZERO   0

Definition at line 31 of file csr_wifi_vif_utils.h.

#define CSR_WIFI_NUM_INTERFACES   (u8)0x1

Definition at line 27 of file csr_wifi_vif_utils.h.

#define CSR_WIFI_VIF_UTILS_UNDEFINED_TAG   0xFFFF

Definition at line 36 of file csr_wifi_vif_utils.h.

#define CsrWifiVifUtilsGetVifTagFromEvent (   msg)    ((u16) * ((u16 *) ((u8 *) (msg) + sizeof(CsrWifiFsmEvent))))

Definition at line 39 of file csr_wifi_vif_utils.h.

#define CsrWifiVifUtilsGetVifTagFromHipEvent (   msg)    ((msg)->virtualInterfaceIdentifier & 0x00FF)

Definition at line 43 of file csr_wifi_vif_utils.h.

#define CsrWifiVifUtilsLogTextRegister ( )

Definition at line 100 of file csr_wifi_vif_utils.h.

#define CsrWifiVifUtilsPackHipEventVif (   type,
  interfaceId 
)    ((u16)((interfaceId) | ((type) << 8)))

Definition at line 46 of file csr_wifi_vif_utils.h.

Function Documentation

u8 CsrWifiVifUtilsCheckCompatibility ( u8  interfaceCapability,
u8 currentInterfaceModes,
u16  interfaceTag,
CsrWifiInterfaceMode  mode 
)

First checks if the mode is supported capability bitmap of the interface. If this succeeds, then checks if running this mode on this interface is allowed.

Parameters
[in]u8: interface capability bitmap
[in]u8*: pointer to the array of current interface modes
[in]u16: interfaceTag
[in]CsrWifiInterfaceMode: mode
Returns
u8 : returns true if the interface is allowed to operate in the mode otherwise false.
u8 CsrWifiVifUtilsIsSupported ( u16  interfaceTag)

Checks if the specified interface is supported. NOTE: Only checks that the interface is supported, no checks are made to determine whether a supported interface may be made active.

Parameters
[in]u16: interfaceTag
Returns
u8 : returns true if the interface is supported, otherwise false.