summaryrefslogtreecommitdiff
path: root/wl1271/utils
diff options
context:
space:
mode:
Diffstat (limited to 'wl1271/utils')
-rw-r--r--wl1271/utils/802_11Defs.h1226
-rw-r--r--wl1271/utils/CmdInterfaceCodes.h1536
-rw-r--r--wl1271/utils/GenSM.c232
-rw-r--r--wl1271/utils/GenSM.h96
-rw-r--r--wl1271/utils/bmtrace_api.h177
-rw-r--r--wl1271/utils/commonTypes.h75
-rw-r--r--wl1271/utils/context.c494
-rw-r--r--wl1271/utils/context.h90
-rw-r--r--wl1271/utils/freq.c125
-rw-r--r--wl1271/utils/freq.h50
-rw-r--r--wl1271/utils/fsm.c321
-rw-r--r--wl1271/utils/fsm.h126
-rw-r--r--wl1271/utils/mem.c230
-rw-r--r--wl1271/utils/osDot11.h687
-rw-r--r--wl1271/utils/queue.c426
-rw-r--r--wl1271/utils/queue.h73
-rw-r--r--wl1271/utils/rate.c1817
-rw-r--r--wl1271/utils/rate.h177
-rw-r--r--wl1271/utils/report.c556
-rw-r--r--wl1271/utils/report.h766
-rw-r--r--wl1271/utils/stack.c163
-rw-r--r--wl1271/utils/stack.h73
-rw-r--r--wl1271/utils/tiQosTypes.h363
-rw-r--r--wl1271/utils/tidef.h411
-rw-r--r--wl1271/utils/timer.c666
-rw-r--r--wl1271/utils/timer.h78
-rw-r--r--wl1271/utils/version.h54
27 files changed, 0 insertions, 11088 deletions
diff --git a/wl1271/utils/802_11Defs.h b/wl1271/utils/802_11Defs.h
deleted file mode 100644
index d8109c3..0000000
--- a/wl1271/utils/802_11Defs.h
+++ /dev/null
@@ -1,1226 +0,0 @@
-/*
- * 802_11Defs.h
- *
- * Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/****************************************************************************
- *
- * MODULE: 802_11Defs.h
- * PURPOSE: Contains 802.11 defines/structures
- *
- ****************************************************************************/
-
-#ifndef _802_11_INFO_DEFS_H
-#define _802_11_INFO_DEFS_H
-
-#include "tidef.h"
-#include "osDot11.h"
-#ifdef XCC_MODULE_INCLUDED
-#include "osDot11XCC.h"
-#endif
-
-#define DOT11_OUI_LEN 4
-#define DOT11_COUNTRY_STRING_LEN 3
-#define DOT11_MAX_SUPPORTED_RATES 32
-
-/* Maximum size of beacon or probe-request information element */
-#define DOT11_WSC_PROBE_REQ_MAX_LENGTH 80
-
-
-typedef enum
-{
- DOT11_B_MODE = 1,
- DOT11_A_MODE = 2,
- DOT11_G_MODE = 3,
- DOT11_DUAL_MODE = 4,
- DOT11_N_MODE = 5,
-
- DOT11_MAX_MODE
-
-} EDot11Mode;
-
-
-/* FrameControl field of the 802.11 header */
-
-/**/
-/* bit 15 14 13 12 11 10 9 8 7-4 3-2 1-0*/
-/* +-------+-----+------+-----+-------+------+------+----+---------+------+----------+*/
-/* | Order | WEP | More | Pwr | Retry | More | From | To | Subtype | Type | Protocol |*/
-/* | | | Data | Mgmt| | Frag | DS | DS | | | Version |*/
-/* +-------+-----+------+-----+-------+------+------+----+---------+------+----------+*/
-/* 1 1 1 1 1 1 1 1 4 2 2*/
-
-
-#define DOT11_FC_PROT_VERSION_MASK ( 3 << 0 )
-#define DOT11_FC_PROT_VERSION ( 0 << 0 )
-
-#define DOT11_FC_TYPE_MASK ( 3 << 2 )
-typedef enum
-{
- DOT11_FC_TYPE_MGMT = ( 0 << 2 ),
- DOT11_FC_TYPE_CTRL = ( 1 << 2 ),
- DOT11_FC_TYPE_DATA = ( 2 << 2 )
-} dot11_Fc_Type_e;
-
-#define DOT11_FC_SUB_MASK ( 0x0f << 4 )
-typedef enum
-{
- /* Management subtypes */
- DOT11_FC_SUB_ASSOC_REQ = ( 0 << 4 ),
- DOT11_FC_SUB_ASSOC_RESP = ( 1 << 4 ),
- DOT11_FC_SUB_REASSOC_REQ = ( 2 << 4 ),
- DOT11_FC_SUB_REASSOC_RESP = ( 3 << 4 ),
- DOT11_FC_SUB_PROBE_REQ = ( 4 << 4 ),
- DOT11_FC_SUB_PROBE_RESP = ( 5 << 4 ),
- DOT11_FC_SUB_BEACON = ( 8 << 4 ),
- DOT11_FC_SUB_ATIM = ( 9 << 4 ),
- DOT11_FC_SUB_DISASSOC = ( 10 << 4 ),
- DOT11_FC_SUB_AUTH = ( 11 << 4 ),
- DOT11_FC_SUB_DEAUTH = ( 12 << 4 ),
- DOT11_FC_SUB_ACTION = ( 13 << 4 ),
-
- /* Control subtypes */
- DOT11_FC_SUB_BAR = ( 8 << 4 ),
- DOT11_FC_SUB_BA = ( 9 << 4 ),
- DOT11_FC_SUB_PS_POLL = ( 10 << 4 ),
- DOT11_FC_SUB_RTS = ( 11 << 4 ),
- DOT11_FC_SUB_CTS = ( 12 << 4 ),
- DOT11_FC_SUB_ACK = ( 13 << 4 ),
- DOT11_FC_SUB_CF_END = ( 14 << 4 ),
- DOT11_FC_SUB_CF_END_CF_ACK = ( 15 << 4 ),
-
- /* Data subtypes */
- DOT11_FC_SUB_DATA = ( 0 << 4 ),
- DOT11_FC_SUB_DATA_CF_ACK = ( 1 << 4 ),
- DOT11_FC_SUB_DATA_CF_POLL = ( 2 << 4 ),
- DOT11_FC_SUB_DATA_CF_ACK_CF_POLL = ( 3 << 4 ),
- DOT11_FC_SUB_NULL_FUNCTION = ( 4 << 4 ),
- DOT11_FC_SUB_CF_ACK = ( 5 << 4 ),
- DOT11_FC_SUB_CF_POLL = ( 6 << 4 ),
- DOT11_FC_SUB_CF_ACK_CF_POLL = ( 7 << 4 ),
- DOT11_FC_SUB_DATA_QOS = ( 8 << 4 ),
- DOT11_FC_SUB_DATA_NULL_QOS = ( 12 << 4 )
-} dot11_Fc_Sub_Type_e;
-
-#define DOT11_FC_TYPESUBTYPE_MASK ( DOT11_FC_TYPE_MASK | DOT11_FC_SUB_MASK )
-typedef enum
-{
- DOT11_FC_ASSOC_REQ = ( DOT11_FC_TYPE_MGMT | DOT11_FC_SUB_ASSOC_REQ ),
- DOT11_FC_ASSOC_RESP = ( DOT11_FC_TYPE_MGMT | DOT11_FC_SUB_ASSOC_RESP ),
- DOT11_FC_REASSOC_REQ = ( DOT11_FC_TYPE_MGMT | DOT11_FC_SUB_REASSOC_REQ ),
- DOT11_FC_REASSOC_RESP = ( DOT11_FC_TYPE_MGMT | DOT11_FC_SUB_REASSOC_RESP ),
- DOT11_FC_PROBE_REQ = ( DOT11_FC_TYPE_MGMT | DOT11_FC_SUB_PROBE_REQ ),
- DOT11_FC_PROBE_RESP = ( DOT11_FC_TYPE_MGMT | DOT11_FC_SUB_PROBE_RESP ),
- DOT11_FC_BEACON = ( DOT11_FC_TYPE_MGMT | DOT11_FC_SUB_BEACON ),
- DOT11_FC_ATIM = ( DOT11_FC_TYPE_MGMT | DOT11_FC_SUB_ATIM ),
- DOT11_FC_DISASSOC = ( DOT11_FC_TYPE_MGMT | DOT11_FC_SUB_DISASSOC ),
- DOT11_FC_AUTH = ( DOT11_FC_TYPE_MGMT | DOT11_FC_SUB_AUTH ),
- DOT11_FC_DEAUTH = ( DOT11_FC_TYPE_MGMT | DOT11_FC_SUB_DEAUTH ),
- DOT11_FC_ACTION = ( DOT11_FC_TYPE_MGMT | DOT11_FC_SUB_ACTION ),
- DOT11_FC_PS_POLL = ( DOT11_FC_TYPE_CTRL | DOT11_FC_SUB_PS_POLL ),
- DOT11_FC_RTS = ( DOT11_FC_TYPE_CTRL | DOT11_FC_SUB_RTS ),
- DOT11_FC_CTS = ( DOT11_FC_TYPE_CTRL | DOT11_FC_SUB_CTS ),
- DOT11_FC_ACK = ( DOT11_FC_TYPE_CTRL | DOT11_FC_SUB_ACK ),
- DOT11_FC_CF_END = ( DOT11_FC_TYPE_CTRL | DOT11_FC_SUB_CF_END ),
- DOT11_FC_CF_END_CF_ACK = ( DOT11_FC_TYPE_CTRL | DOT11_FC_SUB_CF_END_CF_ACK ),
- DOT11_FC_DATA = ( DOT11_FC_TYPE_DATA | DOT11_FC_SUB_DATA ),
- DOT11_FC_DATA_CF_ACK = ( DOT11_FC_TYPE_DATA | DOT11_FC_SUB_DATA_CF_ACK ),
- DOT11_FC_DATA_CF_POLL = ( DOT11_FC_TYPE_DATA | DOT11_FC_SUB_DATA_CF_POLL ),
- DOT11_FC_DATA_CF_ACK_CF_POLL = ( DOT11_FC_TYPE_DATA | DOT11_FC_SUB_DATA_CF_ACK_CF_POLL ),
- DOT11_FC_DATA_NULL_FUNCTION = ( DOT11_FC_TYPE_DATA | DOT11_FC_SUB_NULL_FUNCTION ),
- DOT11_FC_CF_ACK = ( DOT11_FC_TYPE_DATA | DOT11_FC_SUB_CF_ACK ),
- DOT11_FC_CF_POLL = ( DOT11_FC_TYPE_DATA | DOT11_FC_SUB_CF_POLL ),
- DOT11_FC_CF_ACK_CF_POLL = ( DOT11_FC_TYPE_DATA | DOT11_FC_SUB_CF_ACK_CF_POLL ),
- DOT11_FC_DATA_QOS = ( DOT11_FC_TYPE_DATA | DOT11_FC_SUB_DATA_QOS ),
- DOT11_FC_DATA_NULL_QOS = ( DOT11_FC_TYPE_DATA | DOT11_FC_SUB_DATA_NULL_QOS )
-} dot11_Fc_Type_Sub_Type_e;
-
-typedef enum
-{
- DOT11_FC_TO_DS = ( 1 << 8 ),
- DOT11_FC_FROM_DS = ( 1 << 9 ),
- DOT11_FC_MORE_FRAG = ( 1 << 10 ),
- DOT11_FC_RETRY = ( 1 << 11 ),
- DOT11_FC_PWR_MGMT = ( 1 << 12 ),
- DOT11_FC_MORE_DATA = ( 1 << 13 ),
- DOT11_FC_WEP = ( 1 << 14 ),
- DOT11_FC_ORDER = ( 1 << 15 )
-} dot11_Fc_Other_e;
-
-typedef enum
-{
- DOT11_CAPABILITY_ESS = ( 1 ),
- DOT11_CAPABILITY_IESS = ( 1 << 1 ),
- DOT11_CAPABILITY_CF_POLLABE = ( 1 << 2 ),
- DOT11_CAPABILITY_CF_POLL_REQ = ( 1 << 3 ),
- DOT11_CAPABILITY_PRIVACY = ( 1 << 4 ),
- DOT11_CAPABILITY_PREAMBLE = ( 1 << 5 ),
- DOT11_CAPABILITY_PBCC = ( 1 << 6 ),
- DOT11_CAPABILITY_AGILE = ( 1 << 7 )
-} dot11_Capability_e;
-
-#define DOT11_FC_TO_DS_SHIFT 8
-#define DOT11_FC_FROM_DS_SHIFT 9
-#define DOT11_FC_MORE_FRAG_SHIFT 10
-#define DOT11_FC_RETRY_SHIFT 11
-#define DOT11_FC_PWR_MGMT_SHIFT 12
-#define DOT11_FC_MORE_DATA_SHIFT 13
-#define DOT11_FC_WEP_SHIFT 14
-#define DOT11_FC_ORDER_SHIFT 15
-
-#define IS_WEP_ON(fc) ((1 << DOT11_FC_WEP_SHIFT) & (fc))
-#define IS_DATA(fc) (((DOT11_FC_TYPE_MASK) & (fc)) == DOT11_FC_TYPE_DATA)
-#define IS_CTRL(fc) (((DOT11_FC_TYPE_MASK) & (fc)) == DOT11_FC_TYPE_CTRL)
-#define IS_MGMT(fc) (((DOT11_FC_TYPE_MASK) & (fc)) == DOT11_FC_TYPE_MGMT)
-#define IS_LEGACY_DATA(fc) (((DOT11_FC_TYPESUBTYPE_MASK) & (fc)) == DOT11_FC_DATA)
-#define IS_AUTH(fc) (((DOT11_FC_AUTH) & (fc)) == DOT11_FC_AUTH)
-#define IS_QOS_FRAME(fc) ((((fc) & (DOT11_FC_TYPESUBTYPE_MASK)) == DOT11_FC_DATA_QOS) || \
- (((fc) & (DOT11_FC_TYPESUBTYPE_MASK)) == DOT11_FC_DATA_NULL_QOS) )
-#define IS_HT_FRAME(fc) ((fc) & (DOT11_FC_ORDER))
-
-
-
-#define TUs_TO_MSECs(x) (((x) << 10) / 1000)
-
-#define TIME_STAMP_LEN 8
-
-/* SequenceControl field of the 802.11 header */
-/**/
-/* bit 15 - 4 3 - 0*/
-/* +-------------------+-----------+*/
-/* | Sequence Number | Fragment |*/
-/* | | Number |*/
-/* +-------------------+-----------+*/
-/* 12 4*/
-
-typedef enum
-{
- DOT11_SC_FRAG_NUM_MASK = ( 0xf << 0 ),
- DOT11_SC_SEQ_NUM_MASK = ( 0xfff << 4 )
-} dot11_Sc_t;
-
-/* QoS Control field of the 802.11 header */
-#define DOT11_QOS_CONTROL_FIELD_TID_BITS 0x000f
-#define DOT11_QOS_CONTROL_FIELD_A_MSDU_BITS 0x0080
-
-#define DOT11_QOS_CONTROL_ACK 0x0000
-#define DOT11_QOS_CONTROL_DONT_ACK 0x0020
-
-typedef struct
-{
- TI_UINT16 fc;
- TI_UINT16 duration;
- TMacAddr address1;
- TMacAddr address2;
- TMacAddr address3;
- TI_UINT16 seqCtrl;
- TI_UINT16 qosControl;
-/* TMacAddr address4;*/
-} dot11_header_t;
-
-typedef struct
-{
- TI_UINT16 fc;
- TI_UINT16 duration;
- TMacAddr address1;
- TMacAddr address2;
- TMacAddr address3;
- TI_UINT16 seqCtrl;
-} legacy_dot11_header_t;
-
-
-
-typedef struct
-{
- TI_UINT16 fc;
- TI_UINT16 duration;
- TMacAddr DA;
- TMacAddr SA;
- TMacAddr BSSID;
- TI_UINT16 seqCtrl;
-} dot11_mgmtHeader_t;
-
-typedef struct
-{
- TI_UINT8 DSAP;
- TI_UINT8 SSAP;
- TI_UINT8 Control;
- TI_UINT8 OUI[3];
- TI_UINT16 Type;
-} Wlan_LlcHeader_T;
-
-typedef struct
-{
- TI_UINT16 fc;
- TI_UINT16 AID;
- TMacAddr BSSID;
- TMacAddr TA;
-} dot11_PsPollFrameHeader_t;
-
-typedef struct
-{
- TI_UINT16 fc;
- TI_UINT16 duration;
- TMacAddr RA;
- TMacAddr TA;
-} dot11_BarFrameHeader_t;
-
-
-#define FCS_SIZE 4
-
-#define WLAN_HDR_LEN 24
-#define WLAN_HT_HDR_LEN 28
-#define WLAN_QOS_HDR_LEN 26
-#define WLAN_QOS_HT_HDR_LEN 30
-#define WLAN_QOS_HT_CONTROL_FIELD_LEN 4
-#define WLAN_SNAP_HDR_LEN 8
-#define WLAN_WITH_SNAP_HEADER_MAX_SIZE (WLAN_HDR_LEN + WLAN_SNAP_HDR_LEN)
-#define WLAN_WITH_SNAP_QOS_HEADER_MAX_SIZE (WLAN_QOS_HDR_LEN + WLAN_SNAP_HDR_LEN)
-
-#define GET_MAX_HEADER_SIZE(macHeaderPointer,headerSize) \
- if (IS_QOS_FRAME(*(TI_UINT16*)(macHeaderPointer))) \
- {\
- if (IS_HT_FRAME(*(TI_UINT16*)(macHeaderPointer))) \
- *headerSize = WLAN_QOS_HT_HDR_LEN; \
- else \
- *headerSize = WLAN_QOS_HDR_LEN; \
- }\
- else \
- {\
- if (IS_HT_FRAME(*(TI_UINT16*)(macHeaderPointer))) \
- *headerSize = WLAN_HT_HDR_LEN; \
- else \
- *headerSize = WLAN_HDR_LEN; \
- }
-
-/****************************************************************************************
- The next table is defined in 802.11 spec section 7.2.2 for the address field contents :
- To DS From DS Address 1 Address 2 Address 3 Address 4
- -------------------------------------------------------------------
- 0 0 DA SA BSSID N/A
- 0 1 DA BSSID SA N/A
- 1 0 BSSID SA DA N/A
- 1 1 RA TA DA SA
-
-NOTE: We only support packets coming from within the DS (i.e. From DS = 0)
-*****************************************************************************************/
-/* return the destination address used in *dot11_header_t */
-#define GET_DA_FROM_DOT11_HEADER_T(pDot11Hdr) ((pDot11Hdr->fc & DOT11_FC_TO_DS) ? (pDot11Hdr->address3) : (pDot11Hdr->address1))
-
-
-/*
- * MANAGEMENT
- * -----------------
- */
-
-/* mgmt body max length */
-#define MAX_MGMT_BODY_LENGTH 2312
-/* maximal length of beacon body - note that actual beacons may actually be longer
- than this size, at least according to the spec, but so far no larger beacon was seen
- Note: 1500 is the recommended size by the Motorola Standard team. TI recommendation is 700*/
-#define MAX_BEACON_BODY_LENGTH 1500
-
-/* general mgmt frame structure */
-typedef struct
-{
- dot11_mgmtHeader_t hdr;
- TI_UINT8 body[MAX_MGMT_BODY_LENGTH];
-} dot11_mgmtFrame_t;
-
-/* Capabilities Information Field - IN THE AIR */
-/**/
-/* bit 15 14 13 12 11 10 9 8 7 - 0*/
-/* +----------+------+----------+---------+----------+---------+------+-----+---------------+*/
-/* | Channel | | Short | Privacy | CF Poll | CF | | | RESERVED | */
-/* | Agility | PBCC | Preamble | | Request | Pollable| IBSS | ESS | |*/
-/* +----------+------+----------+---------+----------+---------+------+-----+---------------+ */
-/* 1 1 1 1 1 1 1 1*/
-
-
-/* Capabilities Information Field - IN THE MGMT SOFTWARE AFTER THE SWAP */
-/**/
-/* bit 15 - 8 7 6 5 4 3 2 1 0*/
-/* +------------+----------+------+----------+---------+----------+---------+------+-----+*/
-/* | | Channel | | Short | Privacy | CF Poll | CF | | |*/
-/* | Reserved | Agility | PBCC | Preamble | | Request | Pollable| IBSS | ESS |*/
-/* +------------+----------+------+----------+---------+----------+---------+------+-----+*/
-/* 8 1 1 1 1 1 1 1 1*/
-
-
-
-typedef enum
-{
- DOT11_CAPS_ESS = ( 1 << 0 ),
- DOT11_CAPS_IBSS = ( 1 << 1 ),
- DOT11_CAPS_CF_POLLABLE = ( 1 << 2 ),
- DOT11_CAPS_CF_POLL_REQUEST = ( 1 << 3 ),
- DOT11_CAPS_PRIVACY = ( 1 << 4 ),
- DOT11_CAPS_SHORT_PREAMBLE = ( 1 << 5 ),
- DOT11_CAPS_PBCC = ( 1 << 6 ),
- DOT11_CAPS_CHANNEL_AGILITY = ( 1 << 7 ),
- DOT11_SPECTRUM_MANAGEMENT = ( 1 << 8 ),
- DOT11_CAPS_QOS_SUPPORTED = ( 1 << 9 ),
- DOT11_CAPS_SHORT_SLOT_TIME = (1 << 10),
-
- DOT11_CAPS_APSD_SUPPORT = ( 1 << 11),
-
- DOT11_CAPS_DELAYED_BA = ( 1 << 14),
- DOT11_CAPS_IMMEDIATE_BA = ( 1 << 15)
-
-} dot11_capabilities_e;
-
-typedef enum
-{
- /* ESS */
- CAP_ESS_MASK = 1,
- CAP_ESS_SHIFT = 0,
-
- /* IBSS */
- CAP_IBSS_MASK = 1,
- CAP_IBSS_SHIFT = 1,
-
- /* CF Pollable */
- CAP_CF_POLL_MASK = 1,
- CAP_CF_POLL_SHIFT = 2,
-
- /* CF Poll request */
- CAP_CF_REQ_MASK = 1,
- CAP_CF_REQ_SHIFT = 3,
-
- /* Privacy */
- CAP_PRIVACY_MASK = 1,
- CAP_PRIVACY_SHIFT = 4,
-
- /* Short Preamble*/
- CAP_PREAMBLE_MASK = 1,
- CAP_PREAMBLE_SHIFT = 5,
-
- /* PBCC */
- CAP_PBCC_MASK = 1,
- CAP_PBCC_SHIFT = 6,
-
- /* Agile */
- CAP_AGILE_MASK = 1,
- CAP_AGILE_SHIFT = 7,
-
- /* Slot time */
- CAP_SLOT_TIME_MASK = 1,
- CAP_SLOT_TIME_SHIFT = 10,
-
- /* APSD */
- CAP_APSD_MASK = 1,
- CAP_APSD_SHIFT = 11
-
-
-} wdrv_mgmtCapabilities_e;
-
-
-/*
- * 802.11 Information elements
- * ---------------------------
- */
-
-typedef TI_UINT8 dot11_eleHdr_t[2]; /* Byte-0: IE-ID, Byte-1: IE-Length */
-
-/* fixed fields lengths, except of currentAP & timestamp*/
-#define FIX_FIELD_LEN 2
-
-/* SSID Information Element */
-#define DOT11_SSID_ELE_ID 0
-
-/* Max SSID length */
-#define MAX_SSID_LEN 32
-
-typedef struct
-{
- dot11_eleHdr_t hdr;
- char serviceSetId[MAX_SSID_LEN];
-} dot11_SSID_t;
-
-
-/* Supportted rates Information Element */
-#define DOT11_SUPPORTED_RATES_ELE_ID 1
-#define DOT11_EXT_SUPPORTED_RATES_ELE_ID 50
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 rates[DOT11_MAX_SUPPORTED_RATES];
-} dot11_RATES_t;
-
-
-#define ERP_IE_NON_ERP_PRESENT_MASK 0x1
-#define ERP_IE_USE_PROTECTION_MASK 0x2
-#define ERP_IE_BARKER_PREAMBLE_MODE_MASK 0x4
-#define DOT11_ERP_IE_ID 42
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 ctrl;
-} dot11_ERP_t;
-
-/* RSN Information Element */
-#define MAX_RSN_IE 3
-#define DOT11_RSN_MAX 255
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 rsnIeData[DOT11_RSN_MAX];
-} dot11_RSN_t;
-
-/* General definitions needed by rsn.c */
-#define IV_FIELD_SIZE 4
-#define ICV_FIELD_SIZE 4
-#define MIC_FIELD_SIZE 8
-#define EIV_FIELD_SIZE 4
-#define WEP_AFTER_HEADER_FIELD_SIZE IV_FIELD_SIZE
-#define TKIP_AFTER_HEADER_FIELD_SIZE (IV_FIELD_SIZE + EIV_FIELD_SIZE)
-#define AES_AFTER_HEADER_FIELD_SIZE 8
-
-/* DS params Information Element */
-#define DOT11_DS_PARAMS_ELE_ID 3
-#define DOT11_DS_PARAMS_ELE_LEN 1
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 currChannel;
-} dot11_DS_PARAMS_t;
-
-
-/* DS params Information Element */
-#define DOT11_IBSS_PARAMS_ELE_ID 6
-#define DOT11_IBSS_PARAMS_ELE_LEN 2
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT16 atimWindow;
-} dot11_IBSS_PARAMS_t;
-
-#define DOT11_FH_PARAMS_ELE_ID 2
-#define DOT11_FH_PARAMS_ELE_LEN 5
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT16 dwellTime;
- TI_UINT8 hopSet;
- TI_UINT8 hopPattern;
- TI_UINT8 hopIndex;
-} dot11_FH_PARAMS_t;
-
-/* tim Information Element */
-#define DOT11_TIM_ELE_ID 5
-#define DOT11_PARTIAL_VIRTUAL_BITMAP_MAX 251
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 dtimCount;
- TI_UINT8 dtimPeriod;
- TI_UINT8 bmapControl;
- TI_UINT8 partialVirtualBmap[DOT11_PARTIAL_VIRTUAL_BITMAP_MAX];
-} dot11_TIM_t;
-
-/* tim Information Element */
-#define DOT11_CF_ELE_ID 4
-#define DOT11_CF_PARAMS_ELE_LEN 6
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 cfpCount;
- TI_UINT8 cfpPeriod;
- TI_UINT16 cfpMaxDuration;
- TI_UINT16 cfpDurRemain;
-} dot11_CF_PARAMS_t;
-
-/* Challenge text Information Element */
-#define DOT11_CHALLENGE_TEXT_ELE_ID 16
-#define DOT11_CHALLENGE_TEXT_MAX 253
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 text[ DOT11_CHALLENGE_TEXT_MAX ];
-} dot11_CHALLENGE_t;
-
-
-#define DOT11_NUM_OF_MAX_TRIPLET_CHANNEL 37
-
-typedef struct
-{
- TI_UINT8 firstChannelNumber;
- TI_UINT8 numberOfChannels;
- TI_UINT8 maxTxPowerLevel;
-} dot11_TripletChannel_t;
-
-typedef struct
-{
- TI_UINT8 CountryString[DOT11_COUNTRY_STRING_LEN];
- dot11_TripletChannel_t tripletChannels[DOT11_NUM_OF_MAX_TRIPLET_CHANNEL];
-} dot11_countryIE_t;
-
-
-/* Country Inforamtion Element */
-#define DOT11_COUNTRY_ELE_ID 7
-#define DOT11_COUNTRY_ELE_LEN_MAX ( ((DOT11_NUM_OF_MAX_TRIPLET_CHANNEL+1)*3) + !((DOT11_NUM_OF_MAX_TRIPLET_CHANNEL&0x1)))
-typedef struct
-{
- dot11_eleHdr_t hdr;
- dot11_countryIE_t countryIE;
-} dot11_COUNTRY_t;
-
-
-/* Power Constraint Information Element */
-#define DOT11_POWER_CONSTRAINT_ELE_ID (32)
-#define DOT11_POWER_CONSTRAINT_ELE_LEN (1)
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 powerConstraint;
-} dot11_POWER_CONSTRAINT_t;
-
-
-
-/* Power Capability Information Element */
-#define DOT11_CAPABILITY_ELE_ID (33)
-#define DOT11_CAPABILITY_ELE_LEN (2)
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 minTxPower;
- TI_UINT8 maxTxPower;
-} dot11_CAPABILITY_t;
-
-/* TPC request Information Element */
-#define DOT11_TPC_REQUEST_ELE_ID (34)
-#define DOT11_TPC_REQUEST_ELE_LEN (0)
-typedef struct
-{
- dot11_eleHdr_t hdr;
-} dot11_TPC_REQUEST_t;
-
-/* TPC report Information Element */
-#define DOT11_TPC_REPORT_ELE_ID (35)
-#define DOT11_TPC_REPORT_ELE_LEN (2)
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 transmitPower;
- TI_UINT8 linkMargin;
-} dot11_TPC_REPORT_t;
-
-
-#ifdef XCC_MODULE_INCLUDED
-
-/* Cell Transmit Power Information Element */
-#define DOT11_CELL_TP_ELE_ID (150)
-#define DOT11_CELL_TP_ELE_LEN (6)
-
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 oui[4];
- TI_UINT8 power;
- TI_UINT8 reserved;
-} dot11_CELL_TP_t;
-
-#define DOT11_CELL_TP \
- dot11_CELL_TP_t *cellTP;
-
-#else /* XCC_MODULE_INCLUDED */
-
-#define DOT11_CELL_TP
-
-#endif /* XCC_MODULE_INCLUDED */
-
-
-/* Channel Supported Information Element */
-#define DOT11_CHANNEL_SUPPORTED_ELE_ID (36)
-#define DOT11_CHANNEL_SUPPORTED_ELE_LEN (26)
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 supportedChannel[DOT11_CHANNEL_SUPPORTED_ELE_LEN];
-
-} dot11_CHANNEL_SUPPORTED_t;
-
-/* Channel Switch Announcement Information Element */
-#define DOT11_CHANNEL_SWITCH_ELE_ID (37)
-#define DOT11_CHANNEL_SWITCH_ELE_LEN (3)
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 channelSwitchMode;
- TI_UINT8 channelNumber;
- TI_UINT8 channelSwitchCount;
-} dot11_CHANNEL_SWITCH_t;
-
-#define MAX_NUM_REQ (16)
-
-/* Measurement request Information Element */
-#define DOT11_MEASUREMENT_REQUEST_ELE_ID (38)
-#define DOT11_MEASUREMENT_REQUEST_LEN (2)
-#define DOT11_MEASUREMENT_REQUEST_ELE_LEN (3 + DOT11_MEASUREMENT_REQUEST_LEN*MAX_NUM_REQ)
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 measurementToken;
- TI_UINT8 measurementMode;
- TI_UINT8 measurementType;
- TI_UINT8 measurementRequests[DOT11_MEASUREMENT_REQUEST_LEN*MAX_NUM_REQ];
-} dot11_MEASUREMENT_REQUEST_t;
-
-
-/* Quiet Information Element */
-#define DOT11_QUIET_ELE_ID (40)
-#define DOT11_QUIET_ELE_LEN (6)
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 quietCount;
- TI_UINT8 quietPeriod;
- TI_UINT16 quietDuration;
- TI_UINT16 quietOffset;
-} dot11_QUIET_t;
-
-
-/* QoS Capability Information Element */
-#define DOT11_QOS_CAPABILITY_ELE_ID (46)
-#define DOT11_QOS_CAPABILITY_ELE_LEN (1)
-
-#define AC_APSD_FLAGS_MASK (1)
-#define Q_ACK_BITG_MASK (1)
-#define MAX_SP_LENGTH_MASK (3)
-#define MORE_DATA_ACK_MASK (1)
-
-#define AC_VO_APSD_FLAGS_SHIFT (0)
-#define AC_VI_APSD_FLAGS_SHIFT (1)
-#define AC_BK_APSD_FLAGS_SHIFT (2)
-#define AC_BE_APSD_FLAGS_SHIFT (3)
-#define Q_ACK_FLAGS_SHIFT (4)
-#define MAX_SP_LENGTH_SHIFT (5)
-#define MORE_DATA_ACK_SHIFT (7)
-
-#define QOS_CONTROL_UP_SHIFT (0)
-
-#define AP_QOS_INFO_UAPSD_MASK (1)
-#define AP_QOS_INFO_UAPSD_SHIFT (7)
-
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 QosInfoField;
-} dot11_QOS_CAPABILITY_IE_t;
-
-/* WPS Information Element */
-#define DOT11_WPS_ELE_ID (221)
-#define DOT11_WPS_OUI {0x00, 0x50, 0xF2, 0x04}
-#define DOT11_WPS_OUI_LEN 4
-
-/* WME Information Element */
-#define DOT11_WME_ELE_ID (221)
-#define DOT11_WME_ELE_LEN (7)
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 OUI[3];
- TI_UINT8 OUIType;
- TI_UINT8 OUISubType;
- TI_UINT8 version;
- TI_UINT8 ACInfoField;
-} dot11_WME_IE_t;
-
-
-typedef struct
-{
- TI_UINT8 ACI_AIFSN;
- TI_UINT8 ECWmin_ECWmax;
- TI_UINT16 TXOPLimit;
-} dot11_QOS_AC_IE_ParametersRecord_t;
-
-typedef struct
-{
- dot11_QOS_AC_IE_ParametersRecord_t ACBEParametersRecord;
- dot11_QOS_AC_IE_ParametersRecord_t ACBKParametersRecord;
- dot11_QOS_AC_IE_ParametersRecord_t ACVIParametersRecord;
- dot11_QOS_AC_IE_ParametersRecord_t ACVOParametersRecord;
-} dot11_ACParameters_t;
-
-
-/* WME Parameter Information Element */
-#define DOT11_WME_PARAM_ELE_ID (221)
-#define DOT11_WME_PARAM_ELE_LEN (24)
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 OUI[3];
- TI_UINT8 OUIType;
- TI_UINT8 OUISubType;
- TI_UINT8 version;
- TI_UINT8 ACInfoField;
- TI_UINT8 reserved;
- dot11_ACParameters_t WME_ACParameteres;
-} dot11_WME_PARAM_t;
-
-
-/* 802.11n HT Information Element */
-#define DOT11_HT_CAPABILITIES_ELE_LEN (26)
-#define DOT11_HT_INFORMATION_ELE_LEN (22)
-
-#define DOT11_HT_CAPABILITIES_MCS_RATE_OFFSET (3)
-#define DOT11_HT_INFORMATION_MCS_RATE_OFFSET (6)
-
-typedef struct
-{
- dot11_eleHdr_t tHdr;
- TI_UINT8 aHtCapabilitiesIe[DOT11_HT_CAPABILITIES_ELE_LEN]; /* HT capabilities IE unparsed */
-} Tdot11HtCapabilitiesUnparse;
-
-typedef struct
-{
- dot11_eleHdr_t tHdr;
- TI_UINT8 aHtInformationIe[DOT11_HT_INFORMATION_ELE_LEN]; /* HT Information IE unparsed */
-} Tdot11HtInformationUnparse;
-
-/* BA session bits mask */
-#define DOT11_BAR_CONTROL_FIELD_TID_BITS 0xf000
-#define DOT11_BA_PARAMETER_SET_FIELD_TID_BITS 0x003C
-#define DOT11_BA_PARAMETER_SET_FIELD_WINSIZE_BITS 0xffC0
-#define DOT11_DELBA_PARAMETER_FIELD_TID_BITS 0xf000
-
-/* action field BA frames */
-typedef enum
-{
- DOT11_BA_ACTION_ADDBA = 0,
- DOT11_BA_ACTION_DELBA = 2
-} Edot11BaAction;
-
-
-/* WiFi Simple Config Information Element */
-#define DOT11_WSC_PARAM_ELE_ID (221)
-
-#define DOT11_WSC_SELECTED_REGISTRAR_CONFIG_METHODS 0x1053
-#define DOT11_WSC_SELECTED_REGISTRAR_CONFIG_METHODS_PIN 0xC
-#define DOT11_WSC_SELECTED_REGISTRAR_CONFIG_METHODS_PBC 0x80
-
-#define DOT11_WSC_DEVICE_PASSWORD_ID 0x1012
-#define DOT11_WSC_DEVICE_PASSWORD_ID_PIN 0x0000
-#define DOT11_WSC_DEVICE_PASSWORD_ID_PBC 0x0004
-
-/* WiFi Simple Config Parameter Information Element */
-#define DOT11_WSC_PROBE_REQ_PARAM_ELE_LEN (22)
-#define DOT11_WSC_BEACON_MAX_LENGTH 160
-
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 OUI[3];
- TI_UINT8 OUIType;
- TI_UINT8 WSCBeaconOrProbIE[DOT11_WSC_BEACON_MAX_LENGTH];
-} dot11_WSC_t;
-
-#define dot11_WPA_OUI_TYPE (1)
-#define dot11_WME_OUI_TYPE (2)
-#define dot11_WSC_OUI_TYPE (4)
-#define dot11_WME_OUI_SUB_TYPE_IE (0)
-#define dot11_WME_OUI_SUB_TYPE_PARAMS_IE (1)
-#define dot11_WME_VERSION (1)
-#define dot11_WME_ACINFO_MASK 0x0f
-
-/* -------------------- TSPEC ----------------- */
-
-typedef struct
-{
- TI_UINT8 tsInfoArr[3];
-
-} tsInfo_t;
-
-
-
-/* This structure is part of the TSPEC structure. It was seperated since there are some cases (such as DEL_TS), which we dont need
-to send ALL the TSPEC structure, but only as far as TsInfo. The TSPEC structure contains this smaller structure */
-typedef struct
-{
- dot11_eleHdr_t hdr;
-
- TI_UINT8 OUI[3];
- TI_UINT8 oui_type;
- TI_UINT8 oui_subtype;
- TI_UINT8 version;
-
- tsInfo_t tsInfoField;
-} dot11_WME_TSPEC_IE_hdr_t;
-
-typedef struct
-{
-
- dot11_WME_TSPEC_IE_hdr_t tHdr;
-
- TI_UINT16 nominalMSDUSize;
- TI_UINT16 maximumMSDUSize;
- TI_UINT32 minimumServiceInterval;
- TI_UINT32 maximumServiceInterval;
- TI_UINT32 inactivityInterval;
- TI_UINT32 suspensionInterval;
- TI_UINT32 serviceStartTime;
- TI_UINT32 minimumDataRate;
- TI_UINT32 meanDataRate;
- TI_UINT32 peakDataRate;
- TI_UINT32 maximumBurstSize;
- TI_UINT32 delayBound;
- TI_UINT32 minimumPHYRate;
- TI_UINT16 surplusBandwidthAllowance;
- TI_UINT16 mediumTime;
-
-} dot11_WME_TSPEC_IE_t;
-
-
-#define WME_TSPEC_IE_ID 221
-#define WME_TSPEC_IE_LEN 61
-#define WME_TSPEC_IE_TSINFO_LEN 9
-#define WME_TSPEC_IE_OUI_TYPE 0x02
-#define WME_TSPEC_IE_OUI_SUB_TYPE 0x02
-#define WME_TSPEC_IE_VERSION 0x01
-
-/* OUI TYPE values that can be present in management packets inside Cisco vendor specific IE */
-typedef enum
-{
- TS_METRIX_OUI_TYPE = 0x07,
- TS_RATE_SET_OUI_TYPE = 0x08,
- EDCA_LIFETIME_OUI_TYPE = 0x09
-} XCC_IE_OUI_TYPE_t;
-
-#define ADDTS_REQUEST_ACTION 0x00
-#define ADDTS_RESPONSE_ACTION 0x01
-#define DELTS_ACTION 0x02
-
-#define ADDTS_STATUS_CODE_SUCCESS 0x00
-#define DELTS_CODE_SUCCESS 0x00
-
-
-#define TS_INFO_0_TRAFFIC_TYPE_MASK 0x01
-#define TS_INFO_0_TSID_MASK 0x1E
-#define TS_INFO_0_DIRECTION_MASK 0x60
-#define TS_INFO_0_ACCESS_POLICY_MASK 0x80
-
-#define TS_INFO_1_ACCESS_POLICY_MASK 0x01
-#define TS_INFO_1_AGGREGATION_MASK 0x02
-#define TS_INFO_1_APSD_MASK 0x04
-#define TS_INFO_1_USER_PRIORITY_MASK 0x38
-#define TS_INFO_1_TSINFO_ACK_POLICY_MASK 0xC0
-
-#define TS_INFO_2_SCHEDULE_MASK 0x01
-#define TS_INFO_2_RESERVED_MASK 0xF7
-
-#define TRAFFIC_TYPE_SHIFT 0
-#define TSID_SHIFT 1
-#define DIRECTION_SHIFT 5
-#define ACCESS_POLICY_SHIFT 7
-#define AGGREGATION_SHIFT 1
-#define APSD_SHIFT 2
-#define USER_PRIORITY_SHIFT 3
-#define TSINFO_ACK_POLICY_SHIFT 6
-#define SCHEDULE_SHIFT 0
-#define RESERVED_SHIFT 1
-#define SURPLUS_BANDWIDTH_ALLOW 13
-
-#define TS_INFO_0_ACCESS_POLICY_EDCA 0x1
-#define NORMAL_ACKNOWLEDGEMENT 0x00
-#define NO_SCHEDULE 0x00
-#define PS_UPSD 0x01
-#define EDCA_MODE 0x08
-#define FIX_MSDU_SIZE 0x8000
-
-#define WPA_IE_OUI {0x00, 0x50, 0xf2}
-#define XCC_OUI {0x00, 0x40, 0x96}
-
-/* Action field structure
- used for extended management action such as spectrum management */
-typedef TI_UINT8 dot11_ACTION_FIELD_t[2];
-
-
-/* Management frames sub types */
-typedef enum
-{
- ASSOC_REQUEST = 0,
- ASSOC_RESPONSE = 1,
- RE_ASSOC_REQUEST = 2,
- RE_ASSOC_RESPONSE = 3,
- PROBE_REQUEST = 4,
- PROBE_RESPONSE = 5,
- BEACON = 8,
- ATIM = 9,
- DIS_ASSOC = 10,
- AUTH = 11,
- DE_AUTH = 12,
- ACTION = 13
-} dot11MgmtSubType_e;
-
-/* Management frames element IDs */
-typedef enum
-{
- SSID_IE_ID = 0,
- SUPPORTED_RATES_IE_ID = 1,
- FH_PARAMETER_SET_IE_ID = 2,
- DS_PARAMETER_SET_IE_ID = 3,
- CF_PARAMETER_SET_IE_ID = 4,
- TIM_IE_ID = 5,
- IBSS_PARAMETER_SET_IE_ID = 6,
- COUNTRY_IE_ID = 7,
- CHALLANGE_TEXT_IE_ID = 16,
- POWER_CONSTRAINT_IE_ID = 32,
- TPC_REPORT_IE_ID = 35,
- CHANNEL_SWITCH_ANNOUNCEMENT_IE_ID = 37,
- QUIET_IE_ID = 40,
- ERP_IE_ID = 42,
- HT_CAPABILITIES_IE_ID = 45,
- QOS_CAPABILITY_IE_ID = 46,
- RSN_IE_ID = 48,
- EXT_SUPPORTED_RATES_IE_ID = 50,
- HT_INFORMATION_IE_ID = 61,
- XCC_EXT_1_IE_ID = 133,
- XCC_EXT_2_IE_ID = 149,
- CELL_POWER_IE = 150, /*XCC*/
- WPA_IE_ID = 221
-
-} dot11MgmtIeId_e;
-
-/* Spectrum Management Action fields */
-typedef enum
-{
- MEASUREMENT_REQUEST = 0,
- MEASUREMENT_REPORT = 1,
- TPC_REQUEST = 2,
- TPC_REPORT = 3,
- CHANNEL_SWITCH_ANNOUNCEMENT = 4
-} dot11ActionFrameTypes_e;
-
-/* Category fields (such as apectrum management)*/
-typedef enum
-{
- CATAGORY_SPECTRUM_MANAGEMENT = 0,
- CATAGORY_QOS = 1,
- WME_CATAGORY_QOS = 17,
- CATAGORY_SPECTRUM_MANAGEMENT_ERROR = 128
-} dot11CategoryTypes_e;
-
-
-/*
- * Management templates to set to the HAL:
- */
-
-#ifdef XCC_MODULE_INCLUDED
-
- typedef struct
- {
- dot11_mgmtHeader_t hdr;
- char infoElements[sizeof( dot11_SSID_t ) +
- sizeof( dot11_RATES_t ) +
- sizeof( dot11_RATES_t ) +
- sizeof( Tdot11HtCapabilitiesUnparse ) +
- DOT11_WSC_PROBE_REQ_MAX_LENGTH +
- sizeof( XCC_radioManagmentCapability_IE_t )
- ];
- } probeReqTemplate_t;
-
-#else /* XCC_MODULE_INCLUDED */
-
- typedef struct
- {
- dot11_mgmtHeader_t hdr;
- char infoElements[sizeof( dot11_SSID_t ) +
- sizeof( dot11_RATES_t ) +
- sizeof( dot11_RATES_t ) +
- sizeof( Tdot11HtCapabilitiesUnparse ) +
- DOT11_WSC_PROBE_REQ_MAX_LENGTH
- ];
- } probeReqTemplate_t;
-
-#endif /* XCC_MODULE_INCLUDED */
-
-
-typedef struct
-{
- dot11_mgmtHeader_t hdr;
- TI_UINT8 timeStamp[TIME_STAMP_LEN];
- TI_UINT16 beaconInterval;
- TI_UINT16 capabilities;
- char infoElements[ sizeof( dot11_SSID_t ) +
- sizeof( dot11_RATES_t ) +
- sizeof( dot11_RATES_t ) +
- sizeof( dot11_DS_PARAMS_t ) +
- sizeof( dot11_COUNTRY_t) ];
-} probeRspTemplate_t;
-
-typedef struct
-{
- dot11_mgmtHeader_t hdr;
-} nullDataTemplate_t;
-
-typedef struct
-{
- dot11_mgmtHeader_t hdr;
- TI_UINT16 disconnReason;
-} disconnTemplate_t; /* Deauth or Disassoc */
-
-typedef struct
-{
- dot11_header_t hdr;
- TI_UINT8 securityOverhead[AES_AFTER_HEADER_FIELD_SIZE];
- Wlan_LlcHeader_T LLC;
- TI_UINT16 hardType;
- TI_UINT16 protType;
- TI_UINT8 hardSize;
- TI_UINT8 protSize;
- TI_UINT16 op;
- TMacAddr StaMac;
- TIpAddr StaIp;
- TMacAddr TargMac;
- TIpAddr TargIp;
-} ArpRspTemplate_t; /* for auto ArpRsp sending by FW */
-
-typedef struct
-{
- dot11_PsPollFrameHeader_t hdr;
-} psPollTemplate_t;
-
-typedef struct
-{
- dot11_header_t hdr;
-} QosNullDataTemplate_t;
-
-/* Traffic Stream Rate Set (TSRS) info-elements */
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 OUI[3];
- TI_UINT8 oui_type;
- TI_UINT8 tsid;
- TI_UINT8 tsNominalRate;
-} dot11_TSRS_STA_IE_t;
-
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 OUI[3];
- TI_UINT8 oui_type;
- TI_UINT8 tsid;
- TI_UINT8 tsRates[8];
-} dot11_TSRS_IE_t;
-
-/* MSDU lifetime info-element */
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 OUI[3];
- TI_UINT8 oui_type;
- TI_UINT8 tsid;
- TI_UINT16 msduLifeTime;
-} dot11_MSDU_LIFE_TIME_IE_t;
-
-typedef struct
-{
- dot11_eleHdr_t hdr;
- TI_UINT8 OUI[3];
- TI_UINT8 oui_type;
- TI_UINT8 tsid;
- TI_UINT8 state;
- TI_UINT16 measureInterval;
-} dot11_TS_METRICS_IE_t;
-
-typedef struct
-{
- dot11_TSRS_IE_t *trafficStreamParameter;
- dot11_MSDU_LIFE_TIME_IE_t *edcaLifetimeParameter;
- dot11_TS_METRICS_IE_t *tsMetrixParameter;
-} XCCv4IEs_t;
-
-
-/* Measurement Report message frame structure */
-#define DOT11_MEASUREMENT_REPORT_ELE_ID (39)
-#define DOT11_MAX_MEASUREMENT_REPORT_LEN (4)
-#define DOT11_MIN_MEASUREMENT_REPORT_IE_LEN (3)
-#define DOT11_MEASUREMENT_REPORT_ELE_IE_LEN (DOT11_MIN_MEASUREMENT_REPORT_IE_LEN + DOT11_MAX_MEASUREMENT_REPORT_LEN*MAX_NUM_REQ)
-
-typedef struct
-{
- dot11_ACTION_FIELD_t actionField;
- TI_UINT8 dialogToken;
-
- dot11_eleHdr_t hdr;
- TI_UINT8 measurementToken;
- TI_UINT8 measurementMode;
- TI_UINT8 measurementType;
- TI_UINT8 measurementReports[DOT11_MAX_MEASUREMENT_REPORT_LEN*MAX_NUM_REQ];
-} MeasurementReportFrame_t;
-
-
-
-typedef enum
-{
- STATUS_SUCCESSFUL = 0,
- STATUS_UNSPECIFIED,
- STATUS_AUTH_REJECT,
- STATUS_ASSOC_REJECT,
- STATUS_SECURITY_FAILURE,
- STATUS_AP_DEAUTHENTICATE,
- STATUS_AP_DISASSOCIATE,
- STATUS_ROAMING_TRIGGER,
- STATUS_DISCONNECT_DURING_CONNECT,
- STATUS_SG_RESELECT,
- STATUS_MIC_FAILURE = 14,
- MGMT_STATUS_MAX_NUM = 15
-} mgmtStatus_e;
-
-/* Used as a status code in case of STATUS_AUTH_REJECT or STATUS_ASSOC_REJECT that was not received at all */
-#define STATUS_PACKET_REJ_TIMEOUT 0xFFFF
-
-/* As defined in 802.11 spec section 7.3.1 - status codes for deAuth packet */
-#define STATUS_CODE_802_1X_AUTHENTICATION_FAILED 23
-
-/* map field included in measurement report IE (only in basic report) */
-typedef enum
-{
- DOT11_BSS_ONLY = (0x01),
- DOT11_OFDM_ONLY = (0x02),
- DOT11_RADAR_AND_UNIDENTIFIED = (0x0C)
-} dot11_Map_Sub_Field_e;
-
-
-typedef struct
-{
- legacy_dot11_header_t dot11Header;
- Wlan_LlcHeader_T snapHeader;
-} legacy_dot11_DataMsduHeader_t;
-
-
-#define WLAN_HEADER_TYPE_CONCATENATION 0x01
-#define WLAN_CONCAT_HEADER_LEN 2
-
-
-#endif /* _802_11_INFO_DEFS_H */
diff --git a/wl1271/utils/CmdInterfaceCodes.h b/wl1271/utils/CmdInterfaceCodes.h
deleted file mode 100644
index ce579db..0000000
--- a/wl1271/utils/CmdInterfaceCodes.h
+++ /dev/null
@@ -1,1536 +0,0 @@
-/*
- * CmdInterfaceCodes.h
- *
- * Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/****************************************************************************/
-/* */
-/* MODULE: CmdInterfaceCodes.h */
-/* PURPOSE: */
-/* */
-/****************************************************************************/
-#ifndef _CMD_INTERFACE_CODES_H_
-#define _CMD_INTERFACE_CODES_H_
-
-/** \file CmdInterfaceCodes.h
- * \brief Command Interface Codes
- * \n\n
- * This file contains the definitions for the parameters that can be Set/Get from outside user.
- * \n\n
- */
-
-#include "TWDriver.h"
-
-/* defines */
-/***********/
-
-/* types */
-/*********/
-
-
-/* This file contains the definitions for the parameters that can be Set/Get from outside.
- The parmeters that can be Set/Get from inside the driver only are defined in the file paramIn.h */
-
-/****************************************************************************
- PARAMETERS ISSUE
- Each parameter in the system is defined as UINT32. The parameter
- structue is as following:
-
- bit 31 30 - 24 23 22 - 16 15 - 8 7 - 0
- +-----+----------+-----+----------+-----------+-----------+
- | Set | Reserved | Get | Reserved | Module | Parameter |
- | bit | | bit | | number | number |
- +-----+----------+-----+----------+-----------+-----------+
-
- The 'set' bit indicates whteher this parameter can be set from OS abstraction layer.
- The 'get' bit indicates whteher this parameter can be get from OS abstraction layer.
- (All the parameters can be Get/Set from insied the driver.)
- The module number indicated who is the oner of the parameter.
- The parameter number is the parameter unique number used to identify it.
-
-****************************************************************************/
-
-/** \def SET_BIT
- * \brief Bitmaks of bit which indicates if the Command is SET Command
- */
-#define SET_BIT 0x08000000
-/** \def GET_BIT
- * \brief Bitmaks of bit which indicates if the Command is GET Command
- */
-#define GET_BIT 0x00800000
-/** \def ASYNC_PARAM
- * \brief Bitmaks of bit which indicates if the access to the Command Parameter is Async
- */
-#define ASYNC_PARAM 0x00010000
-/** \def ALLOC_NEEDED_PARAM
- * \brief Bitmaks of bit which indicates if that the data is not allocated in the paramInfo structure
- */
-#define ALLOC_NEEDED_PARAM 0x00020000
-
-
-/** \def GET_PARAM_MODULE_NUMBER
- * \brief Macro which gets the Parameter's Module Number from the second byte of x \n
- * x should be taken from Module Parameters Enumeration
- * sa EModuleParam
- */
-#define GET_PARAM_MODULE_NUMBER(x) ((x & 0x0000FF00) >> 8)
-/** \def IS_PARAM_ASYNC
- * \brief Macro which returns True if access to the Command Parameter is Async \n
- * Otherwise returns False
- */
-#define IS_PARAM_ASYNC(x) (x & ASYNC_PARAM)
-/** \def IS_ALLOC_NEEDED_PARAM
- * \brief Macro which returns True if data is not allocated in the paramInfo structure \n
- * (there is a need to allocate memory for data). Otherwise returns False
- */
-#define IS_ALLOC_NEEDED_PARAM(x) (x & ALLOC_NEEDED_PARAM)
-/** \def IS_PARAM_FOR_MODULE
- * \brief Macro which returns True if input param is for input module. \n
- * Otherwise returns False
- */
-#define IS_PARAM_FOR_MODULE(param, module) ((param & 0x0000FF00) == module)
-
-/** \enum EModuleParam
- * \brief Modules Parameters ID
- *
- * \par Description
- * This Enumeration defines all available Modules numbers. \n
- * Note that the actual number is held in the second byte (E.g. 0x0000FF00). \n
- * According to these numbers it is decided to which Module the Command Parameter is destined
- *
- * \sa
- */
-/* NOTICE! whenever you add a module, you have to increment MAX_PARAM_MODULE_NUMBER as well!!! */
-typedef enum
-{
- DRIVER_MODULE_PARAM = 0x0000, /**< Driver Module Number */
- AUTH_MODULE_PARAM = 0x0100, /**< Authentication Module Number */
- ASSOC_MODULE_PARAM = 0x0200, /**< Association Module Number */
- RX_DATA_MODULE_PARAM = 0x0300, /**< RX Data Module Number */
- TX_CTRL_MODULE_PARAM = 0x0400, /**< TX Control Module Number */
- CTRL_DATA_MODULE_PARAM = 0x0500, /**< Control Data Module Number */
- SITE_MGR_MODULE_PARAM = 0x0600, /**< Site Manager Module Number */
- CONN_MODULE_PARAM = 0x0700, /**< Connection Module Number */
- RSN_MODULE_PARAM = 0x0800, /**< Robust Security NW (RSN) Module Number */
- ADM_CTRL_MODULE_PARAM = 0x0900, /**< ADM Control Module Number */
- TWD_MODULE_PARAM = 0x0A00, /**< Report Module Number */
- REPORT_MODULE_PARAM = 0x0B00, /**< Report Module Number */
- SME_MODULE_PARAM = 0x0C00, /**< SME Module Number */
- MLME_SM_MODULE_PARAM = 0x0D00, /**< 802.11 MLME State-Machine Module Number */
- REGULATORY_DOMAIN_MODULE_PARAM = 0x0E00, /**< Regulatory Domain Module Number */
- MEASUREMENT_MODULE_PARAM = 0x0F00, /**< Measurement Module Number */
- XCC_MANAGER_MODULE_PARAM = 0x1000, /**< XCC Manager Module Number */
- ROAMING_MANAGER_MODULE_PARAM = 0x1100, /**< Roaming Manager Module Number */
- SOFT_GEMINI_PARAM = 0x1200, /**< Soft Gemini Module Number */
- QOS_MANAGER_PARAM = 0x1300, /**< Quality Of Service (QoS) Manager Module Number */
- POWER_MANAGER_PARAM = 0x1400, /**< Power Manager Module Number */
- SCAN_CNCN_PARAM = 0x1500, /**< Scan Concentrator Module Number */
- SCAN_MNGR_PARAM = 0x1600, /**< Scan Manager Module Number */
- MISC_MODULE_PARAM = 0x1700, /**< Misc. Module Number */
- HEALTH_MONITOR_MODULE_PARAM = 0x1800, /**< Health Monitor Module Number */
- CURR_BSS_MODULE_PARAM = 0x1900, /**< Current Bss Module Number */
- /*
- Last module - DO NOT TOUCH!
- */
- MODULE_PARAM_LAST_MODULE /**< LAst Module - Dummy, mast be last */
-
-} EModuleParam;
-
-/** \def MAX_PARAM_MODULE_NUMBER
- * \brief Macro which returns the number of Parameters Modules
- */
-#define MAX_PARAM_MODULE_NUMBER (GET_PARAM_MODULE_NUMBER(MODULE_PARAM_LAST_MODULE))
-
-
-
-/** \enum EExternalParam
- * \brief External Parameters
- *
- * \par Description
- * This Enumeation includes all the eaxternal parameters numbers which are used for Get/Set Commands.
- * Each module can have 256 parameters \n
- * PARAMETERS ISSUE: \n
- * Each parameter in the system is defined as UINT32. The parameter structue is as following: \n
- * bit 0 - 7: Parameter Number - number of parameter inside Module\n
- * bit 8 - 15: Module number - number of Module\n
- * bit 16: Async Bit - indicates if command is Async (ON) or Sync (OFF)\n
- * bit 17: Allocate Bit - indicates if allocation should be done for parameter (ON) or not (OFF)\n
- * bit 18 - 22: Reserved \n
- * bit 23: Get Bit - indicates if command is Get (ON) or not (OFF) \n
- * bit 24 - 26: Reserved \n
- * bit 27: Set Bit - indicates if command is Set (ON) or not (OFF) \n
- * bit 28 - 31: Reserved \n\n
- * The 'set' bit indicates whteher this parameter can be set from OS abstraction layer.
- * The 'get' bit indicates whteher this parameter can be get from OS abstraction layer.
- * (All the parameters can be Get/Set from insied the driver.)
- * The module number indicated who is the oner of the parameter.
- * The parameter number is the parameter unique number used to identify it.
- *
- * \sa
- */
- /* bit | 31 - 28 | 27 | 26 - 24 | 23 | 22 - 18 | 17 | 16 | 15 - 8 | 7 - 0 |
- * +----------+-----+----------+-----+----------+----------+-------+-----------+-----------+
- * | Reserved | Set | Reserved | Get | Reserved | Allocate | Async | Module | Parameter |
- * | | bit | | bit | | bit | bit | number | number |
- * +----------+-----+----------+-----+----------+----------+-------+-----------+-----------+
- */
-typedef enum
-{
- /* Driver General section */
- DRIVER_INIT_PARAM = SET_BIT | DRIVER_MODULE_PARAM | 0x00, /**< Driver Init Parameter (Driver General Set Command): \n
- * Used for setting driver defaults. Done Sync with no memory allocation\n
- * Parameter Number: 0x00\n
- * Module Number: Driver Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- DRIVER_START_PARAM = SET_BIT | DRIVER_MODULE_PARAM | 0x01, /**< Driver Start Parameter (Driver General Set Command): \n
- * Used for Starting Driver. Done Sync with no memory allocation\n
- * Parameter Number: 0x01\n
- * Module Number: Driver Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- DRIVER_STOP_PARAM = SET_BIT | DRIVER_MODULE_PARAM | 0x02, /**< Driver Stop Parameter (Driver General Set Command): \n
- * Used for Stopping Driver. Done Sync with no memory allocation \n
- * Parameter Number: 0x02\n
- * Module Number: Driver Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- DRIVER_STATUS_PARAM = GET_BIT | DRIVER_MODULE_PARAM | 0x03, /**< Driver Status Parameter (Driver General Get Command): \n
- * Used for Getting Driver's Status (if running). Done Sync with no memory allocation\n Done Sync with no memory allocation\n
- * Parameter Number: 0x03\n
- * Module Number: Driver Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- DRIVER_THREADID_PARAM = GET_BIT | DRIVER_MODULE_PARAM | 0x04, /**< Driver Thread ID Parameter (Driver General Get Command): \n
- * Used for Getting Driver's Thread ID. Done Sync with no memory allocation\n
- * Parameter Number: 0x04\n
- * Module Number: Driver Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
-
- /* Site manager section */
- SITE_MGR_DESIRED_CHANNEL_PARAM = SET_BIT | GET_BIT | SITE_MGR_MODULE_PARAM | 0x01, /**< Site Manager Desired Channel Parameter (Site Manager Module Set/Get Command):\n
- * Used for Setting/Getting desired Channel to/from OS abstraction layer\n
- * Done Sync with no memory allocation \n
- * Parameter Number: 0x01\n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- SITE_MGR_DESIRED_SUPPORTED_RATE_SET_PARAM = SET_BIT | GET_BIT | SITE_MGR_MODULE_PARAM | 0x05, /**< Site Manager Desired Supported Rate Set Parameter (Site Manager Module Set/Get Command):\n
- * Used for Setting/Getting Desired Supported Rate to/from OS abstraction layer\n
- * Done Sync with no memory allocation \n
- * Parameter Number: 0x05\n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- SITE_MGR_DESIRED_PREAMBLE_TYPE_PARAM = SET_BIT | GET_BIT | SITE_MGR_MODULE_PARAM | 0x0A, /**< Site Manager Desired Preamble Type Parameter (Site Manager Module Set/Get Command): \n
- * Used for Setting/Getting Desired Preamble Type to/from OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0A\ n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
- SITE_MGRT_SET_RATE_MANAGMENT = SET_BIT | SITE_MGR_MODULE_PARAM | 0x06 , /**< Site Manager Desired Preamble Type Parameter (Site Manager Module Set/Get Command): \n
- * Used for Setting/Getting Desired Preamble Type to/from OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x06\ n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OF \n
- * SET Bit: ON \n
-*/
-
-
- SITE_MGRT_GET_RATE_MANAGMENT = GET_BIT | SITE_MGR_MODULE_PARAM | 0x07| ASYNC_PARAM, /**< Site Manager Desired Preamble Type Parameter (Site Manager Module Set/Get Command): \n
- * Used for Setting/Getting Desired Preamble Type to/from OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x07\ n
- * Module Number: Site Manager Module Number \n
- * Async Bit: ON \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
-*/
-
-
-
- SITE_MGR_CURRENT_CHANNEL_PARAM = SET_BIT | GET_BIT | SITE_MGR_MODULE_PARAM | 0x0E, /**< Site Manager Current Channel Parameter (Site Manager Module Set/Get Command): \n
- * Used for Setting/Getting Current Channel to/from OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0E \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- SITE_MGR_TI_WLAN_COUNTERS_PARAM = GET_BIT | SITE_MGR_MODULE_PARAM | 0x14, /**< Site Manager TI WLAN Counters Parameter (Site Manager Module Get Command): \n
- * Used for Getting TI WLAN Statistics Counters from OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x14 \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- SITE_MGR_EEPROM_VERSION_PARAM = GET_BIT | SITE_MGR_MODULE_PARAM | 0x16, /**< Site Manager EEPROM Version Parameter (Site Manager Module Get Command): \n
- * Used for Getting EEPROM Version from FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x16 \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- SITE_MGR_FIRMWARE_VERSION_PARAM = GET_BIT | SITE_MGR_MODULE_PARAM | 0x17, /**< Site Manager FW Version Parameter (Site Manager Module Get Command): \n
- * Used for Getting FW Version from FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x17 \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- SITE_MGR_DESIRED_SLOT_TIME_PARAM = SET_BIT | GET_BIT | SITE_MGR_MODULE_PARAM | 0x1B, /**< Site Manager Desired Slot Time Parameter (Site Manager Module Set/Get Command): \n
- * Used for Getting Desired Slot Time from OS abstraction layer and Setting Desired Slot Time to FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x1B \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- SITE_MGR_GET_AP_QOS_CAPABILITIES = GET_BIT | SITE_MGR_MODULE_PARAM | 0x2E, /**< Site Manager Get AP QoS Cpabilities Parameter (Site Manager Module Get Command): \n
- * Used for Getting AP QoS Cpabilities from OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x2E \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- SITE_MGR_CURRENT_TX_RATE_PARAM = GET_BIT | SITE_MGR_MODULE_PARAM | 0x32, /**< Site Manager Current TX Rate Parameter (Site Manager Module Get Command): \n
- * Used for Getting Current TX Rate from OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x32 \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- SITE_MGR_BSSID_FULL_LIST_PARAM = GET_BIT | SITE_MGR_MODULE_PARAM | 0x34, /**< Site Manager BSSID Full List Parameter (Site Manager Module Get Command): \n
- * Used for Getting BSSID Full List from OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x34 \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- SITE_MGR_BEACON_FILTER_DESIRED_STATE_PARAM = SET_BIT | GET_BIT | SITE_MGR_MODULE_PARAM | 0x35, /**< Site Manager Beacon Filter Desired State Parameter (Site Manager Module Set/Get Command): \n
- * Used for Getting Beacon Filter Desired State from OS abstraction layer or Setting Beacon Filter Desired State to FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x35 \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- SITE_MGR_NETWORK_TYPE_IN_USE = GET_BIT | SITE_MGR_MODULE_PARAM | 0x36, /**< Site Manager NW Type in Use Parameter (Site Manager Module Get Command): \n
- * Used for Getting NW Type in Use from OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x36 \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
-
- /* Simple Config module */
- SITE_MGR_SIMPLE_CONFIG_MODE = SET_BIT | GET_BIT | SITE_MGR_MODULE_PARAM | 0x38, /**< Site Manager Simple Configuration Mode Parameter (Simple Configuration Module Set/Get Command): \n
- * Used for Setting/Getting WiFi Simple Configuration Mode\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x38 \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- SITE_MGR_GET_PRIMARY_SITE = GET_BIT | SITE_MGR_MODULE_PARAM | 0x40, /**< Site Manager Get Primary Site Parameter (Simple Configuration Module Get Command): \n
- * Used for Getting Primary Site from OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x40 \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
-
- SITE_MGR_PRIMARY_SITE_HT_SUPPORT = GET_BIT | SITE_MGR_MODULE_PARAM | 0x41, /**< Site Manager check if the Primary Site support HT: \n
- * Used for check if the Primary Site support HT \n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x41 \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- SITE_MGR_CURRENT_RX_RATE_PARAM = GET_BIT | SITE_MGR_MODULE_PARAM | 0x42, /**< Site Manager Current RX Rate Parameter (Site Manager Module Get Command): \n
- * Used for Getting Current RX Rate from OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x33 \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- SITE_MGR_SET_WLAN_IP_PARAM = SET_BIT | SITE_MGR_MODULE_PARAM | 0x43, /**< Site Manager WLAN interface IP Parameter (Site Manager Module Set Command): \n
- * Used for Setting the WLAN interface IP from OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x43 \n
- * Module Number: Site Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
-
- /* CTRL data section */
- CTRL_DATA_CURRENT_BSS_TYPE_PARAM = SET_BIT | GET_BIT | CTRL_DATA_MODULE_PARAM | 0x04, /**< Control Data Primary BSS Type Parameter (Control Data Module Set/Get Command): \n
- * Used for Setting/Getting Primary BSS Type to/form Control Data Parameters\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x04 \n
- * Module Number: Control Data Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- CTRL_DATA_MAC_ADDRESS = GET_BIT | CTRL_DATA_MODULE_PARAM | 0x08, /**< Control Data MAC Address Parameter (Control Data Module Get Command): \n
- * Used for Getting MAC Address form FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x08 \n
- * Module Number: Control Data Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- CTRL_DATA_CLSFR_TYPE = GET_BIT | CTRL_DATA_MODULE_PARAM | 0x0D, /**< Control Data Classifier Type Parameter (Control Data Module Set/Get Command): \n
- * Used for Setting/Getting Classifier Type to/form Control Data (TX Data Queue) Parameters\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0D \n
- * Module Number: Control Data Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- CTRL_DATA_CLSFR_CONFIG = SET_BIT | CTRL_DATA_MODULE_PARAM | 0x0E, /**< Control Data Classifier Configure Parameter (Control Data Module Set Command): \n
- * Used for adding Classifier entry to Control Data (TX Data Queue) Parameters\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0E \n
- * Module Number: Control Data Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- CTRL_DATA_CLSFR_REMOVE_ENTRY = SET_BIT | CTRL_DATA_MODULE_PARAM | 0x0F, /**< Control Data Classifier Configure Parameter (Control Data Module Set Command): \n
- * Used for removing Classifier entry from Control Data (TX Data Queue) Parameters\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0F \n
- * Module Number: Control Data Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- CTRL_DATA_TRAFFIC_INTENSITY_THRESHOLD = SET_BIT | GET_BIT | CTRL_DATA_MODULE_PARAM | 0x15, /**< Control Data Traffic Intensity Threshold Parameter (Control Data Module Set/Get Command): \n
- * Used for Setting/Getting Traffic Intensity Threshold to/from Control Data (Traffic Intensity Threshold) Parameters\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x15 \n
- * Module Number: Control Data Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- CTRL_DATA_TOGGLE_TRAFFIC_INTENSITY_EVENTS = SET_BIT | CTRL_DATA_MODULE_PARAM | 0x16, /**< Control Data Toggle Traffic Intensity Events Parameter (Control Data Module Set Command): \n
- * Used for Toggle Traffic Intensity Events (turns ON/OFF traffic intensity notification events) \n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x16 \n
- * Module Number: Control Data Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- /* SME SM section */
- SME_DESIRED_SSID_ACT_PARAM = SET_BIT | GET_BIT | SME_MODULE_PARAM | 0x01, /**< SME Set SSID and start connection process (SME Module Set/Get Command): \n
- * Used for set SSID and start connection or get current SSID \n
- * Parameter Number: 0x01 \n
- * Module Number: SME Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
- SME_RADIO_ON_PARAM = SET_BIT | GET_BIT | SME_MODULE_PARAM | 0x03, /**< SME State-Machine Radio ON Parameter (SME Module Set/Get Command): \n
- * Used for Setting new and generating State-Machine Event, or Getting current Radio ON\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x03 \n
- * Module Number: SME Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- SME_CONNECTION_MODE_PARAM = SET_BIT | GET_BIT | SME_MODULE_PARAM | 0x04, /**< SME State-Machine Connection Mode Parameter (SME Module Set/Get Command): \n
- * Used for Setting new Connection Mode (and generating disconnect State-Machine event) or Getting current Connection Mode\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x04 \n
- * Module Number: SME Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- SME_WSC_PB_MODE_PARAM = SET_BIT | SME_MODULE_PARAM | 0x07, /**< SME State-Machine SME on the WPS Mode Parameter (SME Module Set Command): \n
- * Used for updating the SME on the WPS mode\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x07 \n
- * Module Number: SME Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- SME_DESIRED_SSID_PARAM = SET_BIT | SME_MODULE_PARAM | 0x08, /**< SME Set SSID without start connection process (SME Module Set Command): \n
- * Used for set SSID without connection \n
- * Parameter Number: 0x08 \n
- * Module Number: SME Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- /* Scan Concentrator section */
- SCAN_CNCN_START_APP_SCAN = SET_BIT | SCAN_CNCN_PARAM | 0x01 | ALLOC_NEEDED_PARAM, /**< Scan Concentrator Start Application Scan Parameter (Scan Concentrator Module Set Command): \n
- * Used for start one-shot scan as running application scan client\n
- * Done Sync with memory allocation\n
- * Parameter Number: 0x01 \n
- * Module Number: Scan Concentrator Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: ON \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- SCAN_CNCN_STOP_APP_SCAN = SET_BIT | SCAN_CNCN_PARAM | 0x02, /**< Scan Concentrator Stop Application Scan Parameter (Scan Concentrator Module Set Command): \n
- * Used for stop one-shot scan as running application scan client\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x02 \n
- * Module Number: Scan Concentrator Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- SCAN_CNCN_START_PERIODIC_SCAN = SET_BIT | SCAN_CNCN_PARAM | 0x03 | ALLOC_NEEDED_PARAM, /**< Scan Concentrator Start Periodic Scan Parameter (Scan Concentrator Module Set Command): \n
- * Used for start periodic scan as running application scan client\n
- * Done Sync with memory allocation\n
- * Parameter Number: 0x03 \n
- * Module Number: Scan Concentrator Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: ON \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- SCAN_CNCN_STOP_PERIODIC_SCAN = SET_BIT | SCAN_CNCN_PARAM | 0x04, /**< Scan Concentrator Stop Periodic Scan Parameter (Scan Concentrator Module Set Command): \n
- * Used for stop periodic scan as running application scan client\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x04 \n
- * Module Number: Scan Concentrator Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- SCAN_CNCN_BSSID_LIST_SCAN_PARAM = SET_BIT | SCAN_CNCN_PARAM | 0x05, /**< Scan Concentrator BSSID List Scon Parameter (Scan Concentrator Module Set Command): \n
- * Used for start one-shot scan as running application scan client\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x05 \n
- * Module Number: Scan Concentrator Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- SCAN_CNCN_NUM_BSSID_IN_LIST_PARAM = GET_BIT | SCAN_CNCN_PARAM | 0x06, /**< Scan Concentrator BSSID List Size Parameter (Scan Concentrator Module Get Command): \n
- * Used for retrieving the size to allocate for the application scan result list\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x06 \n
- * Module Number: Scan Concentrator Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- SCAN_CNCN_BSSID_LIST_SIZE_PARAM = GET_BIT | SCAN_CNCN_PARAM | 0x07, /**< Scan Concentrator BSSID List Size Parameter (Scan Concentrator Module Get Command): \n
- * Used for retrieving the size to allocate for the application scan result list\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x06 \n
- * Module Number: Scan Concentrator Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- SCAN_CNCN_BSSID_LIST_PARAM = GET_BIT | SCAN_CNCN_PARAM | 0x08, /**< Scan Concentrator BSSID List Parameter (Scan Concentrator Module Get Command): \n
- * Used for retrieving the application scan result table\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x07 \n
- * Module Number: Scan Concentrator Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- SCAN_CNCN_BSSID_RATE_LIST_PARAM = GET_BIT | SCAN_CNCN_PARAM | 0x09, /**< Scan Concentrator Rate List Parameter (Scan Concentrator Module Get Command): \n
- * Used for retrieving the application scan rates result table\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x08 \n
- * Module Number: Scan Concentrator Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- SCAN_CNCN_SET_SRA = SET_BIT | SCAN_CNCN_PARAM | 0x0A, /**< Scan Concentrator set scan result aging (Scan Concentrator Module Get Command): \n
- * Used for aging threshold\n
- * Parameter Number: 0x09 \n
- * Module Number: Scan Concentrator Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- SCAN_CNCN_SET_RSSI = SET_BIT | SCAN_CNCN_PARAM | 0x0B, /**< Scan Concentrator set rssi filter threshold (Scan Concentrator Module Get Command): \n
- * Used for rssi threshold\n
- * Parameter Number: 0x0A \n
- * Module Number: Scan Concentrator Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- /* Scan Manager module */
- SCAN_MNGR_SET_CONFIGURATION = SET_BIT | SCAN_MNGR_PARAM | 0x01 | ALLOC_NEEDED_PARAM, /**< Scan Manager Set Configuration Parameter (Scan Manager Module Set Command): \n
- * Used for setting the Scan Policy\n
- * Done Sync with memory allocation\n
- * Parameter Number: 0x01 \n
- * Module Number: Scan Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: ON \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- SCAN_MNGR_BSS_LIST_GET = GET_BIT | SCAN_MNGR_PARAM | 0x02 | ALLOC_NEEDED_PARAM, /**< Scan Manager Get BSS List Parameter (Scan Manager Module Get Command): \n
- * Used for getting the currently available BSS list\n
- * Done Sync with memory allocation\n
- * Parameter Number: 0x02 \n
- * Module Number: Scan Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: ON \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
-
- /* regulatory domain section */
- REGULATORY_DOMAIN_MANAGEMENT_CAPABILITY_ENABLED_PARAM = GET_BIT | REGULATORY_DOMAIN_MODULE_PARAM | 0x02, /**< Regulatory Domain Management Capability Enabled Parameter (Regulatory Domain Module Get Command): \n
- * Used for getting indication if Spectrum Management is enabled\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x02 \n
- * Module Number: Regulatory Domain Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- REGULATORY_DOMAIN_ENABLED_PARAM = GET_BIT | REGULATORY_DOMAIN_MODULE_PARAM | 0x03, /**< Regulatory Domain Enabled Parameter (Regulatory Domain Module Get Command): \n
- * Used for getting indication if regulatory domain if 802.11d is in use\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x03 \n
- * Module Number: Regulatory Domain Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- REGULATORY_DOMAIN_CURRENT_TX_POWER_LEVEL_PARAM = SET_BIT | GET_BIT | REGULATORY_DOMAIN_MODULE_PARAM | 0x06, /**< Regulatory Domain Current TX Power Level Parameter (Regulatory Domain Module Set/Get Command): \n
- * Used for setting/getting current TZ Power Level\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x06 \n
- * Module Number: Regulatory Domain Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- REGULATORY_DOMAIN_CURRENT_TX_POWER_IN_DBM_PARAM = SET_BIT | GET_BIT | REGULATORY_DOMAIN_MODULE_PARAM | 0x08, /**< Regulatory Domain Current TX Power in DBM Parameter (Regulatory Domain Module Set/Get Command): \n
- * Used for setting/getting current TX Power Level in DBM\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x08 \n
- * Module Number: Regulatory Domain Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- REGULATORY_DOMAIN_ENABLE_DISABLE_802_11D = SET_BIT | REGULATORY_DOMAIN_MODULE_PARAM | 0x0C, /**< Regulatory Domain Enable/Disable 802.11d Parameter (Regulatory Domain Module Set Command): \n
- * Used for enabling/disabling 802.11d.\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0C \n
- * Module Number: Regulatory Domain Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- REGULATORY_DOMAIN_ENABLE_DISABLE_802_11H = SET_BIT | REGULATORY_DOMAIN_MODULE_PARAM | 0x0D, /**< Regulatory Domain Enable/Disable 802.11h Parameter (Regulatory Domain Module Set Command): \n
- * Used for enabling/disabling 802.11h (If 802_11h is enabled, enable 802_11d as well)\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0D \n
- * Module Number: Regulatory Domain Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- REGULATORY_DOMAIN_COUNTRY_2_4_PARAM = SET_BIT | GET_BIT | REGULATORY_DOMAIN_MODULE_PARAM | 0x0E | ALLOC_NEEDED_PARAM, /**< Regulatory Domain Country 2-4 Parameter (Regulatory Domain Module Set/Get Command): \n
- * Used for getting Country String or setting the local country IE per band with the Country IE that was detected in the last passive scan\n
- * Done Sync with memory allocation\n
- * Parameter Number: 0x0E \n
- * Module Number: Regulatory Domain Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: ON \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- REGULATORY_DOMAIN_COUNTRY_5_PARAM = SET_BIT | GET_BIT | REGULATORY_DOMAIN_MODULE_PARAM | 0x0F | ALLOC_NEEDED_PARAM, /**< Regulatory Domain Country 5 Parameter (Regulatory Domain Module Set/Get Command): \n
- * Used for getting Country String or setting the local country IE per band with the Country IE that was detected in the last passive scan\n
- * Done Sync with memory allocation\n
- * Parameter Number: 0x0F \n
- * Module Number: Regulatory Domain Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: ON \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- REGULATORY_DOMAIN_DFS_CHANNELS_RANGE = SET_BIT | GET_BIT | REGULATORY_DOMAIN_MODULE_PARAM | 0x10, /**< Regulatory Domain DFS Channels Parameter (Regulatory Domain Module Set/Get Command): \n
- * Used for config manager in order to set/get a parameter received from the OS abstraction layer\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x10 \n
- * Module Number: Regulatory Domain Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- REGULATORY_DOMAIN_TX_POWER_LEVEL_TABLE_PARAM = GET_BIT | REGULATORY_DOMAIN_MODULE_PARAM | 0x12, /**< Regulatory Domain TX Power Level Table Parameter (Regulatory Domain Module Get Command): \n
- * Used for getting TX Power Level Table from FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x12 \n
- * Module Number: Regulatory Domain Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
-
- /* Power Manager params */
- POWER_MGR_POWER_MODE = SET_BIT | GET_BIT | POWER_MANAGER_PARAM | 0x01, /**< Power Manager Power Mode Parameter (Power Manager Module Set/Get Command): \n
- * Used for setting/getting the Power Mode to/from Power Manager Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x01 \n
- * Module Number: Power Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- POWER_MGR_POWER_LEVEL_PS = SET_BIT | GET_BIT | POWER_MANAGER_PARAM | 0x02, /**< Power Manager Power Level Power-Save Parameter (Power Manager Module Set/Get Command): \n
- * Used for getting the Power Level Power-Save from Power Manager Module or setting the Power Level Power-Save to Power Manager Module (and to FW if Power-Save is Enabled)\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x02 \n
- * Module Number: Power Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- POWER_MGR_POWER_LEVEL_DEFAULT = SET_BIT | GET_BIT | POWER_MANAGER_PARAM | 0x03, /**< Power Manager Power Level Default Parameter (Power Manager Module Set/Get Command): \n
- * Used for getting the Power Level Default from Power Manager Module or setting the Power Level Default to Power Manager Module (and to FW if Power-Save is Enabled)\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x03 \n
- * Module Number: Power Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- POWER_MGR_POWER_LEVEL_DOZE_MODE = SET_BIT | GET_BIT | POWER_MANAGER_PARAM | 0x04, /**< Power Manager Power Level Doze Mode (short-doze / long-doze) Parameter (Power Manager Module Set/Get Command): \n
- * Used for getting the Power Level Doze Mode from Power Manager Module or setting the Power Level Doze Mode to Power Manager Module (and to FW if Power-Save is Enabled)\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x04 \n
- * Module Number: Power Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- POWER_MGR_KEEP_ALIVE_ENA_DIS = SET_BIT | POWER_MANAGER_PARAM | 0x05, /**< Power Manager Keep Alive Enable/Disable Parameter (Power Manager Module Set Command): \n
- * Used for setting the Keep Alive Enable/Disable to Power Manager and FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x05 \n
- * Module Number: Power Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- POWER_MGR_KEEP_ALIVE_ADD_REM = SET_BIT | POWER_MANAGER_PARAM | 0x06 | ALLOC_NEEDED_PARAM, /**< Power Manager Keep Alive add REM Parameter (Power Manager Module Set Command): \n
- * Used for setting addition/removal of a template and global enable/disable flag to Power Manager and FW\n
- * Done Sync with memory allocation\n
- * Parameter Number: 0x06 \n
- * Module Number: Power Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: ON \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- POWER_MGR_KEEP_ALIVE_GET_CONFIG = GET_BIT | POWER_MANAGER_PARAM | 0x07 | ALLOC_NEEDED_PARAM, /**< Power Manager Keep Alive Get Configuration Parameter (Power Manager Module Get Command): \n
- * Used for getting the Keep Alive current Configuration\n
- * Done Sync with memory allocation\n
- * Parameter Number: 0x07 \n
- * Module Number: Power Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: ON \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
-
-
- POWER_MGR_GET_POWER_CONSUMPTION_STATISTICS = GET_BIT | POWER_MANAGER_PARAM | 0x09| ASYNC_PARAM, /**< Power Manager Get power consumption parmeter (Power Manager Module Get Command): \n
- * Used for getting the Keep Alive current Configuration\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x08 \n
- * Module Number: Power Manager Module Number \n
- * Async Bit: ON \n
- * Allocate Bit: ON \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
-
-
-
-
- /* Robust Security NW (RSN) section */
- RSN_ENCRYPTION_STATUS_PARAM = SET_BIT | GET_BIT | RSN_MODULE_PARAM | 0x04, /**< Robust Security NW (RSN) Encryption Status Parameter (RSN Module Set/Get Command): \n
- * Used for setting/getting Encryption Status to/from RSN Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x04 \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- RSN_ADD_KEY_PARAM = SET_BIT | RSN_MODULE_PARAM | 0x05, /**< Robust Security NW (RSN) Add Key Parameter (RSN Module Set Command): \n
- * Used for adding RSN Key to FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x05 \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- RSN_REMOVE_KEY_PARAM = SET_BIT | RSN_MODULE_PARAM | 0x06, /**< Robust Security NW (RSN) Remove Key Parameter (RSN Module Set Command): \n
- * Used for removing RSN Key from FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x06 \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- RSN_EXT_AUTHENTICATION_MODE = SET_BIT | GET_BIT | RSN_MODULE_PARAM | 0x07, /**< Robust Security NW (RSN) External Authentication Mode Parameter (RSN Module Set/Get Command): \n
- * Used for getting RSN External Authentication Mode from RSN Module or setting RSN External Authentication Mode to FW and RSN Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x07 \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- RSN_MIXED_MODE = SET_BIT | GET_BIT | RSN_MODULE_PARAM | 0x08, /**< Robust Security NW (RSN) Mixed Mode Parameter (RSN Module Set/Get Command): \n
- * Used for setting/getting RSN Mixed Mode to/from RSN Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x08 \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- RSN_DEFAULT_KEY_ID = SET_BIT | GET_BIT | RSN_MODULE_PARAM | 0x09, /**< Robust Security NW (RSN) Defualt Key ID Parameter (RSN Module Set/Get Command): \n
- * Used for getting RSN defualt Key ID from RSN Module or setting RSN defualt Key ID to FW and RSN Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x09 \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- RSN_XCC_NETWORK_EAP = SET_BIT | GET_BIT | RSN_MODULE_PARAM | 0x0A, /**< Robust Security NW (RSN) XCC NW EAP Parameter (RSN Module Set/Get Command): \n
- * Used for setting/getting RSN XCC NW EAP to/from RSN Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0B \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
- RSN_SET_KEY_PARAM = SET_BIT | RSN_MODULE_PARAM | 0x0B, /**< Robust Security NW (RSN) Set Key Parameter (RSN Module Set/Get Command): \n
- * Used for setting Keys during external RSN mode to RSN Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0B \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
-
-
- RSN_SET_PROTECTION_RX_PARAM = SET_BIT | RSN_MODULE_PARAM | ASYNC_PARAM | 0x0C, /**< Robust Security NW (RSN) Set Protection RX Parameter (RSN Module Set/Get Command): \n
- * Used for setting protection for RX during external RSN mode to RSN Module\n
- * Done ASync with no memory allocation\n
- * Parameter Number: 0x0C \n
- * Module Number: RSN Module Number \n
- * Async Bit: ON \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
-
- RSN_SET_PROTECTION_RX_TX_PARAM = SET_BIT | RSN_MODULE_PARAM | 0x0D, /**< Robust Security NW (RSN) Set Protection RX TX Parameter (RSN Module Set/Get Command): \n
- * Used for setting protection for both RX and TX during external RSN mode to RSN Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0C \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
- RSN_PORT_STATUS_PARAM = SET_BIT | GET_BIT | RSN_MODULE_PARAM | 0x0D, /**< Robust Security NW (RSN) Port Status (RSN Module Set/Get Command): \n
- * Used for setting port status during external RSN mode to RSN Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0D \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
- RSN_GENERIC_IE_PARAM = SET_BIT | RSN_MODULE_PARAM | 0x0E, /**< Robust Security NW (RSN) Generic IE (RSN Module Set Command): \n
- * Used for setting the Generic IE passed to the AP during association to RSN Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0E \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- RSN_EXTERNAL_MODE_PARAM = SET_BIT | GET_BIT | RSN_MODULE_PARAM | 0x0F, /**< Robust Security NW (RSN) External Mode Parameter: \n
- * Used for getting the RSN External Mode\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x0F \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- RSN_GEM_DATA_PARAM = RSN_MODULE_PARAM | 0x10, /**< Robust Security NW (RSN) External Mode Parameter: \n
- * Used for setting GEM data\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x10 \n
- * Module Number: RSN Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
-
-
- /* TWD Control section */
- TWD_RTS_THRESHOLD_PARAM = SET_BIT | GET_BIT | TWD_MODULE_PARAM | TWD_RTS_THRESHOLD_PARAM_ID, /**< TWD Control RTS Threshold Parameter (TWD Control Module Set/Get Command): \n
- * Used for getting RTS Threshold from TWD Control Module or setting RTS Threshold to FW and TWD Control Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: TWD_RTS_THRESHOLD_PARAM_ID \n
- * Module Number: TWD Control Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- TWD_FRAG_THRESHOLD_PARAM = SET_BIT | GET_BIT | TWD_MODULE_PARAM | TWD_FRAG_THRESHOLD_PARAM_ID, /**< TWD Control Fragmentation Threshold Parameter (TWD Control Module Set/Get Command): \n
- * Used for getting Fragmentation Threshold from TWD Control Module or setting Fragmentation Threshold to FW and TWD Control Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: TWD_FRAG_THRESHOLD_PARAM_ID \n
- * Module Number: TWD Control Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- TWD_RSSI_LEVEL_PARAM = GET_BIT | TWD_MODULE_PARAM | TWD_RSSI_LEVEL_PARAM_ID | ASYNC_PARAM, /**< TWD Control RSSI Level Parameter (TWD Control Module Get Command): \n
- * Used for getting RSSI Level From FW\n
- * Done Async with no memory allocation\n
- * Parameter Number: TWD_RSSI_LEVEL_PARAM_ID \n
- * Module Number: TWD Control Module Number \n
- * Async Bit: ON \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- TWD_SNR_RATIO_PARAM = GET_BIT | TWD_MODULE_PARAM | TWD_SNR_RATIO_PARAM_ID | ASYNC_PARAM, /**< TWD Control SNR Radio Parameter (TWD Control Module Get Command): \n
- * Used for getting SNR Radio From FW (same outcome as TWD_RSSI_LEVEL_PARAM)\n
- * Done Async with no memory allocation\n
- * Parameter Number: TWD_SNR_RATIO_PARAM_ID \n
- * Module Number: TWD Control Module Number \n
- * Async Bit: ON \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
-
- /*for BIP/PLT/Radio Debug Tests --> supports Set + GET*/
- TWD_RADIO_TEST_PARAM = SET_BIT | GET_BIT | TWD_MODULE_PARAM | TWD_RADIO_TEST_PARAM_ID | ASYNC_PARAM, /**< TWD Control SNR Radio Parameter (TWD Control Module Set/Get Command): \n
- * Used for performing BIP/PLT/Radio Debug Tests\n
- * Done Async with no memory allocation\n
- * Parameter Number: TWD_RADIO_TEST_PARAM_ID \n
- * Module Number: TWD Control Module Number \n
- * Async Bit: ON \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
- TWD_FM_COEX_PARAM = SET_BIT | TWD_MODULE_PARAM | TWD_FM_COEX_PARAM_ID, /**< TWD Control FM-Coexistence Parameters (TWD Control Module Set/Get Command): \n
- * Used for setting the FM-Coexistence Parameters\n
- * Done Async with no memory allocation\n
- * Parameter Number: TWD_FM_COEX_PARAM_ID \n
- * Module Number: TWD Control Module Number \n
- * Async Bit: ON \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- TWD_DCO_ITRIM_PARAMS = SET_BIT | GET_BIT | TWD_MODULE_PARAM | TWD_DCO_ITRIM_PARAMS_ID, /**< TWD Control DCO Itrim Parameters (TWD Control Module Set/Get Command): \n
- * Used for getting DCO Itrim Parameters from TWD Control Module or setting DCO Itrim Parameters to FW and TWD Control Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: TWD_DCO_ITRIM_PARAMS_ID \n
- * Module Number: TWD Control Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- /* Roaming manager */
- ROAMING_MNGR_APPLICATION_CONFIGURATION = SET_BIT | GET_BIT | ROAMING_MANAGER_MODULE_PARAM | 0x01, /**< Roaming Manager Application Configuration Parameter (Roaming Manager Module Set/Get Command): \n
- * Used for setting/getting Roaming Manager Application Configuration to/from Roaming Manager Module and State-Machine\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x01 \n
- * Module Number: Roaming Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- ROAMING_MNGR_USER_DEFINED_TRIGGER = SET_BIT | ROAMING_MANAGER_MODULE_PARAM | 0x02, /**< Roaming Manager User Defined Trigger Parameter (Roaming Manager Module Set Command): \n
- * Used for setting user-defined trigger to FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x02 \n
- * Module Number: Roaming Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- /* QOS manager params */
- QOS_MNGR_SET_OS_PARAMS = SET_BIT | QOS_MANAGER_PARAM | 0x10, /**< QoS Manager Set OS Parameter (QoS Module Set Command): \n
- * Used for setting Quality Of Service Manager's Parameters\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x10 \n
- * Module Number: QoS Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- QOS_MNGR_AP_QOS_PARAMETERS = GET_BIT | QOS_MANAGER_PARAM | 0x11, /**< QoS Manager AP QoS Parameter (QoS Module Get Command): \n
- * Used for getting current AP QoS Parameters from QoS Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x11 \n
- * Module Number: QoS Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- QOS_MNGR_OS_TSPEC_PARAMS = GET_BIT | QOS_MANAGER_PARAM | 0x12, /**< QoS Manager OS TSPEC Parameter (QoS Module Get Command): \n
- * Used for getting current OS 802.11 QoS TSPEC Parameters from QoS Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x12 \n
- * Module Number: QoS Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- QOS_MNGR_AC_STATUS = SET_BIT | GET_BIT | QOS_MANAGER_PARAM | 0x13, /**< QoS Manager AC Status Parameter (QoS Module Set/Get Command): \n
- * Used for setting/getting SC Status\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x13 \n
- * Module Number: QoS Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- QOS_MNGR_ADD_TSPEC_REQUEST = SET_BIT | QOS_MANAGER_PARAM | 0x14, /**< QoS Manager Add TSPEC Request Parameter (QoS Module Set Command): \n
- * Used for setting TSPEC Parameters to QoS Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x14 \n
- * Module Number: QoS Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- QOS_MNGR_DEL_TSPEC_REQUEST = SET_BIT | QOS_MANAGER_PARAM | 0x15, /**< QoS Manager Delete TSPEC Request Parameter (QoS Module Set Command): \n
- * Used for deleting TSPEC Parameters from QoS Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x15 \n
- * Module Number: QoS Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- QOS_MNGR_GET_DESIRED_PS_MODE = GET_BIT | QOS_MANAGER_PARAM | 0x17, /**< QoS Manager Get Desired Power-Save Mode Parameter (QoS Module Get Command): \n
- * Used for getting the current desired Power-Save Mode from QoS Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x17 \n
- * Module Number: QoS Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- QOS_SET_RX_TIME_OUT = SET_BIT | QOS_MANAGER_PARAM | 0x18, /**< QoS Manager Get Desired Power-Save Mode Parameter (QoS Module Set Command): \n
- * Used for setting RX Time Out (PS poll and UPSD) to FW and in QoS Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x18 \n
- * Module Number: QoS Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- QOS_MNGR_PS_RX_STREAMING = SET_BIT | GET_BIT | QOS_MANAGER_PARAM | 0x19, /**< QoS Manager Set Power-Save RX Streaming Parameter (QoS Module Set/Get Command): \n
- * Used for getting Power-Save RX Streaming or setting Power-Save RX Streaming to FW and in QoS Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x19 \n
- * Module Number: QoS Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
- /* Soft Gemini params */
- SOFT_GEMINI_SET_ENABLE = SET_BIT | SOFT_GEMINI_PARAM | 0x01, /**< Soft Gimini Parameters Set Enable Parameter (Soft Gimini Parameters Module Set Command): \n
- * Used for configuring Soft Gimini enable Mode (Enable|Disable|Auto) in FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x01 \n
- * Module Number: Soft Gimini Parameters Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- SOFT_GEMINI_SET_CONFIG = SET_BIT | SOFT_GEMINI_PARAM | 0x03, /**< Soft Gimini Parameters Set Configuration Parameter (Soft Gimini Parameters Module Set Command): \n
- * Used for setting Soft Gimini Configuration to FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x03 \n
- * Module Number: Soft Gimini Parameters Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- SOFT_GEMINI_GET_CONFIG = GET_BIT | SOFT_GEMINI_PARAM | 0x04, /**< Soft Gimini Parameters Get Configuration Parameter (Soft Gimini Parameters Module Get Command): \n
- * Used for getting Soft Gimini Configuration\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x04 \n
- * Module Number: Soft Gimini Parameters Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
-
- /* REPORT section */
- REPORT_MODULE_TABLE_PARAM = SET_BIT | GET_BIT | REPORT_MODULE_PARAM | 0x01, /**< Report Module Table Parameter (Report Module Set/Get Command): \n
- * Used for setting/getting Report Module Table (Tble of all Logged Modules)\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x01 \n
- * Module Number: Report Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- REPORT_SEVERITY_TABLE_PARAM = SET_BIT | GET_BIT | REPORT_MODULE_PARAM | 0x02, /**< Report Severity Table Parameter (Report Module Set/Get Command): \n
- * Used for setting/getting the Severity Table (holds availble severity Levels of the event which is reported to user)\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x02 \n
- * Module Number: Report Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- REPORT_MODULE_ON_PARAM = SET_BIT | GET_BIT | REPORT_MODULE_PARAM | 0x03, /**< Report Module ON Parameter (Report Module Set/Get Command): \n
- * Used for setting (Enable) ceratin Logged Module in Report Modules Table or getting the Reported Module Status from Table (Enabled/Disabled)\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x03 \n
- * Module Number: Report Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- REPORT_MODULE_OFF_PARAM = SET_BIT | GET_BIT | REPORT_MODULE_PARAM | 0x04, /**< Report Module OFF Parameter (Report Module Set/Get Command): \n
- * Used for setting (Disable) ceratin Logged Module in Report Modules Table or getting the Reported Module Status from Table (Enabled/Disabled)\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x04 \n
- * Module Number: Report Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- REPORT_PPMODE_VALUE_PARAM = SET_BIT | GET_BIT | REPORT_MODULE_PARAM | 0x05, /**< Report PP MODE Value Parameter (Report Module Set/Get Command): \n
- * Used for setting (Enable/Disable) or Getting the Debug Mode flag, which indicates whether debug module should be used or not\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x05 \n
- * Module Number: Report Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- REPORT_OUTPUT_TO_LOGGER_ON = SET_BIT | GET_BIT | REPORT_MODULE_PARAM | 0x06, /**< Report output ON Parameter (Report Module Set/Get Command): \n
- * Used for setting the output of logs to the logger application\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x04 \n
- * Module Number: Report Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
- REPORT_OUTPUT_TO_LOGGER_OFF = SET_BIT | GET_BIT | REPORT_MODULE_PARAM | 0x07,/**< Report output OFF Parameter (Report Module Set/Get Command): \n
- * Used for setting OFF the output of logs to the logger application\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x04 \n
- * Module Number: Report Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
-
- /* TX data section */
- TX_CTRL_COUNTERS_PARAM = GET_BIT | TX_CTRL_MODULE_PARAM | 0x01 | ALLOC_NEEDED_PARAM, /**< TX Control Counters Parameter (TX Control Module Get Command): \n
- * Used for getting TX statistics per Tx-queue\n
- * Done Sync with memory allocation\n
- * Parameter Number: 0x01 \n
- * Module Number: TX Control Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: ON \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
- TX_CTRL_RESET_COUNTERS_PARAM = SET_BIT | TX_CTRL_MODULE_PARAM | 0x02, /**< TX Control Reset Counters Parameter (TX Control Module Set Command): \n
- * Used for Reset all TX statistics per Tx-queue\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x02 \n
- * Module Number: TX Control Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- TX_CTRL_SET_MEDIUM_USAGE_THRESHOLD = SET_BIT | TX_CTRL_MODULE_PARAM | 0x03, /**< TX Control Set Medum Usage Threshold Parameter (TX Control Module Set Command): \n
- * Used for setting Medum Usage Threshold of AC\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x03 \n
- * Module Number: TX Control Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- TX_CTRL_GENERIC_ETHERTYPE = SET_BIT | GET_BIT | TX_CTRL_MODULE_PARAM | 0x10, /**< TX Control Get/Set Generic Ethertype (TX Control Module Get/Set Command): \n
- * Used for setting the Generic Ethertype for authentication packets\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x10 \n
- * Module Number: TX Control Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
- /* RX data section */
- RX_DATA_ENABLE_DISABLE_RX_DATA_FILTERS = SET_BIT | GET_BIT | RX_DATA_MODULE_PARAM | 0x04, /**< RX Data Enable/Disable Filters Parameter (RX Data Module Set/Get Command): \n
- * Used for Enabling/Disabling Filters in FW or getting the Filters Enabling/Disabling current Status\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x04 \n
- * Module Number: RX Data Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
- RX_DATA_ADD_RX_DATA_FILTER = SET_BIT | RX_DATA_MODULE_PARAM | 0x05, /**< RX Data Add Filter Parameter (RX Data Module Set Command): \n
- * Used for adding RX Data Filter to FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x05 \n
- * Module Number: RX Data Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- RX_DATA_REMOVE_RX_DATA_FILTER = SET_BIT | RX_DATA_MODULE_PARAM | 0x06, /**< RX Data Remove Filter Parameter (RX Data Module Set Command): \n
- * Used for removing RX Data Filter from FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x06 \n
- * Module Number: RX Data Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- RX_DATA_GET_RX_DATA_FILTERS_STATISTICS = GET_BIT | RX_DATA_MODULE_PARAM | 0x07 | ASYNC_PARAM, /**< RX Data Get RX Data Filter Statistics Parameter (RX Data Module Get Command): \n
- * Used for getting RX Data Filter Statistics from FW\n
- * Done Async with no memory allocation\n
- * Parameter Number: 0x07 \n
- * Module Number: RX Data Module Number \n
- * Async Bit: ON \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: OFF \n
- */
-
-
- /* measurement section */
- MEASUREMENT_ENABLE_DISABLE_PARAM = SET_BIT | MEASUREMENT_MODULE_PARAM | 0x01, /**< Measurement Enable/Disable Parameter (Measurement Module Set Command): \n
- * Used for Enabling/Disabling Measurement Management Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x01 \n
- * Module Number: Measurement Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
- MEASUREMENT_MAX_DURATION_PARAM = SET_BIT | MEASUREMENT_MODULE_PARAM | 0x02, /**< Measurement Maximum Duration Parameter (Measurement Module Set Command): \n
- * Used for updating the Maximum Duration on non serving channel\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x02 \n
- * Module Number: Measurement Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- /* XCC */
- XCC_CONFIGURATION = SET_BIT | GET_BIT | XCC_MANAGER_MODULE_PARAM | 0x01, /**< XCC Manager Configuration Parameter (XCC Manager Module Set/Get Command): \n
- * Used for setting or getting XCC configuration (RogueAP, CCKM, CKIP, All)\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x01 \n
- * Module Number: XCC Manager Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: ON \n
- * SET Bit: ON \n
- */
-
- /* MISC section */
- DEBUG_ACTIVATE_FUNCTION = SET_BIT | MISC_MODULE_PARAM | 0x03, /**< Debug Activate Function Parameter (MISC Module Set Command): \n
- * Used for performing debug function\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x03 \n
- * Module Number: MISC Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- /* Health Monitoring section */
- HEALTH_MONITOR_CHECK_DEVICE = SET_BIT | HEALTH_MONITOR_MODULE_PARAM | 0x01, /**< Health Monitoring Check Device Parameter (Health Monitoring Module Set Command): \n
- * Used for sending health check command to FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x01 \n
- * Module Number: Health Monitoring Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- /* TWD CoexActivity table */
- TWD_COEX_ACTIVITY_PARAM = SET_BIT | TWD_MODULE_PARAM | TWD_COEX_ACTIVITY_PARAM_ID, /**< TWD Control CoexActivity Parameter (TWD Control Module Set/Get Command): \n
- * Used for getting RTS Threshold from TWD Control Module or setting RTS Threshold to FW and TWD Control Module\n
- * Done Sync with no memory allocation\n
- * Parameter Number: TWD_COEX_ACTIVITY_PARAM_ID \n
- * Module Number: TWD Control Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- /* CurrBss Section */
- CURR_BSS_REGISTER_LINK_QUALITY_EVENT_PARAM = SET_BIT | CURR_BSS_MODULE_PARAM | 0x01, /**< CurrBss User Defined Trigger Parameter (Roaming Manager Module Set Command): \n
- * Used for setting user-defined trigger to FW\n
- * Done Sync with no memory allocation\n
- * Parameter Number: 0x01 \n
- * Module Number: Curr Bss Module Number \n
- * Async Bit: OFF \n
- * Allocate Bit: OFF \n
- * GET Bit: OFF \n
- * SET Bit: ON \n
- */
-
- LAST_CMD = 0x00 /**< Last External Parameter - Dummy, Should always stay Last */
-
-} EExternalParam;
-
-/* functions */
-/*************/
-
-#endif /* _CMD_INTERFACE_CODES_H_ */
-
diff --git a/wl1271/utils/GenSM.c b/wl1271/utils/GenSM.c
deleted file mode 100644
index 9c9c4ef..0000000
--- a/wl1271/utils/GenSM.c
+++ /dev/null
@@ -1,232 +0,0 @@
-/*
- * GenSM.c
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/** \file GenSM.c
- * \brief Generic state machine implementation
- *
- * \see GenSM.h
- */
-
-
-#define __FILE_ID__ FILE_ID_128
-#include "tidef.h"
-#include "osApi.h"
-#include "report.h"
-#include "GenSM.h"
-
-
-/**
- * \fn genSM_Create
- * \brief Cerates a generic state machine object
- *
- * Cerates a generic state machine object. Allocates system resources.
- *
- * \note event/action matrix and debug descriptions are used by reference, and are not copied!
- * \param hOS - handle to the OS object
- * \return Handle to the generic state machine object
- * \sa GenSM_Unload, GenSM_Init, genSM_SetDefaults
- */
-TI_HANDLE genSM_Create (TI_HANDLE hOS)
-{
- TGenSM *pGenSM = NULL;
-
- /* Allocate object storage */
- pGenSM = os_memoryAlloc (hOS, sizeof(TGenSM));
- if (NULL != pGenSM)
- {
- /* Store OS handle */
- pGenSM->hOS = hOS;
- }
-
- return (TI_HANDLE)pGenSM;
-}
-
-/**
- * \fn genSM_Unload
- * \brief Unloads a generic state machine object
- *
- * Unloads a generic state machine object. Frees system resources consumed by the object.
- *
- * \param hGenSM - hanlde to the generic state machine object
- * \return None
- * \sa GenSM_Create
- */
-void genSM_Unload (TI_HANDLE hGenSM)
-{
- TGenSM *pGenSM = (TGenSM*)hGenSM;
-
- /* free the generic state machine object storage */
- os_memoryFree (pGenSM->hOS, hGenSM, sizeof (TGenSM));
-}
-
-/**
- * \fn genSM_Init
- * \brief Initializes the generic state machine object
- *
- * Initializes the generic state machine object. Store handles to other modules.
- *
- * \param hGenSM - hanlde to the generic state machine object
- * \param hReport - handle to the report module
- * \return None
- * \sa GenSM_Create, genSM_SetDefaults
- */
-void genSM_Init (TI_HANDLE hGenSM, TI_HANDLE hReport)
-{
- TGenSM *pGenSM = (TGenSM*)hGenSM;
-
- /* store report handle */
- pGenSM->hReport = hReport;
-}
-
-/**
- * \fn genSM_SetDefaults
- * \brief Set default values to the generic state machine
- *
- * Set default values to the generic state machine
- *
- * \note event/action matrix and debug descriptions are used by reference, and are not copied!
- * \param hGenSM - hanlde to the generic state machine object
- * \param uStateNum - number of states
- * \param uEventNum - number of events
- * \param pMatrix - pointer to the event/actions matrix
- * \param uInitialState - the initial state
- * \param pGenSMName - a string describing the state machine, for debug prints
- * \param pStateDesc - strings describing the state machine states, for debug prints
- * \param pEventDesc - strings describing the state machine events, for debug prints
- * \param uModuleLogIndex - Log index used by the module using the state machine
- * \return None
- * \sa genSM_Create, genSM_Init
- */
-void genSM_SetDefaults (TI_HANDLE hGenSM, TI_UINT32 uStateNum, TI_UINT32 uEventNum,
- TGenSM_matrix pMatrix, TI_UINT32 uInitialState, TI_INT8 *pGenSMName,
- TI_INT8 **pStateDesc, TI_INT8 **pEventDesc, TI_UINT32 uModuleLogIndex)
-{
- TGenSM *pGenSM = (TGenSM*)hGenSM;
-
- /* set values */
- pGenSM->uStateNum = uStateNum;
- pGenSM->uEventNum = uEventNum;
- pGenSM->tMatrix = pMatrix;
- pGenSM->uCurrentState = uInitialState;
- pGenSM->pGenSMName = pGenSMName;
- pGenSM->pStateDesc = pStateDesc;
- pGenSM->pEventDesc = pEventDesc;
- pGenSM->uModuleLogIndex = uModuleLogIndex;
- pGenSM->bEventPending = TI_FALSE;
- pGenSM->bInAction = TI_FALSE;
-}
-
-void genSM_Event (TI_HANDLE hGenSM, TI_UINT32 uEvent, void *pData)
-{
- TGenSM *pGenSM = (TGenSM*)hGenSM;
- TGenSM_actionCell *pCell;
-
- if (pGenSM == NULL)
- {
- TRACE0(pGenSM->hReport, REPORT_SEVERITY_ERROR , "genSM_Event: Handle is NULL!!\n");
- return;
- }
-
-#ifdef TI_DBG
- /* sanity check */
- if (uEvent >= pGenSM->uEventNum)
- {
- TRACE3(pGenSM->hReport, REPORT_SEVERITY_ERROR , "genSM_Event: module: %d received event %d, which is out of events boundry %d\n", pGenSM->uModuleLogIndex, uEvent, pGenSM->uEventNum);
- }
- if (TI_TRUE == pGenSM->bEventPending)
- {
- TRACE3(pGenSM->hReport, REPORT_SEVERITY_ERROR , "genSM_Event: module: %d received event %d, when event %d is pending execution!\n", pGenSM->uModuleLogIndex, uEvent, pGenSM->uEvent);
- }
-#endif
-
- /* mark that an event is pending */
- pGenSM->bEventPending = TI_TRUE;
-
- /* save event and data */
- pGenSM->uEvent = uEvent;
- pGenSM->pData = pData;
-
- /* if an event is currently executing, return (new event will be handled when current event is done) */
- if (TI_TRUE == pGenSM->bInAction)
- {
- TRACE1(pGenSM->hReport, REPORT_SEVERITY_INFORMATION , ": module: %d delaying execution of event \n", pGenSM->uModuleLogIndex);
- return;
- }
-
- /* execute events, until none is pending */
- while (TI_TRUE == pGenSM->bEventPending)
- {
- /* get the cell pointer for the current state and event */
- pCell = &(pGenSM->tMatrix[ (pGenSM->uCurrentState * pGenSM->uEventNum) + pGenSM->uEvent ]);
-
-
- /* print state transition information */
- TRACE4(pGenSM->hReport, REPORT_SEVERITY_INFORMATION, "genSM_Event: module %d <currentState = %d, event = %d> --> nextState = %d\n", pGenSM->uModuleLogIndex, pGenSM->uCurrentState, uEvent, pCell->uNextState);
-
- /* mark that event execution is in place */
- pGenSM->bInAction = TI_TRUE;
-
- /* mark that pending event is being handled */
- pGenSM->bEventPending = TI_FALSE;
-
- /* update current state */
- pGenSM->uCurrentState = pCell->uNextState;
-
- /* run transition function */
- (*(pCell->fAction)) (pGenSM->pData);
-
- /* mark that event execution is complete */
- pGenSM->bInAction = TI_FALSE;
- }
-}
-
-/**
- * \fn genSM_GetCurrentState
- * \brief retrieves the state machine current state
- *
- * retrieves the state machine current state
- *
- * \param hGenSM - hanlde to the generic state machine object
- * \return state machine current state
- */
-TI_UINT32 genSM_GetCurrentState (TI_HANDLE hGenSM)
-{
- TGenSM *pGenSM = (TGenSM*)hGenSM;
-
- if (pGenSM == NULL)
- {
- TRACE0(pGenSM->hReport, REPORT_SEVERITY_ERROR , "genSM_GetCurrentState: Handle is NULL!!\n");
- return 0;
- }
- return pGenSM->uCurrentState;
-}
diff --git a/wl1271/utils/GenSM.h b/wl1271/utils/GenSM.h
deleted file mode 100644
index 120d239..0000000
--- a/wl1271/utils/GenSM.h
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * GenSM.h
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/** \file GenSM.h
- * \brief Generic state machine declarations
- *
- * \see GenSM.c
- */
-
-
-#ifndef __GENSM_H__
-#define __GENSM_H__
-
-#include "tidef.h"
-
-/* action function type definition */
-typedef void (*TGenSM_action) (void *pData);
-
-
-/* State/Event cell */
-typedef struct
-{
- TI_UINT32 uNextState; /**< next state in transition */
- TGenSM_action fAction; /**< action function */
-} TGenSM_actionCell;
-
-
-
-/*
- * matrix type
- * Although the state-machine matrix is actually a two-dimensional array, it is treated as a single
- * dimension array, since the size of each dimeansion is only known in run-time
- */
-typedef TGenSM_actionCell *TGenSM_matrix;
-
-
-/* generic state machine object structure */
-typedef struct
-{
- TI_HANDLE hOS; /**< OS handle */
- TI_HANDLE hReport; /**< report handle */
- TGenSM_matrix tMatrix; /**< next state/action matrix */
- TI_UINT32 uStateNum; /**< Number of states in the matrix */
- TI_UINT32 uEventNum; /**< Number of events in the matrix */
- TI_UINT32 uCurrentState; /**< Current state */
- TI_UINT32 uEvent; /**< Last event sent */
- void *pData; /**< Last event data */
- TI_BOOL bEventPending; /**< Event pending indicator */
- TI_BOOL bInAction; /**< Evenet execution indicator */
- TI_UINT32 uModuleLogIndex; /**< Module index to use for printouts */
- TI_INT8 *pGenSMName; /**< state machine name */
- TI_INT8 **pStateDesc; /**< State description strings */
- TI_INT8 **pEventDesc; /**< Event description strings */
-} TGenSM;
-
-TI_HANDLE genSM_Create (TI_HANDLE hOS);
-void genSM_Unload (TI_HANDLE hGenSM);
-void genSM_Init (TI_HANDLE hGenSM, TI_HANDLE hReport);
-void genSM_SetDefaults (TI_HANDLE hGenSM, TI_UINT32 uStateNum, TI_UINT32 uEventNum,
- TGenSM_matrix pMatrix, TI_UINT32 uInitialState, TI_INT8 *pGenSMName,
- TI_INT8 **pStateDesc, TI_INT8 **pEventDesc, TI_UINT32 uModuleLogIndex);
-void genSM_Event (TI_HANDLE hGenSM, TI_UINT32 uEvent, void *pData);
-TI_UINT32 genSM_GetCurrentState (TI_HANDLE hGenSM);
-
-#endif /* __GENSM_H__ */
-
diff --git a/wl1271/utils/bmtrace_api.h b/wl1271/utils/bmtrace_api.h
deleted file mode 100644
index a4243cd..0000000
--- a/wl1271/utils/bmtrace_api.h
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * bmtrace_api.h
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/** \file bmtrace_api.h
- * \brief bmtrace performance tracing module API definition
- *
- * \see bmtrace.c
- */
-
-#ifndef __BM_TRACE_API_H
-#define __BM_TRACE_API_H
-
-void bm_enable(void);
-void bm_disable(void);
-unsigned long bm_act_trace_in(void);
-void bm_act_trace_out(int loc, unsigned long in_ts);
-int bm_act_register_event(char* module, char* context, char* group, unsigned char level, char* name, char* suffix, int is_param);
-void bm_init(void);
-int print_out_buffer(char *buf);
-
-
-#ifdef TIWLAN_BMTRACE
-#define TIWLAN_CLT_LEVEL 1
-#else
-#define TIWLAN_CLT_LEVEL 0
-#endif
-
-#define CL_TRACE_START() \
- unsigned long in_ts = bm_act_trace_in();
-
-#define CL_TRACE_RESTART_Lx() \
- in_ts = bm_act_trace_in();
-
-#define CL_TRACE_END(MODULE, CONTEXT, GROUP, LEVEL, SUFFIX) \
- { \
- static int loc = 0; \
- if (loc==0) \
- loc = bm_act_register_event(MODULE, CONTEXT, GROUP, LEVEL, (char*)__FUNCTION__, SUFFIX, 0); \
- bm_act_trace_out(loc, in_ts); \
- }
-
- #define CL_TRACE_START_L0() CL_TRACE_START()
- #define CL_TRACE_END_L0() CL_TRACE_END("KERNEL", "SYS_CALL", "PLATFORM_TEST", 0, "")
-
-#if TIWLAN_CLT_LEVEL == 1
- #define CL_TRACE_INIT() bm_init()
- #define CL_TRACE_ENABLE() bm_enable()
- #define CL_TRACE_DISABLE() bm_disable()
- #define CL_TRACE_PRINT(buf) print_out_buffer(buf)
- #define CL_TRACE_START_L1() CL_TRACE_START()
- #define CL_TRACE_START_L2()
- #define CL_TRACE_START_L3()
- #define CL_TRACE_START_L4()
- #define CL_TRACE_START_L5()
- #define CL_TRACE_RESTART() CL_TRACE_RESTART_Lx()
- #define CL_TRACE_END_L1(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 1, SUFFIX)
- #define CL_TRACE_END_L2(MODULE, CONTEXT, GROUP, SUFFIX)
- #define CL_TRACE_END_L3(MODULE, CONTEXT, GROUP, SUFFIX)
- #define CL_TRACE_END_L4(MODULE, CONTEXT, GROUP, SUFFIX)
- #define CL_TRACE_END_L5(MODULE, CONTEXT, GROUP, SUFFIX)
-#elif TIWLAN_CLT_LEVEL == 2
- #define CL_TRACE_INIT() bm_init()
- #define CL_TRACE_ENABLE() bm_enable()
- #define CL_TRACE_DISABLE() bm_disable()
- #define CL_TRACE_PRINT(buf) print_out_buffer(buf)
- #define CL_TRACE_START_L1() CL_TRACE_START()
- #define CL_TRACE_START_L2() CL_TRACE_START()
- #define CL_TRACE_START_L3()
- #define CL_TRACE_START_L4()
- #define CL_TRACE_START_L5()
- #define CL_TRACE_RESTART() CL_TRACE_RESTART_Lx()
- #define CL_TRACE_END_L1(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 1, SUFFIX)
- #define CL_TRACE_END_L2(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 2, SUFFIX)
- #define CL_TRACE_END_L3(MODULE, CONTEXT, GROUP, SUFFIX)
- #define CL_TRACE_END_L4(MODULE, CONTEXT, GROUP, SUFFIX)
- #define CL_TRACE_END_L5(MODULE, CONTEXT, GROUP, SUFFIX)
-#elif TIWLAN_CLT_LEVEL == 3
- #define CL_TRACE_INIT() bm_init()
- #define CL_TRACE_ENABLE() bm_enable()
- #define CL_TRACE_DISABLE() bm_disable()
- #define CL_TRACE_PRINT(buf) print_out_buffer(buf)
- #define CL_TRACE_START_L1() CL_TRACE_START()
- #define CL_TRACE_START_L2() CL_TRACE_START()
- #define CL_TRACE_START_L3() CL_TRACE_START()
- #define CL_TRACE_START_L4()
- #define CL_TRACE_START_L5()
- #define CL_TRACE_RESTART() CL_TRACE_RESTART_Lx()
- #define CL_TRACE_END_L1(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 1, SUFFIX)
- #define CL_TRACE_END_L2(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 2, SUFFIX)
- #define CL_TRACE_END_L3(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 3, SUFFIX)
- #define CL_TRACE_END_L4(MODULE, CONTEXT, GROUP, SUFFIX)
- #define CL_TRACE_END_L5(MODULE, CONTEXT, GROUP, SUFFIX)
-#elif TIWLAN_CLT_LEVEL == 4
- #define CL_TRACE_INIT() bm_init()
- #define CL_TRACE_ENABLE() bm_enable()
- #define CL_TRACE_DISABLE() bm_disable()
- #define CL_TRACE_PRINT(buf) print_out_buffer(buf)
- #define CL_TRACE_START_L1() CL_TRACE_START()
- #define CL_TRACE_START_L2() CL_TRACE_START()
- #define CL_TRACE_START_L3() CL_TRACE_START()
- #define CL_TRACE_START_L4() CL_TRACE_START()
- #define CL_TRACE_START_L5()
- #define CL_TRACE_RESTART() CL_TRACE_RESTART_Lx()
- #define CL_TRACE_END_L1(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 1, SUFFIX)
- #define CL_TRACE_END_L2(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 2, SUFFIX)
- #define CL_TRACE_END_L3(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 3, SUFFIX)
- #define CL_TRACE_END_L4(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 4, SUFFIX)
- #define CL_TRACE_END_L5(MODULE, CONTEXT, GROUP, SUFFIX)
-#elif TIWLAN_CLT_LEVEL == 5
- #define CL_TRACE_INIT() bm_init()
- #define CL_TRACE_ENABLE() bm_enable()
- #define CL_TRACE_DISABLE() bm_disable()
- #define CL_TRACE_PRINT(buf) print_out_buffer(buf)
- #define CL_TRACE_START_L1() CL_TRACE_START()
- #define CL_TRACE_START_L1() CL_TRACE_START()
- #define CL_TRACE_START_L2() CL_TRACE_START()
- #define CL_TRACE_START_L3() CL_TRACE_START()
- #define CL_TRACE_START_L4() CL_TRACE_START()
- #define CL_TRACE_START_L5() CL_TRACE_START()
- #define CL_TRACE_RESTART() CL_TRACE_RESTART_Lx()
- #define CL_TRACE_END_L1(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 1, SUFFIX)
- #define CL_TRACE_END_L2(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 2, SUFFIX)
- #define CL_TRACE_END_L3(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 3, SUFFIX)
- #define CL_TRACE_END_L4(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 4, SUFFIX)
- #define CL_TRACE_END_L5(MODULE, CONTEXT, GROUP, SUFFIX) CL_TRACE_END(MODULE, CONTEXT, GROUP, 5, SUFFIX)
-#else
- #define CL_TRACE_INIT()
- #define CL_TRACE_ENABLE()
- #define CL_TRACE_DISABLE()
- #define CL_TRACE_RESTART()
- #define CL_TRACE_PRINT(buf)
- #define CL_TRACE_START_L1()
- #define CL_TRACE_START_L1()
- #define CL_TRACE_START_L2()
- #define CL_TRACE_START_L3()
- #define CL_TRACE_START_L4()
- #define CL_TRACE_START_L5()
- #define CL_TRACE_END_L1(MODULE, CONTEXT, GROUP, SUFFIX)
- #define CL_TRACE_END_L2(MODULE, CONTEXT, GROUP, SUFFIX)
- #define CL_TRACE_END_L3(MODULE, CONTEXT, GROUP, SUFFIX)
- #define CL_TRACE_END_L4(MODULE, CONTEXT, GROUP, SUFFIX)
- #define CL_TRACE_END_L5(MODULE, CONTEXT, GROUP, SUFFIX)
-#endif
-
-
-#endif /* __BM_TRACE_API_H */
diff --git a/wl1271/utils/commonTypes.h b/wl1271/utils/commonTypes.h
deleted file mode 100644
index 28e8158..0000000
--- a/wl1271/utils/commonTypes.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * commonTypes.h
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef __COMMON_TYPES_H__
-#define __COMMON_TYPES_H__
-
-/************************************/
-/* System return values. */
-/************************************/
-
-typedef enum
-{
- PARAM_NOT_SUPPORTED = 2,
- PARAM_VALUE_NOT_VALID = 3,
- CONFIGURATION_NOT_VALID = 4,
- NO_SITE_SELECTED_YET = 5,
- EXTERNAL_SET_PARAM_DENIED = 7,
- EXTERNAL_GET_PARAM_DENIED = 8,
- PARAM_MODULE_NUMBER_INVALID = 9,
- STATION_IS_NOT_RUNNING = 10,
- CARD_IS_NOT_INSTALLED = 11,
-
- /* QoSMngr */
- NOT_CONNECTED,
- TRAFIC_ADM_PENDING,
- NO_QOS_AP,
- ADM_CTRL_DISABLE,
- AC_ALREADY_IN_USE,
- USER_PRIORITY_NOT_ADMITTED,
-
-
- COMMAND_PENDING,
-
- /* Rx Data Filters */
- RX_NO_AVAILABLE_FILTERS,
- RX_FILTER_ALREADY_EXISTS,
- RX_FILTER_DOES_NOT_EXIST,
- /* Soft Gemini */
- SG_REJECT_MEAS_SG_ACTIVE,
- PARAM_ALREADY_CONFIGURED
-
-} systemStatus_e;
-
-#endif /* __COMMON_TYPES_H__ */
-
diff --git a/wl1271/utils/context.c b/wl1271/utils/context.c
deleted file mode 100644
index be71f9a..0000000
--- a/wl1271/utils/context.c
+++ /dev/null
@@ -1,494 +0,0 @@
-/*
- * context.c
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/** \file context.c
- * \brief The Context-Engine is an OS independent module, which provides the
- * infrustracture for switching from external contexts to the driver's context.
- * This includes also the driver task itself (workqueue in Linux), which invokes the
- * driver specific handlers in the driver's context.
- * The OS specific implementation under this module (e.g. task-switching or
- * protection-locking) is provided by the OS abstraction layer (osapi.c).
- *
- * \see context.h, osapi.c
- */
-
-
-#define __FILE_ID__ FILE_ID_125
-#include "osApi.h"
-#include "report.h"
-#include "context.h"
-#include "bmtrace_api.h"
-
-
-
-#define MAX_CLIENTS 8 /* Maximum number of clients using context services */
-#define MAX_NAME_SIZE 16 /* Maximum client's name string size */
-
-#ifdef TI_DBG
-typedef struct
-{
- TI_UINT32 uSize; /* Clients' name string size */
- char sName [MAX_NAME_SIZE]; /* Clients' name string */
-} TClientName;
-#endif /* TI_DBG */
-
-/* context module structure */
-typedef struct
-{
- TI_HANDLE hOs;
- TI_HANDLE hReport;
-
- TI_BOOL bContextSwitchRequired; /* Indicate if the driver should switch to its */
- /* own context or not before handling events */
- TI_HANDLE hProtectionLock; /* Handle of protection lock used by context clients */
- TI_UINT32 uNumClients; /* Number of registered clients */
- TContextCbFunc aClientCbFunc [MAX_CLIENTS]; /* Clients' callback functions */
- TI_HANDLE aClientCbHndl [MAX_CLIENTS]; /* Clients' callback handles */
- TI_BOOL aClientEnabled[MAX_CLIENTS]; /* Clients' enable/disable flags */
- TI_BOOL aClientPending[MAX_CLIENTS]; /* Clients' pending flags */
-
-#ifdef TI_DBG
- TClientName aClientName [MAX_CLIENTS]; /* Clients' name string */
- TI_UINT32 aRequestCount [MAX_CLIENTS]; /* Clients' schedule requests counter*/
- TI_UINT32 aInvokeCount [MAX_CLIENTS]; /* Clients' invocations counter */
-#endif
-
-} TContext;
-
-
-/**
- * \fn context_Create
- * \brief Create the module
- *
- * Allocate and clear the module object.
- *
- * \note
- * \param hOs - Handle to Os Abstraction Layer
- * \return Handle of the allocated object
- * \sa context_Destroy
- */
-TI_HANDLE context_Create (TI_HANDLE hOs)
-{
- TI_HANDLE hContext;
-
- /* allocate module object */
- hContext = os_memoryAlloc (hOs, sizeof(TContext));
-
- if (!hContext)
- {
- WLAN_OS_REPORT (("context_Create(): Allocation failed!!\n"));
- return NULL;
- }
-
- os_memoryZero (hOs, hContext, (sizeof(TContext)));
-
- return (hContext);
-}
-
-
-/**
- * \fn context_Destroy
- * \brief Destroy the module.
- *
- * Free the module memory.
- *
- * \note
- * \param hContext - The module object
- * \return TI_OK on success or TI_NOK on failure
- * \sa context_Create
- */
-TI_STATUS context_Destroy (TI_HANDLE hContext)
-{
- TContext *pContext = (TContext *)hContext;
-
- /* Destroy the protection handle */
- os_protectDestroy (pContext->hOs, pContext->hProtectionLock);
-
- /* free module object */
- os_memoryFree (pContext->hOs, pContext, sizeof(TContext));
-
- return TI_OK;
-}
-
-
-/**
- * \fn context_Init
- * \brief Init required handles
- *
- * Init required handles.
- *
- * \note
- * \param hContext - The queue object
- * \param hOs - Handle to Os Abstraction Layer
- * \param hReport - Handle to report module
- * \return void
- * \sa
- */
-void context_Init (TI_HANDLE hContext, TI_HANDLE hOs, TI_HANDLE hReport)
-{
- TContext *pContext = (TContext *)hContext;
-
- pContext->hOs = hOs;
- pContext->hReport = hReport;
-
- /* Create the module's protection lock and save its handle */
- pContext->hProtectionLock = os_protectCreate (pContext->hOs);
-}
-
-
-/**
- * \fn context_SetDefaults
- * \brief Configure module with default settings
- *
- * Set default setting which indicates if the driver should switch to
- * its own context or not before handling events
- *
- * \note
- * \param hContext - The module's object
- * \param pContextInitParams - The module's init parameters
- * \return TI_OK on success or TI_NOK on failure
- * \sa
- */
-TI_STATUS context_SetDefaults (TI_HANDLE hContext, TContextInitParams *pContextInitParams)
-{
- TContext *pContext = (TContext *)hContext;
-
- /* Set parameters */
- pContext->bContextSwitchRequired = pContextInitParams->bContextSwitchRequired;
-
- return TI_OK;
-}
-
-
-/**
- * \fn context_RegisterClient
- * \brief Save client's parameters
- *
- * This function is used by the Context clients in their init process, for registering
- * their information,
- * This includes their callback function that should be invoked from the driver context
- * when they are pending.
- *
- * \note
- * \param hContext - The module handle
- * \param fCbFunc - The client's callback function.
- * \param hCbHndl - The client's callback function handle.
- * \param bEnable - TRUE = Enabled.
- * \return TI_UINT32 - The index allocated for the client
- * \sa
- */
-TI_UINT32 context_RegisterClient (TI_HANDLE hContext,
- TContextCbFunc fCbFunc,
- TI_HANDLE hCbHndl,
- TI_BOOL bEnable,
- char *sName,
- TI_UINT32 uNameSize)
-{
- TContext *pContext = (TContext *)hContext;
- TI_UINT32 uClientId = pContext->uNumClients;
-
- /* If max number of clients is exceeded, report error and exit. */
- if (uClientId == MAX_CLIENTS)
- {
- TRACE0(pContext->hReport, REPORT_SEVERITY_ERROR , "context_RegisterClient() MAX_CLIENTS limit exceeded!!\n");
- return 0;
- }
-
- /* Save the new client's parameters. */
- pContext->aClientCbFunc[uClientId] = fCbFunc;
- pContext->aClientCbHndl[uClientId] = hCbHndl;
- pContext->aClientEnabled[uClientId] = bEnable;
- pContext->aClientPending[uClientId] = TI_FALSE;
-
-#ifdef TI_DBG
- if (uNameSize <= MAX_NAME_SIZE)
- {
- os_memoryCopy(pContext->hOs,
- (void *)(pContext->aClientName[uClientId].sName),
- (void *)sName,
- uNameSize);
- pContext->aClientName[uClientId].uSize = uNameSize;
- }
- else
- {
- TRACE0(pContext->hReport, REPORT_SEVERITY_ERROR , "context_RegisterClient() MAX_NAME_SIZE limit exceeded!\n");
- }
-#endif /* TI_DBG */
-
- /* Increment clients number and return new client ID. */
- pContext->uNumClients++;
-
- TRACE2(pContext->hReport, REPORT_SEVERITY_INIT , "context_RegisterClient(): Client=, ID=%d, enabled=%d\n", uClientId, bEnable);
-
- return uClientId;
-}
-
-
-/**
- * \fn context_RequestSchedule
- * \brief Handle client's switch to driver's context.
- *
- * This function is called by a client from external context event.
- * It sets the client's Pending flag and requests the driver's task scheduling.
- * Thus, the client's callback will be called afterwards from the driver context.
- *
- * \note
- * \param hContext - The module handle
- * \param uClientId - The client's index
- * \return void
- * \sa context_DriverTask
- */
-void context_RequestSchedule (TI_HANDLE hContext, TI_UINT32 uClientId)
-{
- TContext *pContext = (TContext *)hContext;
-
-#ifdef TI_DBG
- pContext->aRequestCount[uClientId]++;
- TRACE3(pContext->hReport, REPORT_SEVERITY_INFORMATION , "context_RequestSchedule(): Client=, ID=%d, enabled=%d, pending=%d\n", uClientId, pContext->aClientEnabled[uClientId], pContext->aClientPending[uClientId]);
-#endif /* TI_DBG */
-
- /* Set client's Pending flag */
- pContext->aClientPending[uClientId] = TI_TRUE;
-
- /* Prevent system from going to sleep */
- os_wake_lock(pContext->hOs);
-
- /*
- * If configured to switch context, request driver task scheduling.
- * Else (context switch not required) call the driver task directly.
- */
- if (pContext->bContextSwitchRequired)
- {
- if (os_RequestSchedule(pContext->hOs) != TI_OK)
- os_wake_unlock(pContext->hOs);
- }
- else
- {
- context_DriverTask(hContext);
- os_wake_unlock(pContext->hOs);
- }
-}
-
-
-/**
- * \fn context_DriverTask
- * \brief The driver task
- *
- * This function is the driver's main task that always runs in the driver's
- * single context, scheduled through the OS (the driver's workqueue in Linux).
- * Only one instantiation of this task may run at a time!
- *
- * \note
- * \param hContext - The module handle
- * \return void
- * \sa context_RequestSchedule
- */
-void context_DriverTask (TI_HANDLE hContext)
-{
- TContext *pContext = (TContext *)hContext;
- TContextCbFunc fCbFunc;
- TI_HANDLE hCbHndl;
- TI_UINT32 i;
- CL_TRACE_START_L1();
-
- TRACE0(pContext->hReport, REPORT_SEVERITY_INFORMATION , "context_DriverTask():\n");
-
- /* For all registered clients do: */
- for (i = 0; i < pContext->uNumClients; i++)
- {
- /* If client is pending and enabled */
- if (pContext->aClientPending[i] && pContext->aClientEnabled[i])
- {
-#ifdef TI_DBG
- pContext->aInvokeCount[i]++;
- TRACE1(pContext->hReport, REPORT_SEVERITY_INFORMATION , "Invoking - Client=, ID=%d\n", i);
-#endif /* TI_DBG */
-
- /* Clear client's pending flag */
- pContext->aClientPending[i] = TI_FALSE;
-
- /* Call client's callback function */
- fCbFunc = pContext->aClientCbFunc[i];
- hCbHndl = pContext->aClientCbHndl[i];
- fCbFunc(hCbHndl);
- }
- }
-
- CL_TRACE_END_L1("tiwlan_drv.ko", "CONTEXT", "TASK", "");
-}
-
-
-/**
- * \fn context_EnableClient / context_DisableClient
- * \brief Enable a specific client activation
- *
- * Called by the driver main when needed to enble/disable a specific event handling.
- * The Enable function also schedules the driver-task if the specified client is pending.
- *
- * \note
- * \param hContext - The module handle
- * \param uClientId - The client's index
- * \return void
- * \sa context_DriverTask
- */
-void context_EnableClient (TI_HANDLE hContext, TI_UINT32 uClientId)
-{
- TContext *pContext = (TContext *)hContext;
-
-#ifdef TI_DBG
- if (pContext->aClientEnabled[uClientId])
- {
- TRACE0(pContext->hReport, REPORT_SEVERITY_ERROR , "context_EnableClient() Client already enabled!!\n");
- return;
- }
- TRACE3(pContext->hReport, REPORT_SEVERITY_INFORMATION , "context_EnableClient(): Client=, ID=%d, enabled=%d, pending=%d\n", uClientId, pContext->aClientEnabled[uClientId], pContext->aClientPending[uClientId]);
-#endif /* TI_DBG */
-
- /* Enable client */
- pContext->aClientEnabled[uClientId] = TI_TRUE;
-
- /* If client is pending, schedule driver task */
- if (pContext->aClientPending[uClientId])
- {
- /* Prevent system from going to sleep */
- os_wake_lock(pContext->hOs);
-
- /*
- * If configured to switch context, request driver task scheduling.
- * Else (context switch not required) call the driver task directly.
- */
- if (pContext->bContextSwitchRequired)
- {
- if (os_RequestSchedule(pContext->hOs) != TI_OK)
- os_wake_unlock(pContext->hOs);
- }
- else
- {
- context_DriverTask(hContext);
- os_wake_unlock(pContext->hOs);
- }
- }
-}
-
-void context_DisableClient (TI_HANDLE hContext, TI_UINT32 uClientId)
-{
- TContext *pContext = (TContext *)hContext;
-
-#ifdef TI_DBG
- if (!pContext->aClientEnabled[uClientId])
- {
- TRACE0(pContext->hReport, REPORT_SEVERITY_ERROR , "context_DisableClient() Client already disabled!!\n");
- return;
- }
- TRACE3(pContext->hReport, REPORT_SEVERITY_INFORMATION , "context_DisableClient(): Client=, ID=%d, enabled=%d, pending=%d\n", uClientId, pContext->aClientEnabled[uClientId], pContext->aClientPending[uClientId]);
-#endif /* TI_DBG */
-
- /* Disable client */
- pContext->aClientEnabled[uClientId] = TI_FALSE;
-}
-
-
-/**
- * \fn context_EnterCriticalSection / context_LeaveCriticalSection
- * \brief Lock / Unlock context related critical sections
- *
- * The context clients should use these functions for protecting their critical sections
- * when handling context transition to driver context.
- *
- * \note
- * \param hContext - The module handle
- * \return void
- * \sa
- */
-void context_EnterCriticalSection (TI_HANDLE hContext)
-{
- TContext *pContext = (TContext *)hContext;
-
- TRACE0(pContext->hReport, REPORT_SEVERITY_INFORMATION , "context_EnterCriticalSection():\n");
-
- /* Start critical section protection */
- os_protectLock (pContext->hOs, pContext->hProtectionLock);
-}
-
-void context_LeaveCriticalSection (TI_HANDLE hContext)
-{
- TContext *pContext = (TContext *)hContext;
-
- TRACE0(pContext->hReport, REPORT_SEVERITY_INFORMATION , "context_LeaveCriticalSection():\n");
-
- /* Stop critical section protection */
- os_protectUnlock (pContext->hOs, pContext->hProtectionLock);
-}
-
-
-/**
- * \fn context_Print
- * \brief Print module information
- *
- * Print the module's clients parameters.
- *
- * \note
- * \param hContext - The queue object
- * \return void
- * \sa
- */
-
-#ifdef TI_DBG
-
-void context_Print(TI_HANDLE hContext)
-{
-#ifdef REPORT_LOG
- TContext *pContext = (TContext *)hContext;
- TI_UINT32 i;
-
- WLAN_OS_REPORT(("context_Print(): %d Clients Registered:\n", pContext->uNumClients));
- WLAN_OS_REPORT(("=======================================\n"));
- WLAN_OS_REPORT(("bContextSwitchRequired = %d\n", pContext->bContextSwitchRequired));
-
- for (i = 0; i < pContext->uNumClients; i++)
- {
- WLAN_OS_REPORT(("Client %d - %s: CbFunc=0x%x, CbHndl=0x%x, Enabled=%d, Pending=%d, Requests=%d, Invoked=%d\n",
- i,
- pContext->aClientName[i].sName,
- pContext->aClientCbFunc[i],
- pContext->aClientCbHndl[i],
- pContext->aClientEnabled[i],
- pContext->aClientPending[i],
- pContext->aRequestCount[i],
- pContext->aInvokeCount[i] ));
- }
-#endif
-}
-
-#endif /* TI_DBG */
diff --git a/wl1271/utils/context.h b/wl1271/utils/context.h
deleted file mode 100644
index f3eb855..0000000
--- a/wl1271/utils/context.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * context.h
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-
-/** \file context.h
- * \brief context module header file.
- *
- * \see context.c
- */
-
-#ifndef _CONTEXT_H_
-#define _CONTEXT_H_
-
-
-
-/* The callback function type for context clients */
-typedef void (*TContextCbFunc)(TI_HANDLE hCbHndl);
-
-/* The context init parameters */
-typedef struct
-{
- /* Indicate if the driver should switch to its own context or not before handling events */
- TI_BOOL bContextSwitchRequired;
-} TContextInitParams;
-
-
-
-/* External Functions Prototypes */
-/* ============================= */
-TI_HANDLE context_Create (TI_HANDLE hOs);
-TI_STATUS context_Destroy (TI_HANDLE hContext);
-void context_Init (TI_HANDLE hContext, TI_HANDLE hOs, TI_HANDLE hReport);
-TI_STATUS context_SetDefaults (TI_HANDLE hContext, TContextInitParams *pContextInitParams);
-
-TI_UINT32 context_RegisterClient (TI_HANDLE hContext,
- TContextCbFunc fCbFunc,
- TI_HANDLE hCbHndl,
- TI_BOOL bEnable,
- char *sName,
- TI_UINT32 uNameSize);
-
-void context_RequestSchedule (TI_HANDLE hContext, TI_UINT32 uClientId);
-void context_DriverTask (TI_HANDLE hContext);
-void context_EnableClient (TI_HANDLE hContext, TI_UINT32 uClientId);
-void context_DisableClient (TI_HANDLE hContext, TI_UINT32 uClientId);
-
-void context_EnterCriticalSection (TI_HANDLE hContext);
-void context_LeaveCriticalSection (TI_HANDLE hContext);
-void context_DisableClient (TI_HANDLE hContext, TI_UINT32 uClientId);
-void context_EnableClient (TI_HANDLE hContext, TI_UINT32 uClientId);
-#ifdef TI_DBG
-void context_Print (TI_HANDLE hContext);
-#endif /* TI_DBG */
-
-
-
-#endif /* _CONTEXT_H_ */
-
-
diff --git a/wl1271/utils/freq.c b/wl1271/utils/freq.c
deleted file mode 100644
index b432812..0000000
--- a/wl1271/utils/freq.c
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * freq.c
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/** \file freq.c
- * \brief frequency to channel (and vice versa) conversion implementation
- *
- * \see freq.h
- */
-
-
-#define __FILE_ID__ FILE_ID_126
-#include "osTIType.h"
-
-#define CHAN_FREQ_TABLE_SIZE (sizeof(ChanFreq) / sizeof(CHAN_FREQ))
-
-typedef struct {
- TI_UINT8 chan;
- TI_UINT32 freq;
-} CHAN_FREQ;
-
-static CHAN_FREQ ChanFreq[] = {
- {1, 2412000},
- {2, 2417000},
- {3, 2422000},
- {4, 2427000},
- {5, 2432000},
- {6, 2437000},
- {7, 2442000},
- {8, 2447000},
- {9, 2452000},
- {10, 2457000},
- {11, 2462000},
- {12, 2467000},
- {13, 2472000},
- {14, 2484000},
- {34, 5170000},
- {36, 5180000},
- {38, 5190000},
- {40, 5200000},
- {42, 5210000},
- {44, 5220000},
- {46, 5230000},
- {48, 5240000},
- {52, 5260000},
- {56, 5280000},
- {60, 5300000},
- {64, 5320000},
- {100,5500000},
- {104,5520000},
- {108,5540000},
- {112,5560000},
- {116,5580000},
- {120,5600000},
- {124,5620000},
- {128,5640000},
- {132,5660000},
- {136,5680000},
- {140,5700000},
- {149,5745000},
- {153,5765000},
- {157,5785000},
- {161,5805000}
- };
-
-TI_UINT8 Freq2Chan (TI_UINT32 freq)
-{
- TI_UINT32 i;
-
- for (i = 0; i < CHAN_FREQ_TABLE_SIZE; i++)
- {
- if (ChanFreq[ i ].freq == freq)
- {
- return ChanFreq[ i ].chan;
- }
- }
-
- return 0;
-}
-
-
-TI_UINT32 Chan2Freq (TI_UINT8 chan)
-{
- TI_UINT32 i;
-
- for (i = 0; i < CHAN_FREQ_TABLE_SIZE; i++)
- {
- if (ChanFreq[ i ].chan == chan)
- {
- return ChanFreq[ i ].freq;
- }
- }
-
- return 0;
-}
-
diff --git a/wl1271/utils/freq.h b/wl1271/utils/freq.h
deleted file mode 100644
index e5d6449..0000000
--- a/wl1271/utils/freq.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * freq.h
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/** \file freq.h
- * \brief frequency to channel (and vice versa) conversion
- *
- * \see freq.c
- */
-
-
-#ifndef __FREQ_H__
-#define __FREQ_H__
-
-#include "osTIType.h"
-
-TI_UINT8 Freq2Chan (TI_UINT32 freq);
-TI_UINT32 Chan2Freq (TI_UINT8 chan);
-
-#endif /* __FREQ_H__ */
-
diff --git a/wl1271/utils/fsm.c b/wl1271/utils/fsm.c
deleted file mode 100644
index aca1b7a..0000000
--- a/wl1271/utils/fsm.c
+++ /dev/null
@@ -1,321 +0,0 @@
-/*
- * fsm.c
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/** \file fsm.c
- * \brief finite state machine source code
- *
- * \see fsm.h
- */
-
-
-/***************************************************************************/
-/* */
-/* MODULE: fsm.c */
-/* PURPOSE: Finite State Machine source code */
-/* */
-/***************************************************************************/
-
-#define __FILE_ID__ FILE_ID_127
-#include "tidef.h"
-#include "osApi.h"
-#include "report.h"
-#include "fsm.h"
-
-/* Constants */
-
-/* Enumerations */
-
-/* Typedefs */
-
-/* Structures */
-
-/* External data definitions */
-
-/* External functions definitions */
-
-/* Function prototypes */
-
-/**
-*
-* fsm_Init - Initialize the FSM structure
-*
-* \b Description:
-*
-* Init The FSM structure. If matrix argument is NULL, allocate memory for
-* new matrix.
-*
-* \b ARGS:
-*
-* O - pFsm - the generated FSM module \n
-* I - noOfStates - Number of states in the module \n
-* I - noOfStates - Number of events in the module \n
-* I/O - matrix - the state event matrix
-* I - transFunc - Transition finction for the state machine \n
-*
-* \b RETURNS:
-*
-* TI_OK on success, TI_NOK on failure
-*
-* \sa fsm_Event
-*/
-TI_STATUS fsm_Create(TI_HANDLE hOs,
- fsm_stateMachine_t **pFsm,
- TI_UINT8 MaxNoOfStates,
- TI_UINT8 MaxNoOfEvents)
-{
- /* check for perliminary conditions */
- if ((pFsm == NULL) || (MaxNoOfStates == 0) || (MaxNoOfEvents == 0))
- {
- return TI_NOK;
- }
-
- /* allocate memory for FSM context */
- *pFsm = (fsm_stateMachine_t *)os_memoryAlloc(hOs, sizeof(fsm_stateMachine_t));
- if (*pFsm == NULL)
- {
- return TI_NOK;
- }
- os_memoryZero(hOs, (*pFsm), sizeof(fsm_stateMachine_t));
-
- /* allocate memory for FSM matrix */
- (*pFsm)->stateEventMatrix = (fsm_Matrix_t)os_memoryAlloc(hOs, MaxNoOfStates * MaxNoOfEvents * sizeof(fsm_actionCell_t));
- if ((*pFsm)->stateEventMatrix == NULL)
- {
- os_memoryFree(hOs, *pFsm, sizeof(fsm_stateMachine_t));
- return TI_NOK;
- }
- os_memoryZero(hOs, (*pFsm)->stateEventMatrix,
- (MaxNoOfStates * MaxNoOfEvents * sizeof(fsm_actionCell_t)));
- /* update pFsm structure with parameters */
- (*pFsm)->MaxNoOfStates = MaxNoOfStates;
- (*pFsm)->MaxNoOfEvents = MaxNoOfEvents;
-
- return(TI_OK);
-}
-
-/**
-*
-* fsm_Unload - free all memory allocated to FSM structure
-*
-* \b Description:
-*
-* Unload the FSM structure.
-*
-* \b ARGS:
-*
-* O - pFsm - the generated FSM module \n
-* I - noOfStates - Number of states in the module \n
-* I - noOfStates - Number of events in the module \n
-* I/O - matrix - the state event matrix
-* I - transFunc - Transition finction for the state machine \n
-*
-* \b RETURNS:
-*
-* TI_OK on success, TI_NOK on failure
-*
-* \sa fsm_Event
-*/
-TI_STATUS fsm_Unload(TI_HANDLE hOs,
- fsm_stateMachine_t *pFsm)
-{
- /* check for perliminary conditions */
- if (pFsm == NULL)
- {
- return TI_NOK;
- }
-
- /* free memory of FSM matrix */
- if (pFsm->stateEventMatrix != NULL)
- {
- os_memoryFree(hOs, pFsm->stateEventMatrix,
- pFsm->MaxNoOfStates * pFsm->MaxNoOfEvents * sizeof(fsm_actionCell_t));
- }
-
- /* free memory for FSM context (no need to check for null) */
- os_memoryFree(hOs, pFsm, sizeof(fsm_stateMachine_t));
-
- return(TI_OK);
-}
-
-/**
-*
-* fsm_Init - Initialize the FSM structure
-*
-* \b Description:
-*
-* Init The FSM structure. If matrix argument is NULL, allocate memory for
-* new matrix.
-*
-* \b ARGS:
-*
-* O - pFsm - the generated FSM module \n
-* I - noOfStates - Number of states in the module \n
-* I - noOfStates - Number of events in the module \n
-* I/O - matrix - the state event matrix
-* I - transFunc - Transition finction for the state machine \n
-*
-* \b RETURNS:
-*
-* TI_OK on success, TI_NOK on failure
-*
-* \sa fsm_Event
-*/
-TI_STATUS fsm_Config(fsm_stateMachine_t *pFsm,
- fsm_Matrix_t pMatrix,
- TI_UINT8 ActiveNoOfStates,
- TI_UINT8 ActiveNoOfEvents,
- fsm_eventActivation_t transFunc,
- TI_HANDLE hOs)
-{
- /* check for perliminary conditions */
- if ((pFsm == NULL) ||
- (pMatrix == NULL))
- {
- return TI_NOK;
- }
-
- if ((ActiveNoOfStates > pFsm->MaxNoOfStates) ||
- (ActiveNoOfEvents > pFsm->MaxNoOfEvents))
- {
- return TI_NOK;
- }
-
- /* copy matrix to FSM context */
- os_memoryCopy(hOs, (void *)pFsm->stateEventMatrix, (void *)pMatrix,
- ActiveNoOfStates * ActiveNoOfEvents * sizeof(fsm_actionCell_t));
-
- /* update pFsm structure with parameters */
- pFsm->ActiveNoOfStates = ActiveNoOfStates;
- pFsm->ActiveNoOfEvents = ActiveNoOfEvents;
- pFsm->transitionFunc = transFunc;
- return(TI_OK);
-}
-
-/**
-*
-* fsm_Event - perform event transition in the matrix
-*
-* \b Description:
-*
-* Perform event transition in the matrix
-*
-* \b ARGS:
-*
-* I - pFsm - the generated FSM module \n
-* I/O - currentState - current state of the SM \n
-* I - event - event causing transition \n
-* I - pData - data for activation function \n
-*
-* \b RETURNS:
-*
-* TI_OK on success, TI_NOK on failure
-*
-* \sa fsm_Init
-*/
-TI_STATUS fsm_Event(fsm_stateMachine_t *pFsm,
- TI_UINT8 *currentState,
- TI_UINT8 event,
- void *pData)
-{
- TI_UINT8 oldState;
- TI_STATUS status;
-
- /* check for FSM existance */
- if (pFsm == NULL)
- {
- return TI_NOK;
- }
-
- /* boundary check */
- if ((*currentState >= pFsm->ActiveNoOfStates) || (event >= pFsm->ActiveNoOfEvents))
- {
- return TI_NOK;
- }
-
- oldState = *currentState;
- /* update current state */
- *currentState = pFsm->stateEventMatrix[(*currentState * pFsm->ActiveNoOfEvents) + event].nextState;
-
- /* activate transition function */
- if ((*pFsm->stateEventMatrix[(oldState * pFsm->ActiveNoOfEvents) + event].actionFunc) == NULL)
- {
- return TI_NOK;
- }
- status = (*pFsm->stateEventMatrix[(oldState * pFsm->ActiveNoOfEvents) + event].actionFunc)(pData);
-
- return status;
-}
-
-
-/**
-*
-* fsm_GetNextState - Retrun the next state for a given current state and an event.
-*
-* \b Description:
-*
-* Retrun the next state for a given current state and an event.
-*
-* \b ARGS:
-*
-* I - pFsm - the generated FSM module \n
-* I - currentState - current state of the SM \n
-* I - event - event causing transition \n
-* O - nextState - returned next state \n
-*
-* \b RETURNS:
-*
-* TI_OK on success, TI_NOK on failure
-*
-* \sa
-*/
-TI_STATUS fsm_GetNextState(fsm_stateMachine_t *pFsm,
- TI_UINT8 currentState,
- TI_UINT8 event,
- TI_UINT8 *nextState)
-{
- if (pFsm != NULL)
- {
- if ((currentState < pFsm->ActiveNoOfStates) && (event < pFsm->ActiveNoOfEvents))
- {
- *nextState = pFsm->stateEventMatrix[(currentState * pFsm->ActiveNoOfEvents) + event].nextState;
- return(TI_OK);
- }
- }
-
- return(TI_NOK);
-}
-
-TI_STATUS action_nop(void *pData)
-{
- return TI_OK;
-}
diff --git a/wl1271/utils/fsm.h b/wl1271/utils/fsm.h
deleted file mode 100644
index 7bea2da..0000000
--- a/wl1271/utils/fsm.h
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
- * fsm.h
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/** \file fsm.h
- * \brief finite state machine header file
- *
- * \see fsm.c
- */
-
-
-/***************************************************************************/
-/* */
-/* MODULE: fsm.h */
-/* PURPOSE: Finite State Machine API */
-/* */
-/***************************************************************************/
-
-#ifndef __FSM_H__
-#define __FSM_H__
-
-#include "tidef.h"
-#include "commonTypes.h"
-
-/* Constants */
-#define MAX_DESC_STRING_LEN 64
-
-
-/* Enumerations */
-
-/* Typedefs */
-
-/** state transition function */
-typedef TI_STATUS (*fsm_eventActivation_t)(TI_UINT8 *currState, TI_UINT8 event, void* data);
-
-/** action function type definition */
-typedef TI_STATUS (*fsm_Action_t)(void* pData);
-
-/* Structures */
-
-/* State\Event cell */
-typedef struct
-{
- TI_UINT8 nextState; /**< next state in transition */
- fsm_Action_t actionFunc; /**< action function */
-} fsm_actionCell_t;
-
-/** matrix type */
-typedef fsm_actionCell_t* fsm_Matrix_t;
-
-/** general FSM structure */
-typedef struct
-{
- fsm_Matrix_t stateEventMatrix; /**< State\Event matrix */
- TI_UINT8 MaxNoOfStates; /**< Max Number of states in the matrix */
- TI_UINT8 MaxNoOfEvents; /**< Max Number of events in the matrix */
- TI_UINT8 ActiveNoOfStates; /**< Active Number of states in the matrix */
- TI_UINT8 ActiveNoOfEvents; /**< Active Number of events in the matrix */
- fsm_eventActivation_t transitionFunc; /**< State transition function */
-} fsm_stateMachine_t;
-
-/* External data definitions */
-
-/* External functions definitions */
-
-/* Function prototypes */
-
-TI_STATUS fsm_Create(TI_HANDLE hOs,
- fsm_stateMachine_t **pFsm,
- TI_UINT8 MaxNoOfStates,
- TI_UINT8 MaxNoOfEvents);
-
-TI_STATUS fsm_Unload(TI_HANDLE hOs,
- fsm_stateMachine_t *pFsm);
-
-TI_STATUS fsm_Config(fsm_stateMachine_t *pFsm,
- fsm_Matrix_t pMatrix,
- TI_UINT8 ActiveNoOfStates,
- TI_UINT8 ActiveNoOfEvents,
- fsm_eventActivation_t transFunc,
- TI_HANDLE hOs);
-
-TI_STATUS fsm_Event(fsm_stateMachine_t *pFsm,
- TI_UINT8 *currentState,
- TI_UINT8 event,
- void *pData);
-
-TI_STATUS fsm_GetNextState(fsm_stateMachine_t *pFsm,
- TI_UINT8 currentState,
- TI_UINT8 event,
- TI_UINT8 *nextState);
-
-
-TI_STATUS action_nop(void *pData);
-
-
-#endif /* __FSM_H__ */
diff --git a/wl1271/utils/mem.c b/wl1271/utils/mem.c
deleted file mode 100644
index b7cdbbc..0000000
--- a/wl1271/utils/mem.c
+++ /dev/null
@@ -1,230 +0,0 @@
-/*
- * mem.c
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define __FILE_ID__ FILE_ID_129
-#include "tidef.h"
-#include "osApi.h"
-
-
-#define MEM_BLOCK_START (('m'<<24) | ('e'<<16) | ('m'<<8) | 's')
-#define MEM_BLOCK_END (('m'<<24) | ('e'<<16) | ('m'<<8) | 'e')
-
-
-typedef struct
-{
- TI_HANDLE hOs;
- TI_UINT32 uMaxAllocated;
- TI_UINT32 uCurAllocated;
-
-} TMemMng;
-
-
-typedef struct
-{
- TI_UINT32 size;
- TI_UINT32 signature;
-
-} TMemBlock;
-
-
-
-/****************************************************************************************
- * *
- * OS Memory API *
- * *
- ****************************************************************************************/
-TI_HANDLE mem_Create (TI_HANDLE hOs)
-{
- TMemMng *pMemMng = (TMemMng *)os_memoryAlloc (hOs, sizeof(TMemMng));
-
- if (pMemMng != NULL)
- {
- pMemMng->hOs = hOs;
- pMemMng->uCurAllocated = 0;
- pMemMng->uMaxAllocated = 0;
- }
-
- return (TI_HANDLE)pMemMng;
-}
-
-
-TI_STATUS mem_Destroy (TI_HANDLE hMem)
-{
- TMemMng *pMemMng = (TMemMng *)hMem;
-
- if (pMemMng != NULL)
- {
- os_memoryFree (pMemMng->hOs, (void *)pMemMng, sizeof(TMemMng));
- }
-
- return TI_OK;
-}
-
-
-
-/****************************************************************************************
- * os_memoryAlloc()
- ****************************************************************************************
-DESCRIPTION: Allocates resident (nonpaged) system-space memory.
-
-ARGUMENTS: OsContext - our adapter context.
- Size - Specifies the size, in bytes, to be allocated.
-
-RETURN: Pointer to the allocated memory.
- NULL if there is insufficient memory available.
-
-NOTES: With the call to vmalloc it is assumed that this function will
- never be called in an interrupt context. vmalloc has the potential to
- sleep the caller while waiting for memory to become available.
-
-*****************************************************************************************/
-void* mem_Alloc (TI_HANDLE hMem, TI_UINT32 size)
-{
- TMemMng *pMemMng = (TMemMng *)hMem;
- TMemBlock *pMemBlock;
- TI_UINT32 total = size + sizeof(TMemBlock) + sizeof(TI_UINT32);
-
- #ifdef TI_MEM_ALLOC_TRACE
- os_printf ("mem_Alloc(0x%p, %lu) : %u\n", hMem, size, uTotalSize);
- #endif
-
- pMemBlock = (TMemBlock *) os_memoryAlloc (pMemMng->hOs, total);
- pMemBlock->size = size;
- pMemBlock->signature = MEM_BLOCK_START;
- *(TI_UINT32 *)((TI_UINT8 *)pMemBlock + total - sizeof(TI_UINT32)) = MEM_BLOCK_END;
-
- pMemMng->uCurAllocated += total;
- if (pMemMng->uMaxAllocated < pMemMng->uCurAllocated)
- {
- pMemMng->uMaxAllocated = pMemMng->uCurAllocated;
- }
-
- return (void*)((TI_UINT8 *)pMemBlock + sizeof(TMemBlock));
-}
-
-
-/****************************************************************************************
- * os_memoryCAlloc()
- ****************************************************************************************
-DESCRIPTION: Allocates an array in memory with elements initialized to 0.
-
-ARGUMENTS: OsContext - our adapter context.
- Number - Number of elements
- Size - Length in bytes of each element
-
-RETURN: None
-
-NOTES:
-*****************************************************************************************/
-void* mem_Calloc (TI_HANDLE hMem, TI_UINT32 number, TI_UINT32 size)
-{
- TMemMng *pMemMng = (TMemMng *)hMem;
- void *ptr;
- TI_UINT32 total;
-
- total = number * size;
-
- #ifdef TI_MEM_ALLOC_TRACE
- os_printf ("os_memoryCAlloc(%u, %u) : %u\n", number, size, total);
- #endif
-
- ptr = mem_Alloc (hMem, total);
-
- if (ptr != NULL)
- {
- os_memorySet (pMemMng->hOs, ptr, 0, total);
- }
-
- return ptr;
-}
-
-
-
-/****************************************************************************************
- * os_memoryFree()
- ****************************************************************************************
-DESCRIPTION: This function releases a block of memory previously allocated with the
- os_memoryAlloc function.
-
-
-ARGUMENTS: OsContext - our adapter context.
- pMemPtr - Pointer to the base virtual address of the allocated memory.
- This address was returned by the os_memoryAlloc function.
- Size - Specifies the size, in bytes, of the memory block to be released.
- This parameter must be identical to the Length that was passed to
- os_memoryAlloc.
-
-RETURN: None
-
-NOTES:
-*****************************************************************************************/
-void mem_Free (TI_HANDLE hMem, void* ptr, TI_UINT32 size)
-{
- TMemMng *pMemMng = (TMemMng *)hMem;
- TMemBlock *pMemBlock = (TMemBlock *)((TI_UINT8 *)ptr - sizeof(TMemBlock));
-
- #ifdef TI_MEM_ALLOC_TRACE
- os_printf ("os_memoryFree(%p, %u)\n", ptr, size);
- #endif
-
- if (pMemBlock->signature != MEM_BLOCK_START)
- {
- #ifdef TI_MEM_ALLOC_TRACE
- os_printf ("os_memoryFree: memory block signature is incorrect - 0x%x\n", pMemBlock->signature);
- #endif
- }
-
- else
- {
- *(TI_UINT8 *)(&pMemBlock->signature) = '~';
- if (*(TI_UINT32 *)((TI_UINT8 *)pMemBlock + pMemBlock->size + sizeof(TMemBlock)) != MEM_BLOCK_END)
- {
- #ifdef TI_MEM_ALLOC_TRACE
- os_printf ("os_memoryFree: memory block corruption, size - %u\n", pMemBlock->size);
- #endif
- }
-
- os_memoryFree (pMemMng->hOs, pMemBlock, pMemBlock->signature + sizeof(TMemBlock) + sizeof(TI_UINT32));
-
- pMemMng->uCurAllocated -= size + sizeof(TMemBlock) + sizeof(TI_UINT32);
-
- if ((int)pMemMng->uCurAllocated < 0)
- {
- #ifdef TI_MEM_ALLOC_TRACE
- os_printf ("os_memoryFree: memory heap allocation calculation corrupted, size=%u, current=%u\n",
- size, drv->cur_heap_bytes_allocated);
- #endif
- pMemMng->uCurAllocated = 0;
- }
- }
-}
diff --git a/wl1271/utils/osDot11.h b/wl1271/utils/osDot11.h
deleted file mode 100644
index ec1e2cc..0000000
--- a/wl1271/utils/osDot11.h
+++ /dev/null
@@ -1,687 +0,0 @@
-/*
- * osDot11.h
- *
- * Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/*--------------------------------------------------------------------------*/
-/* Module: osDot11.h */
-/**/
-/* Purpose: */
-/**/
-/*--------------------------------------------------------------------------*/
-#ifndef __OSDOT11_H__
-#define __OSDOT11_H__
-
-#include "tidef.h"
-#include "tiQosTypes.h"
-
-
-#define OS_STATUS_MEDIA_SPECIFIC_INDICATION ((NDIS_STATUS)0x40010012L)
-
-#define OS_802_11_REQUEST_REAUTH 0x01
-#define OS_802_11_REQUEST_KEYUPDATE 0x02
-#define OS_802_11_REQUEST_PAIRWISE_ERROR 0x06
-#define OS_802_11_REQUEST_GROUP_ERROR 0x0E
-
-#define OS_802_11_SSID_FIRST_VALID_CHAR 32
-
-#define OS_802_11_SSID_JUNK(str,len) \
- ((len) > 2 && \
- (unsigned char)(str)[0] < OS_802_11_SSID_FIRST_VALID_CHAR && \
- (unsigned char)(str)[1] < OS_802_11_SSID_FIRST_VALID_CHAR && \
- (unsigned char)(str)[2] < OS_802_11_SSID_FIRST_VALID_CHAR)
-
-
-/**/
-/* Per-packet information for Ieee8021QInfo.*/
-/**/
-typedef struct _OS_PACKET_8021Q_INFO
-{
- union
- {
- struct
- {
- TI_UINT32 UserPriority:3; /* 802.1p priority */
- TI_UINT32 CanonicalFormatId:1; /* always 0*/
- TI_UINT32 VlanId:12; /* VLAN Identification*/
- TI_UINT32 Reserved:16; /* set to 0*/
- } TagHeader;
-
- void* Value;
- }u;
-} OS_PACKET_8021Q_INFO, *POS_PACKET_8021Q_INFO;
-
-
-typedef TI_UINT64 OS_802_11_KEY_RSC;
-
-typedef struct _OS_802_11_SSID
-{
- TI_UINT32 SsidLength;
- TI_UINT8 Ssid[32];
-} OS_802_11_SSID, *POS_802_11_SSID;
-
-typedef enum _OS_802_11_NETWORK_TYPE
-{
- os802_11FH,
- os802_11DS,
- os802_11OFDM5,
- os802_11OFDM24,
- os802_11Automode,
- os802_11NetworkTypeMax
-} OS_802_11_NETWORK_TYPE;
-
-typedef struct _OS_802_11_NETWORK_TYPE_LIST
-{
- TI_UINT32 NumberOfItems;
- OS_802_11_NETWORK_TYPE NetworkType [1];
-} OS_802_11_NETWORK_TYPE_LIST, *POS_802_11_NETWORK_TYPE_LIST;
-
-typedef enum _OS_802_11_POWER_MODE
-{
- /*Continuous access mode (CAM). */
- /*When the power mode is set to CAM, the device is always on. */
- os802_11PowerModeCAM,
-
- /*Specifies maximum (MAX) power saving. A power mode of MAX */
- /*results in the greatest power savings for the 802.11 NIC radio. */
- os802_11PowerModeMAX_PSP,
-
- /*Specifies fast power-saving mode. This power mode provides */
- /*the best combination of network performance and power usage. */
- os802_11PowerModeFast_PSP,
- os802_11PowerModeMax
-} OS_802_11_POWER_MODE;
-
-/*specified in milliwatts (mW).*/
-typedef TI_UINT32 OS_802_11_TX_POWER_LEVEL;
-/*Normal value from -10 and -200*/
-typedef TI_INT32 OS_802_11_RSSI;
-
-/*Length */
-
-/* Specifies the length of the OS_802_11_CONFIGURATION_FH structure in bytes. */
-/*HopPattern*/
-/* Specifies the hop pattern used to determine the hop sequence. */
-/* As defined by the 802.11 standard, the layer management entity (LME) of */
-/* the physical layer uses a hop pattern to determine the hop sequence. */
-/*HopSet*/
-/* Specifies a set of patterns. The LME of the physical layer uses these */
-/* patterns to determine the hop sequence. */
-/*DwellTime*/
-/* Specifies the maximum period of time during which the transmitter */
-/* should remain fixed on a channel. This interval is described in Kµsec (1024 µsec). */
-typedef struct _OS_802_11_CONFIGURATION_FH
-{
- TI_UINT32 Length;
- TI_UINT32 HopPattern;
- TI_UINT32 HopSet;
- TI_UINT32 DwellTime;
-} OS_802_11_CONFIGURATION_FH, *POS_802_11_CONFIGURATION_FH;
-
-/*Length */
-
-/* Specifies the length of the NDIS_802_11_CONFIGURATION structure in bytes. */
-/*BeaconPeriod */
-/* Specifies the interval between beacon message transmissions. */
-/* This value is specified in Kµsec (1024 µsec). */
-/*ATIMWindow */
-/* Specifies the announcement traffic information message (ATIM) window in */
-/* Kµsec (1024 µsec). The ATIM window is a short time period immediately */
-/* after the transmission of each beacon in an IBSS configuration. */
-/* During the ATIM window, any station can indicate the need to transfer data */
-/* to another station during the following data-transmission window. */
-/*DSConfig */
-/* Specifies the frequency of the selected channel in kHz. */
-/*FHConfig */
-/* Specifies the frequency hopping configuration in an OS_802_11_CONFIGURATION_FH structure. */
-typedef struct _OS_802_11_CONFIGURATION
-{
- TI_UINT32 Length;
- TI_UINT32 BeaconPeriod;
- TI_UINT32 ATIMWindow;
- union
- {
- TI_UINT32 DSConfig;
- TI_UINT32 channel;
- } Union;
- OS_802_11_CONFIGURATION_FH FHConfig;
-} OS_802_11_CONFIGURATION, *POS_802_11_CONFIGURATION;
-
-/*Ndis802_11IBSS */
-/* Specifies the independent basic service set (IBSS) mode. */
-/* This mode is also known as ad hoc mode. */
-/*Ndis802_11Infrastructure */
-/* Specifies the infrastructure mode. */
-/*Ndis802_11AutoUnknown */
-/* Specifies an automatic mode. In this mode, the 802.11 NIC can switch */
-/* between ad hoc and infrastructure modes as required. */
-/*Ndis802_11HighSpeedIBSS*/
-/* Specifies proprietary ad hoc mode that works only PBCC.*/
-typedef enum _OS_802_11_NETWORK_MODE
-{
- os802_11IBSS,
- os802_11Infrastructure,
- os802_11AutoUnknown,
- os802_11HighSpeedIBSS,
- os802_11InfrastructureMax
-} OS_802_11_NETWORK_MODE, OS_802_11_NETWORK_INFRASTRUCTURE,*POS_802_11_NETWORK_INFRASTRUCTURE;
-
-/**/
-/*The rates array contains a set of eight octets. */
-/*Each octet contains a desired data rate in units of .5 Mbps.*/
-/**/
-typedef TI_UINT8 OS_802_11_RATES[8];
-
-typedef TI_UINT8 OS_802_11_RATES_EX[16];
-
-typedef TI_UINT8 OS_802_11_N_RATES[32];
-
-typedef struct _OS_802_11_FIXED_IEs
-{
- TI_UINT8 TimeStamp[8];
- TI_UINT16 BeaconInterval;
- TI_UINT16 Capabilities;
-} OS_802_11_FIXED_IEs, *POS_802_11_FIXED_IEs;
-
-typedef struct _OS_802_11_VARIABLE_IEs
-{
- TI_UINT8 ElementID;
- TI_UINT8 Length; /* Number of bytes in data field*/
- TI_UINT8 data[1];
-} OS_802_11_VARIABLE_IEs, *POS_802_11_VARIABLE_IEs;
-
-typedef struct _OS_802_11_BSSID
-{
- TI_UINT32 Length;
- TMacAddr MacAddress;
- TI_UINT16 Capabilities;
- OS_802_11_SSID Ssid;
- TI_UINT32 Privacy;
- OS_802_11_RSSI Rssi;
- OS_802_11_NETWORK_TYPE NetworkTypeInUse;
- OS_802_11_CONFIGURATION Configuration;
- OS_802_11_NETWORK_MODE InfrastructureMode;
- OS_802_11_RATES SupportedRates;
-} OS_802_11_BSSID, *POS_802_11_BSSID;
-
-typedef struct _OS_802_11_BSSID_LIST
-{
- TI_UINT32 NumberOfItems;
- OS_802_11_BSSID Bssid[1];
-} OS_802_11_BSSID_LIST, *POS_802_11_BSSID_LIST;
-
-
-typedef struct _OS_802_11_BSSID_EX
-{
- TI_UINT32 Length;
- TMacAddr MacAddress;
- TI_UINT16 Capabilities;
- OS_802_11_SSID Ssid;
- TI_UINT32 Privacy;
- OS_802_11_RSSI Rssi;
- OS_802_11_NETWORK_TYPE NetworkTypeInUse;
- OS_802_11_CONFIGURATION Configuration;
- OS_802_11_NETWORK_MODE InfrastructureMode;
- OS_802_11_RATES_EX SupportedRates;
- TI_UINT32 IELength;
- TI_UINT8 IEs[1];
-} OS_802_11_BSSID_EX, *POS_802_11_BSSID_EX, OS_WLAN_BSSID_EX, *POS_WLAN_BSSID_EX;
-
-typedef struct _OS_802_11_BSSID_LIST_EX
-{
- TI_UINT32 NumberOfItems;
- OS_802_11_BSSID_EX Bssid[1];
-} OS_802_11_BSSID_LIST_EX, *POS_802_11_BSSID_LIST_EX;
-
-
-typedef TI_UINT32 OS_802_11_FRAGMENTATION_THRESHOLD;
-typedef TI_UINT32 OS_802_11_RTS_THRESHOLD;
-typedef TI_UINT32 OS_802_11_ANTENNA;
-
-
-/*Length */
-/* Specifies the length of the NDIS_802_11_WEP structure in bytes. */
-/*KeyIndex */
-/* Specifies which key to add or remove. The global keys are represented */
-/* by values of zero to n. When the most significant bit is set to 1, */
-/* it indicates the key used to transmit to the access point. */
-/*KeyLength */
-/* Specifies the length of the KeyMaterial character array in bytes. */
-/*KeyMaterial */
-/* Specifies an arraythat identifies the WEP key. The length of this array is */
-/* variable and depends upon the value of the KeyLength member. */
-
-typedef TI_UINT32 OS_802_11_KEY_INDEX;
-typedef struct _OS_802_11_WEP
-{
- TI_UINT32 Length;
- TI_UINT32 KeyIndex;
- TI_UINT32 KeyLength;
- TI_UINT8 KeyMaterial [32];
-} OS_802_11_WEP, *POS_802_11_WEP;
-
-/* Key mapping keys require a BSSID*/
-/*typedef tiUINT64 OS_802_11_KEY_RSC;*/
-
-typedef struct _OS_802_11_KEY
-{
- TI_UINT32 Length; /* Length of this structure*/
- TI_UINT32 KeyIndex;
- TI_UINT32 KeyLength; /* length of key in bytes*/
- TMacAddr BSSID;
- OS_802_11_KEY_RSC KeyRSC;
- TI_UINT8 KeyMaterial[32]; /* variable length depending on above field*/
-} OS_802_11_KEY, *POS_802_11_KEY;
-
-typedef struct _OS_802_11_REMOVE_KEY
-{
- TI_UINT32 Length; /* Length of this structure*/
- TI_UINT32 KeyIndex;
- TMacAddr BSSID;
-} OS_802_11_REMOVE_KEY, *POS_802_11_REMOVE_KEY;
-
-#define OS_802_11_AI_REQFI_CAPABILITIES 1
-#define OS_802_11_AI_REQFI_LISTENINTERVAL 2
-#define OS_802_11_AI_REQFI_CURRENTAPADDRESS 4
-
-
-#define OS_802_11_AI_RESFI_CAPABILITIES 1
-#define OS_802_11_AI_RESFI_STATUSCODE 2
-#define OS_802_11_AI_RESFI_ASSOCIATIONID 4
-
-typedef struct _OS_802_11_AI_REQFI
-{
- TI_UINT16 Capabilities;
- TI_UINT16 ListenInterval;
- TMacAddr CurrentAPAddress;
-#ifndef _WINDOWS
- TI_UINT16 reserved; /* added for packing */
-#endif
-} OS_802_11_AI_REQFI;
-
-typedef struct _OS_802_11_AI_RESFI
-{
- TI_UINT16 Capabilities;
- TI_UINT16 StatusCode;
- TI_UINT16 AssociationId;
-#ifndef _WINDOWS
- TI_UINT16 reserved; /* added for packing */
-#endif
-} OS_802_11_AI_RESFI;
-
-typedef struct _OS_802_11_ASSOCIATION_INFORMATION
-{
- TI_UINT32 Length;
- TI_UINT16 AvailableRequestFixedIEs;
- OS_802_11_AI_REQFI RequestFixedIEs;
- TI_UINT32 RequestIELength;
- TI_UINT32 OffsetRequestIEs;
- TI_UINT16 AvailableResponseFixedIEs;
- OS_802_11_AI_RESFI ResponseFixedIEs;
- TI_UINT32 ResponseIELength;
- TI_UINT32 OffsetResponseIEs;
-
-} OS_802_11_ASSOCIATION_INFORMATION, *POS_802_11_ASSOCIATION_INFORMATION;
-
-
-/* supported EAP types*/
-typedef enum _OS_802_11_EAP_TYPES
-{
- OS_EAP_TYPE_NONE = -1,
- OS_EAP_TYPE_MD5_CHALLENGE = 4,
- OS_EAP_TYPE_GENERIC_TOKEN_CARD = 6,
- OS_EAP_TYPE_TLS = 13,
- OS_EAP_TYPE_LEAP = 17,
- OS_EAP_TYPE_TTLS = 21,
- OS_EAP_TYPE_PEAP = 25,
- OS_EAP_TYPE_MS_CHAP_V2 = 26,
- OS_EAP_TYPE_FAST = 43
-} OS_802_11_EAP_TYPES;
-
-/* encryption type*/
-typedef enum _OS_802_11_ENCRYPTION_TYPES
-{
- OS_ENCRYPTION_TYPE_NONE = 0,
- OS_ENCRYPTION_TYPE_WEP,
- OS_ENCRYPTION_TYPE_TKIP,
- OS_ENCRYPTION_TYPE_AES
-} OS_802_11_ENCRYPTION_TYPES;
-
-/* Key type*/
-typedef enum _OS_802_11_KEY_TYPES
-{
- OS_KEY_TYPE_STATIC = 0,
- OS_KEY_TYPE_DYNAMIC
-} OS_802_11_KEY_TYPES;
-
-/* ELP mode*/
-typedef enum _OS_802_11_ELP_MODES
-{
- OS_ELP_MODE_DISABLE,
- OS_ELP_MODE_SYNC,
- OS_ELP_MODE_NON_SYNC
-} OS_802_11_ELP_MODES;
-
-/* Roaming mode*/
-typedef enum _OS_802_11_ROAMING_MODES
-{
- OS_ROAMING_MODE_DISABLE,
- OS_ROAMING_MODE_ENABLE
-} OS_802_11_ROAMING_MODES;
-
-typedef enum _OS_802_11_POWER_PROFILE
-{
- OS_POWER_MODE_AUTO,
- OS_POWER_MODE_ACTIVE,
- OS_POWER_MODE_SHORT_DOZE,
- OS_POWER_MODE_LONG_DOZE
-} OS_802_11_POWER_PROFILE;
-
-typedef enum _OS_802_11_POWER_LEVELS
-{
- OS_POWER_LEVEL_ELP,
- OS_POWER_LEVEL_PD,
- OS_POWER_LEVEL_AWAKE
-} OS_802_11_POWER_LEVELS;
-
-
-typedef enum _OS_802_11_BEACON_FILTER_MODE
-{
- OS_BEACON_FILTER_MODE_INACTIVE,
- OS_BEACON_FILTER_MODE_ACTIVE
-} OS_802_11_BEACON_FILTER_MODE;
-
-
-typedef enum _OS_802_11_SCAN_TYPES
-{
- OS_SCAN_TYPE_PASSIVE,
- OS_SCAN_TYPE_BROADCAST,
- OS_SCAN_TYPE_UNICAST
-} OS_802_11_SCAN_TYPES;
-
-typedef enum _OS_802_11_VOICE_DELIVERY_PROTOCOL
-{
- OS_VOICE_DELIVERY_PROTOCOL_DISABLED,
- OS_VOICE_DELIVERY_PROTOCOL_PS_POLL
-} OS_802_11_VOICE_DELIVERY_PROTOCOL;
-
-typedef struct _OS_802_11_TRAFFIC_INTENSITY_THRESHOLD_PARAMS
-{
- TI_UINT32 uHighThreshold;
- TI_UINT32 uLowThreshold;
- TI_UINT32 TestInterval;
-} OS_802_11_TRAFFIC_INTENSITY_THRESHOLD_PARAMS;
-
-typedef struct{
- TI_UINT32 uHighOrLowThresholdFlag; /* high or low */
- TI_UINT32 uAboveOrBelowFlag; /* direction of crossing */
-} OS_802_11_TRAFFIC_INTENSITY_THRESHOLD_CROSS_INDICATION_PARAMS;
-
-typedef TI_UINT8 OS_802_11_PMKID_VALUE[16];
-
-typedef struct _OS_BSSIDInfo
-{
- TMacAddr BSSID;
- OS_802_11_PMKID_VALUE PMKID;
-} OS_BSSIDInfo, *POS_BSSIDInfo;
-
-typedef struct _OS_802_11_PMKID
-{
- TI_UINT32 Length;
- TI_UINT32 BSSIDInfoCount;
- OS_BSSIDInfo osBSSIDInfo[1];
-} OS_802_11_PMKID, *POS_802_11_PMKID;
-
-typedef enum _OS_802_11_WEP_STATUS
-{
- os802_11WEPEnabled = 0,
- os802_11Encryption1Enabled = os802_11WEPEnabled,
- os802_11WEPDisabled,
- os802_11EncryptionDisabled = os802_11WEPDisabled,
- os802_11WEPKeyAbsent,
- os802_11Encryption1KeyAbsent = os802_11WEPKeyAbsent,
- os802_11WEPNotSupported,
- os802_11EncryptionNotSupported = os802_11WEPNotSupported,
- os802_11Encryption2Enabled,
- os802_11Encryption2KeyAbsent,
- os802_11Encryption3Enabled,
- os802_11Encryption3KeyAbsent
-} OS_802_11_WEP_STATUS, OS_802_11_ENCRYPTION_STATUS;
-
-/*os802_11AuthModeOpen */
-/* Specifies 802.11 open authentication mode. There are no checks when accepting */
-/* clients in this mode. */
-/*os802_11AuthModeShared */
-/* Specifies 802.11 shared authentication that uses a pre-shared wired equivalent */
-/* privacy (WEP) key. */
-/*os802_11AuthModeAutoSwitch */
-/* Specifies auto-switch mode. When using auto-switch mode, the NIC tries 802.11 shared */
-/* authentication mode first. If shared mode fails, the NIC attempts to use 802.11 open */
-/* authentication mode. */
-
-typedef enum _OS_802_11_AUTHENTICATION_MODE
-{
- os802_11AuthModeOpen,
- os802_11AuthModeShared,
- os802_11AuthModeAutoSwitch,
- os802_11AuthModeWPA,
- os802_11AuthModeWPAPSK,
- os802_11AuthModeWPANone,
- os802_11AuthModeWPA2,
- os802_11AuthModeWPA2PSK,
- os802_11AuthModeMax
-} OS_802_11_AUTHENTICATION_MODE;
-
-
-/*os802_11PrivFilterAcceptAll */
-/* Specifies an open mode. In this mode, the NIC accepts any packet if the packet */
-/* is not encrypted or if the NIC successfully decrypts it. */
-/*os802_11PrivFilter8021xWEP */
-/* Specifies a filtering mode. In the 802.1X filtering mode, 802.1X packets are */
-/* accepted even if they are not encrypted. However, the NIC accepts nothing else */
-/* unless it is encrypted using WEP. */
-typedef enum _OS_802_11_PRIVACY_FILTER
-{
- os802_11PrivFilterAcceptAll,
- os802_11PrivFilter8021xWEP
-} OS_802_11_PRIVACY_FILTER;
-
-typedef enum _OS_802_11_RELOAD_DEFAULTS
-{
- os802_11ReloadWEPKeys
-} OS_802_11_RELOAD_DEFAULTS, *POS_802_11_RELOAD_DEFAULTS;
-
-typedef enum _OS_802_11_STATUS_TYPE
-{
- os802_11StatusType_Authentication,
- os802_11StatusType_PMKID_CandidateList = 2,
- os802_11StatusTypeMax /* not a real type, defined as an upper bound */
-} OS_802_11_STATUS_TYPE, *POS_802_11_STATUS_TYPE;
-
-typedef struct _OS_802_11_STATUS_INDICATION
-{
- OS_802_11_STATUS_TYPE StatusType;
-} OS_802_11_STATUS_INDICATION, *POS_802_11_STATUS_INDICATION;
-
-
-typedef struct _OS_802_11_AUTHENTICATION_REQUEST
-{
- TI_UINT32 Length; /* Length of this structure*/
- TMacAddr BSSID;
- TI_UINT32 Flags;
-} OS_802_11_AUTHENTICATION_REQUEST, *POS_802_11_AUTHENTICATION_REQUEST;
-
-typedef enum
-{
- OS_DISASSOC_STATUS_UNSPECIFIED = 0,
- OS_DISASSOC_STATUS_AUTH_REJECT = 1,
- OS_DISASSOC_STATUS_ASSOC_REJECT = 2,
- OS_DISASSOC_STATUS_SECURITY_FAILURE = 3,
- OS_DISASSOC_STATUS_AP_DEAUTHENTICATE = 4,
- OS_DISASSOC_STATUS_AP_DISASSOCIATE = 5,
- OS_DISASSOC_STATUS_ROAMING_TRIGGER = 6
-
-} OS_802_11_DISASSOCIATE_REASON_E;
-
-typedef struct
-{
- OS_802_11_DISASSOCIATE_REASON_E eDisAssocType;
- TI_UINT32 uStatusCode;
-} OS_802_11_DISASSOCIATE_REASON_T;
-
-
-
-#define OS_802_11_PMKID_CANDIDATE_PREAUTH_ENABLE 0x01
-
-typedef struct _OS_802_11_PMKID_CANDIDATE
-{
- TMacAddr BSSID;
- TI_UINT32 Flags;
-} OS_802_11_PMKID_CANDIDATE, *POS_802_11_PMKID_CANDIDATE;
-
-typedef struct _OS_802_11_PMKID_CANDIDATELIST
-{
- TI_UINT32 Version; /* Version of the structure*/
- TI_UINT32 NumCandidates; /* No. of pmkid candidates*/
- OS_802_11_PMKID_CANDIDATE CandidateList[1];
-} OS_802_11_PMKID_CANDIDATELIST, *POS_802_11_PMKID_CANDIDATELIST;
-
-
-typedef TI_UINT8 OS_802_11_MAC_PMKID_VALUE[16];
-
-typedef struct _OS_802_11_BSSIDInfo
-{
- TMacAddr BSSID;
- OS_802_11_MAC_PMKID_VALUE PMKID;
-} OS_802_11_BSSIDInfo, *POS_802_11_BSSIDInfo;
-
-
-typedef struct _OS_802_11_AUTH_ENCRYPTION
-{
- OS_802_11_AUTHENTICATION_MODE AuthModeSupported;
- OS_802_11_ENCRYPTION_STATUS EncryptionStatusSupported;
-} OS_802_11_AUTH_ENCRYPTION, *POS_802_11_AUTH_ENCRYPTION;
-
-
-typedef struct _OS_802_11_CAPABILITY
-{
- TI_UINT32 Length;
- TI_UINT32 Version;
- TI_UINT32 NoOfPmKIDs;
- TI_UINT32 NoOfAuthEncryptPairsSupported;
- OS_802_11_AUTH_ENCRYPTION AuthEncryptionSupported[1];
-
-} OS_802_11_CAPABILITY, *POS_802_11_CAPABILITY;
-
-#define OID_CAPABILITY_VERSION 2
-
-
-
-typedef enum _OS_802_11_REG_DOMAIN
-{
- os802_11_Domain_FCC = 0x10,
- os802_11_Domain_IC = 0x20,
- os802_11_Domain_ETSI = 0x30,
- os802_11_Domain_Spain = 0x31,
- os802_11_Domain_France = 0x32,
- os802_11_Domain_MKK = 0x40,
- os802_11_Domain_MKK1 = 0x41,
- os802_11_Domain_US = 0x50,
- os802_11_Domain_WB = 0x51,
- os802_11_Domain_EXWB = 0x52
-} OS_802_11_REG_DOMAIN;
-
-
-
-#define OID_TI_VERSION 0xFF080001
-
-
-/* propritary OIDs used by FUNK supplicant for WPA Mixed mode support*/
-/* WPA2 MIxed mode OIDs */
-#define CGUID_FSW_802_11_AVAILABLE_OPTIONS {0x1a905534, 0xe71f, 0x46d1, {0xa2, 0xcb, 0xa5, 0x57, 0x01, 0x76, 0x38, 0xfd}}
-#define CGUID_FSW_802_11_OPTIONS {0xdc7a51b7, 0x2236, 0x467d, {0xb1, 0x55, 0x03, 0x50, 0x42, 0x04, 0xcf, 0x30}}
-
-#define OID_FSW_802_11_AVAILABLE_OPTIONS 0xFF010237
-#define OID_FSW_802_11_OPTIONS 0xFF010238
-
-
-
-/**/
-/* IEEE 802.11 OIDs*/
-/**/
-#define OID_802_11_BSSID 0x0D010101
-#define OID_802_11_SSID 0x0D010102
-#define OID_802_11_INFRASTRUCTURE_MODE 0x0D010108
-#define OID_802_11_ADD_WEP 0x0D010113
-#define OID_802_11_REMOVE_WEP 0x0D010114
-#define OID_802_11_DISASSOCIATE 0x0D010115
-#define OID_802_11_AUTHENTICATION_MODE 0x0D010118
-#define OID_802_11_PRIVACY_FILTER 0x0D010119
-#define OID_802_11_BSSID_LIST_SCAN 0x0D01011A
-#define OID_802_11_WEP_STATUS 0x0D01011B
-#define OID_802_11_RELOAD_DEFAULTS 0x0D01011C
-#define OID_802_11_ADD_KEY 0x0D01011D
-#define OID_802_11_REMOVE_KEY 0x0D01011E
-#define OID_802_11_ASSOCIATION_INFORMATION 0x0D01011F
-#define OID_802_11_NETWORK_TYPES_SUPPORTED 0x0D010203
-#define OID_802_11_NETWORK_TYPE_IN_USE 0x0D010204
-#define OID_802_11_TX_POWER_LEVEL 0x0D010205
-#define OID_802_11_RSSI 0x0D010206
-#define OID_802_11_RSSI_TRIGGER 0x0D010207
-#define OID_802_11_FRAGMENTATION_THRESHOLD 0x0D010209
-#define OID_802_11_RTS_THRESHOLD 0x0D01020A
-#define OID_802_11_NUMBER_OF_ANTENNAS 0x0D01020B
-#define OID_802_11_RX_ANTENNA_SELECTED 0x0D01020C
-#define OID_802_11_TX_ANTENNA_SELECTED 0x0D01020D
-#define OID_802_11_SUPPORTED_RATES 0x0D01020E
-#define OID_802_11_DESIRED_RATES 0x0D010210
-#define OID_802_11_CONFIGURATION 0x0D010211
-#define OID_802_11_STATISTICS 0x0D020212
-#define OID_802_11_POWER_MODE 0x0D010216
-#define OID_802_11_BSSID_LIST 0x0D010217
-
-
-#ifndef _USER_MODE
- #include "osdot11nousermode.h"
-#endif
-
-
-
-
-/* AnyWPA mode flags used in propritary FUNK suplicant OIDs*/
-
-#define OS_802_11_OPTION_ENABLE_PROMOTE_MODE 0x00000001 /*bit 0*/
-#define OS_802_11_OPTION_ENABLE_PROMOTE_CIPHER 0x00000002 /*bit 1*/
-#define OS_802_11_OPTION_DISABLE_PROMOTE_MODE 0
-#define OS_802_11_OPTION_ENABLE_ALL 0x00000003
-
-#endif
diff --git a/wl1271/utils/queue.c b/wl1271/utils/queue.c
deleted file mode 100644
index 059a348..0000000
--- a/wl1271/utils/queue.c
+++ /dev/null
@@ -1,426 +0,0 @@
-/*
- * queue.c
- *
- * Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-
-/** \file queue.c
- * \brief This module provides generic queueing services, including enqueue, dequeue
- * and requeue of any object that contains TQueNodeHdr in its structure.
- *
- * \see queue.h
- */
-
-
-
-#define __FILE_ID__ FILE_ID_130
-#include "report.h"
-#include "queue.h"
-
-
-/* Queue structure */
-typedef struct
-{
- TQueNodeHdr tHead; /* The queue first node */
- TI_UINT32 uCount; /* Current number of nodes in queue */
- TI_UINT32 uLimit; /* Upper limit of nodes in queue */
- TI_UINT32 uMaxCount; /* Maximum uCount value (for debug) */
- TI_UINT32 uOverflow; /* Number of overflow occurences - couldn't insert node (for debug) */
- TI_UINT32 uNodeHeaderOffset; /* Offset of NodeHeader field from the entry of the queued item */
- TI_HANDLE hOs;
- TI_HANDLE hReport;
-} TQueue;
-
-
-
-/*
- * INTERNAL FUNCTIONS
- * ===============================
- */
-
-
-/*
- * InsertNode(): Insert new node between pPrev and pNext
- */
-static INLINE void InsertNode( TQueNodeHdr *pNode, TQueNodeHdr *pPrev, TQueNodeHdr *pNext)
-{
- pNext->pPrev = pNode;
- pNode->pNext = pNext;
- pNode->pPrev = pPrev;
- pPrev->pNext = pNode;
-}
-
-/*
- * RemoveNode(): Remove node from between pPrev and pNext
- */
-static INLINE void RemoveNode( TQueNodeHdr *pPrev, TQueNodeHdr *pNext)
-{
- pNext->pPrev = pPrev;
- pPrev->pNext = pNext;
-}
-
-/*
- * AddToHead(): Add node to queue head (last in queue)
- */
-static INLINE void AddToHead( TQueNodeHdr *pNode, TQueNodeHdr *pListHead)
-{
- InsertNode (pNode, pListHead, pListHead->pNext);
-}
-
-/*
- * AddToTail(): Add node to queue tail (first in queue)
- */
-static INLINE void AddToTail( TQueNodeHdr *pNode, TQueNodeHdr *pListHead)
-{
- InsertNode( pNode, pListHead->pPrev, pListHead );
-}
-
-/*
- * DelFromTail(): Delete node from queue tail (first in queue)
- */
-static INLINE void DelFromTail (TQueNodeHdr *pNode)
-{
- RemoveNode (pNode->pPrev, pNode->pNext);
-}
-
-
-
-/*
- * EXTERNAL FUNCTIONS
- * ===============================
- */
-
-
-/**
- * \fn que_Create
- * \brief Create a queue.
- *
- * Allocate and init a queue object.
- *
- * \note
- * \param hOs - Handle to Os Abstraction Layer
- * \param hReport - Handle to report module
- * \param uLimit - Maximum items to store in queue
- * \param uNodeHeaderOffset - Offset of NodeHeader field from the entry of the queued item.
- * \return Handle to the allocated queue
- * \sa que_Destroy
- */
-TI_HANDLE que_Create (TI_HANDLE hOs, TI_HANDLE hReport, TI_UINT32 uLimit, TI_UINT32 uNodeHeaderOffset)
-{
- TQueue *pQue;
-
- /* allocate queue module */
- pQue = os_memoryAlloc (hOs, sizeof(TQueue));
-
- if (!pQue)
- {
- WLAN_OS_REPORT (("Error allocating the Queue Module\n"));
- return NULL;
- }
-
- os_memoryZero (hOs, pQue, sizeof(TQueue));
-
- /* Intialize the queue header */
- pQue->tHead.pNext = pQue->tHead.pPrev = &pQue->tHead;
-
- /* Set the Queue parameters */
- pQue->hOs = hOs;
- pQue->hReport = hReport;
- pQue->uLimit = uLimit;
- pQue->uNodeHeaderOffset = uNodeHeaderOffset;
-
- return (TI_HANDLE)pQue;
-}
-
-
-/**
- * \fn que_Destroy
- * \brief Destroy the queue.
- *
- * Free the queue memory.
- *
- * \note The queue's owner should first free the queued items!
- * \param hQue - The queue object
- * \return TI_OK on success or TI_NOK on failure
- * \sa que_Create
- */
-TI_STATUS que_Destroy (TI_HANDLE hQue)
-{
- TQueue *pQue = (TQueue *)hQue;
-
- if (pQue)
- {
- /* Alert if the queue is unloaded before it was cleared from items */
- if (pQue->uCount)
- {
- TRACE0(pQue->hReport, REPORT_SEVERITY_WARNING, "que_Destroy() Queue Not Empty!!");
- }
- /* free Queue object */
- os_memoryFree (pQue->hOs, pQue, sizeof(TQueue));
- }
-
- return TI_OK;
-}
-
-
-/**
- * \fn que_Init
- * \brief Init required handles
- *
- * Init required handles.
- *
- * \note
- * \param hQue - The queue object
- * \param hOs - Handle to Os Abstraction Layer
- * \param hReport - Handle to report module
- * \return TI_OK on success or TI_NOK on failure
- * \sa
- */
-TI_STATUS que_Init (TI_HANDLE hQue, TI_HANDLE hOs, TI_HANDLE hReport)
-{
- TQueue *pQue = (TQueue *)hQue;
-
- pQue->hOs = hOs;
- pQue->hReport = hReport;
-
- return TI_OK;
-}
-
-
-/**
- * \fn que_Enqueue
- * \brief Enqueue an item
- *
- * Enqueue an item at the queue's head (last in queue).
- *
- * \note
- * \param hQue - The queue object
- * \param hItem - Handle to queued item
- * \return TI_OK if item was queued, or TI_NOK if not queued due to overflow
- * \sa que_Dequeue, que_Requeue
- */
-TI_STATUS que_Enqueue (TI_HANDLE hQue, TI_HANDLE hItem)
-{
- TQueue *pQue = (TQueue *)hQue;
- TQueNodeHdr *pQueNodeHdr; /* the Node-Header in the given item */
-
- if (pQue)
- {
- /* Check queue limit */
- if(pQue->uCount < pQue->uLimit)
- {
- /* Find NodeHeader in the given item */
- pQueNodeHdr = (TQueNodeHdr *)((TI_UINT8*)hItem + pQue->uNodeHeaderOffset);
-
- /* Verify that pNext is NULL --> Sanity check that this item is not already linked to a queue */
- if (pQueNodeHdr->pNext)
- {
- /* Not an error since we have a case where a timer may expire twice in a row (in TxDataQueue) */
- TRACE0(pQue->hReport, REPORT_SEVERITY_WARNING, "que_Enqueue(): Trying to enqueue an item that is already enqueued!!");
- return TI_NOK;
- }
-
- /* Enqueue item and increment items counter */
- AddToHead (pQueNodeHdr, &pQue->tHead);
- pQue->uCount++;
-
-#ifdef TI_DBG
- if (pQue->uCount > pQue->uMaxCount)
- {
- pQue->uMaxCount = pQue->uCount;
- }
- TRACE0(pQue->hReport, REPORT_SEVERITY_INFORMATION , "que_Enqueue(): Enqueued Successfully\n");
-#endif
-
- return TI_OK;
- }
-
- /*
- * Queue is overflowed, return TI_NOK.
- */
-#ifdef TI_DBG
- pQue->uOverflow++;
- TRACE0(pQue->hReport, REPORT_SEVERITY_WARNING , "que_Enqueue(): Queue Overflow\n");
-#endif
- }
- return TI_NOK;
-}
-
-
-/**
- * \fn que_Dequeue
- * \brief Dequeue an item
- *
- * Dequeue an item from the queue's tail (first in queue).
- *
- * \note
- * \param hQue - The queue object
- * \return pointer to dequeued item or NULL if queue is empty
- * \sa que_Enqueue, que_Requeue
- */
-TI_HANDLE que_Dequeue (TI_HANDLE hQue)
-{
- TQueue *pQue = (TQueue *)hQue;
- TI_HANDLE hItem;
-
- if (pQue)
- {
- if (pQue->uCount)
- {
- /* Queue is not empty, take packet from the queue tail */
-
- /* find pointer to the node entry */
- hItem = (TI_HANDLE)((TI_UINT8*)pQue->tHead.pPrev - pQue->uNodeHeaderOffset);
-
- DelFromTail (pQue->tHead.pPrev); /* remove node from the queue */
- pQue->uCount--;
-
-#ifdef TI_DBG
- /* Clear the pNext so we can do a sanity check when enqueuing this structre in the future */
- ((TQueNodeHdr *)((TI_UINT8*)hItem + pQue->uNodeHeaderOffset))->pNext = NULL;
-#endif
-
- return (hItem);
- }
- }
-
- /* Queue is empty */
- TRACE0(pQue->hReport, REPORT_SEVERITY_INFORMATION , "que_Dequeue(): Queue is empty\n");
- return NULL;
-}
-
-
-/**
- * \fn que_Requeue
- * \brief Requeue an item
- *
- * Requeue an item at the queue's tail (first in queue).
- *
- * \note
- * \param hQue - The queue object
- * \param hItem - Handle to queued item
- * \return TI_OK if item was queued, or TI_NOK if not queued due to overflow
- * \sa que_Enqueue, que_Dequeue
- */
-TI_STATUS que_Requeue (TI_HANDLE hQue, TI_HANDLE hItem)
-{
- TQueue *pQue = (TQueue *)hQue;
- TQueNodeHdr *pQueNodeHdr; /* the NodeHeader in the given item */
-
- /*
- * If queue's limits not exceeded add the packet to queue's tail and return TI_OK
- */
- if (pQue->uCount < pQue->uLimit)
- {
- /* Find NodeHeader in the given item */
- pQueNodeHdr = (TQueNodeHdr *)((TI_UINT8*)hItem + pQue->uNodeHeaderOffset);
-
- /* Verify that pNext is NULL --> Sanity check that this item is not already linked to a queue */
- if (pQueNodeHdr->pNext)
- {
- TRACE0(pQue->hReport, REPORT_SEVERITY_ERROR, "que_Requeue(): Trying to Requeue an item that is already enqueued!!");
- return TI_NOK;
- }
-
- /* Enqueue item and increment items counter */
- AddToTail (pQueNodeHdr, &pQue->tHead);
- pQue->uCount++;
-
-#ifdef TI_DBG
- if (pQue->uCount > pQue->uMaxCount)
- pQue->uMaxCount = pQue->uCount;
-TRACE0(pQue->hReport, REPORT_SEVERITY_INFORMATION , "que_Requeue(): Requeued successfully\n");
-#endif
-
- return TI_OK;
- }
-
-
- /*
- * Queue is overflowed, return TI_NOK.
- * Note: This is not expected in the current design, since Tx packet may be requeued
- * only right after it was dequeued in the same context so the queue can't be full.
- */
-#ifdef TI_DBG
- pQue->uOverflow++;
-TRACE0(pQue->hReport, REPORT_SEVERITY_ERROR , "que_Requeue(): Queue Overflow\n");
-#endif
-
- return TI_NOK;
-}
-
-
-/**
- * \fn que_Size
- * \brief Return queue size
- *
- * Return number of items in queue.
- *
- * \note
- * \param hQue - The queue object
- * \return TI_UINT32 - the items count
- * \sa
- */
-TI_UINT32 que_Size (TI_HANDLE hQue)
-{
- TQueue *pQue = (TQueue *)hQue;
-
- return (pQue->uCount);
-}
-
-
-/**
- * \fn que_Print
- * \brief Print queue status
- *
- * Print the queue's parameters (not the content).
- *
- * \note
- * \param hQue - The queue object
- * \return void
- * \sa
- */
-
-#ifdef TI_DBG
-
-void que_Print(TI_HANDLE hQue)
-{
-#ifdef REPORT_LOG
- TQueue *pQue = (TQueue *)hQue;
-
- WLAN_OS_REPORT(("que_Print: Count=%u MaxCount=%u Limit=%u Overflow=%u NodeHeaderOffset=%u Next=0x%x Prev=0x%x\n",
- pQue->uCount, pQue->uMaxCount, pQue->uLimit, pQue->uOverflow,
- pQue->uNodeHeaderOffset, pQue->tHead.pNext, pQue->tHead.pPrev));
-#endif
-}
-
-#endif /* TI_DBG */
diff --git a/wl1271/utils/queue.h b/wl1271/utils/queue.h
deleted file mode 100644
index cbeb359..0000000
--- a/wl1271/utils/queue.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * queue.h
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-
-/** \file queue.h
- * \brief queue module header file.
- *
- * \see queue.c
- */
-
-
-#ifndef _QUEUE_H_
-#define _QUEUE_H_
-
-
-#define QUE_UNLIMITED_SIZE 0xFFFFFFFF
-
-/* A queue node header structure */
-typedef struct _TQueNodeHdr
-{
- struct _TQueNodeHdr *pNext;
- struct _TQueNodeHdr *pPrev;
-} TQueNodeHdr;
-
-
-
-/* External Functions Prototypes */
-/* ============================= */
-TI_HANDLE que_Create (TI_HANDLE hOs, TI_HANDLE hReport, TI_UINT32 uLimit, TI_UINT32 uNodeHeaderOffset);
-TI_STATUS que_Destroy (TI_HANDLE hQue);
-TI_STATUS que_Enqueue (TI_HANDLE hQue, TI_HANDLE hItem);
-TI_HANDLE que_Dequeue (TI_HANDLE hQue);
-TI_STATUS que_Requeue (TI_HANDLE hQue, TI_HANDLE hItem);
-TI_UINT32 que_Size (TI_HANDLE hQue);
-
-#ifdef TI_DBG
-void que_Print (TI_HANDLE hQue);
-#endif /* TI_DBG */
-
-
-
-#endif /* _QUEUE_H_ */
diff --git a/wl1271/utils/rate.c b/wl1271/utils/rate.c
deleted file mode 100644
index bbccb2b..0000000
--- a/wl1271/utils/rate.c
+++ /dev/null
@@ -1,1817 +0,0 @@
-/*
- * rate.c
- *
- * Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/** \file rate.c
- * \brief Rate conversion
- *
- * \see rate.h
- */
-#define __FILE_ID__ FILE_ID_131
-#include "tidef.h"
-#include "rate.h"
-
-ERate rate_NetToDrv (TI_UINT32 rate)
-{
- switch (rate)
- {
- case NET_RATE_1M:
- case NET_RATE_1M_BASIC:
- return DRV_RATE_1M;
-
- case NET_RATE_2M:
- case NET_RATE_2M_BASIC:
- return DRV_RATE_2M;
-
- case NET_RATE_5_5M:
- case NET_RATE_5_5M_BASIC:
- return DRV_RATE_5_5M;
-
- case NET_RATE_11M:
- case NET_RATE_11M_BASIC:
- return DRV_RATE_11M;
-
- case NET_RATE_22M:
- case NET_RATE_22M_BASIC:
- return DRV_RATE_22M;
-
- case NET_RATE_6M:
- case NET_RATE_6M_BASIC:
- return DRV_RATE_6M;
-
- case NET_RATE_9M:
- case NET_RATE_9M_BASIC:
- return DRV_RATE_9M;
-
- case NET_RATE_12M:
- case NET_RATE_12M_BASIC:
- return DRV_RATE_12M;
-
- case NET_RATE_18M:
- case NET_RATE_18M_BASIC:
- return DRV_RATE_18M;
-
- case NET_RATE_24M:
- case NET_RATE_24M_BASIC:
- return DRV_RATE_24M;
-
- case NET_RATE_36M:
- case NET_RATE_36M_BASIC:
- return DRV_RATE_36M;
-
- case NET_RATE_48M:
- case NET_RATE_48M_BASIC:
- return DRV_RATE_48M;
-
- case NET_RATE_54M:
- case NET_RATE_54M_BASIC:
- return DRV_RATE_54M;
-
- case NET_RATE_MCS0:
- case NET_RATE_MCS0_BASIC:
- return DRV_RATE_MCS_0;
-
- case NET_RATE_MCS1:
- case NET_RATE_MCS1_BASIC:
- return DRV_RATE_MCS_1;
-
- case NET_RATE_MCS2:
- case NET_RATE_MCS2_BASIC:
- return DRV_RATE_MCS_2;
-
- case NET_RATE_MCS3:
- case NET_RATE_MCS3_BASIC:
- return DRV_RATE_MCS_3;
-
- case NET_RATE_MCS4:
- case NET_RATE_MCS4_BASIC:
- return DRV_RATE_MCS_4;
-
- case NET_RATE_MCS5:
- case NET_RATE_MCS5_BASIC:
- return DRV_RATE_MCS_5;
-
- case NET_RATE_MCS6:
- case NET_RATE_MCS6_BASIC:
- return DRV_RATE_MCS_6;
-
- case NET_RATE_MCS7:
- case NET_RATE_MCS7_BASIC:
- return DRV_RATE_MCS_7;
-
- default:
- return DRV_RATE_INVALID;
- }
-}
-
-/************************************************************************
- * hostToNetworkRate *
- ************************************************************************
-DESCRIPTION: Translates a host rate (1, 2, 3, ....) to network rate (0x02, 0x82, 0x84, etc...)
-
-INPUT: rate - Host rate
-
-OUTPUT:
-
-
-RETURN: Network rate if the input rate is valid, otherwise returns 0.
-
-************************************************************************/
-ENetRate rate_DrvToNet (ERate rate)
-{
- switch (rate)
- {
- case DRV_RATE_AUTO:
- return NET_RATE_AUTO;
-
- case DRV_RATE_1M:
- return NET_RATE_1M;
-
- case DRV_RATE_2M:
- return NET_RATE_2M;
-
- case DRV_RATE_5_5M:
- return NET_RATE_5_5M;
-
- case DRV_RATE_11M:
- return NET_RATE_11M;
-
- case DRV_RATE_22M:
- return NET_RATE_22M;
-
- case DRV_RATE_6M:
- return NET_RATE_6M;
-
- case DRV_RATE_9M:
- return NET_RATE_9M;
-
- case DRV_RATE_12M:
- return NET_RATE_12M;
-
- case DRV_RATE_18M:
- return NET_RATE_18M;
-
- case DRV_RATE_24M:
- return NET_RATE_24M;
-
- case DRV_RATE_36M:
- return NET_RATE_36M;
-
- case DRV_RATE_48M:
- return NET_RATE_48M;
-
- case DRV_RATE_54M:
- return NET_RATE_54M;
-
- case DRV_RATE_MCS_0:
- return NET_RATE_MCS0;
-
- case DRV_RATE_MCS_1:
- return NET_RATE_MCS1;
-
- case DRV_RATE_MCS_2:
- return NET_RATE_MCS2;
-
- case DRV_RATE_MCS_3:
- return NET_RATE_MCS3;
-
- case DRV_RATE_MCS_4:
- return NET_RATE_MCS4;
-
- case DRV_RATE_MCS_5:
- return NET_RATE_MCS5;
-
- case DRV_RATE_MCS_6:
- return NET_RATE_MCS6;
-
- case DRV_RATE_MCS_7:
- return NET_RATE_MCS7;
-
- default:
- return NET_RATE_AUTO;
- }
-}
-
-/***************************************************************************
-* getMaxActiveRatefromBitmap *
-****************************************************************************
-* DESCRIPTION:
-*
-* INPUTS: hCtrlData - the object
-*
-* OUTPUT:
-*
-* RETURNS:
-***************************************************************************/
-ERate rate_GetMaxFromDrvBitmap (TI_UINT32 uRateBitMap)
-{
- if (uRateBitMap & DRV_RATE_MASK_MCS_7_OFDM)
- {
- return DRV_RATE_MCS_7;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_MCS_6_OFDM)
- {
- return DRV_RATE_MCS_6;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_MCS_5_OFDM)
- {
- return DRV_RATE_MCS_5;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_MCS_4_OFDM)
- {
- return DRV_RATE_MCS_4;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_MCS_3_OFDM)
- {
- return DRV_RATE_MCS_3;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_MCS_2_OFDM)
- {
- return DRV_RATE_MCS_2;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_MCS_1_OFDM)
- {
- return DRV_RATE_MCS_1;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_MCS_0_OFDM)
- {
- return DRV_RATE_MCS_0;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_54_OFDM)
- {
- return DRV_RATE_54M;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_48_OFDM)
- {
- return DRV_RATE_48M;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_36_OFDM)
- {
- return DRV_RATE_36M;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_24_OFDM)
- {
- return DRV_RATE_24M;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_22_PBCC)
- {
- return DRV_RATE_22M;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_18_OFDM)
- {
- return DRV_RATE_18M;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_12_OFDM)
- {
- return DRV_RATE_12M;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_11_CCK)
- {
- return DRV_RATE_11M;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_9_OFDM)
- {
- return DRV_RATE_9M;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_6_OFDM)
- {
- return DRV_RATE_6M;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_5_5_CCK)
- {
- return DRV_RATE_5_5M;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_2_BARKER)
- {
- return DRV_RATE_2M;
- }
-
- if (uRateBitMap & DRV_RATE_MASK_1_BARKER)
- {
- return DRV_RATE_1M;
- }
-
- return DRV_RATE_INVALID;
-}
-
-/************************************************************************
- * validateNetworkRate *
- ************************************************************************
-DESCRIPTION: Verify that the input nitwork rate is valid
-
-INPUT: rate - input network rate
-
-OUTPUT:
-
-
-RETURN: TI_OK if valid, otherwise TI_NOK
-
-************************************************************************/
-static TI_STATUS rate_ValidateNet (ENetRate eRate)
-{
- switch (eRate)
- {
- case NET_RATE_1M:
- case NET_RATE_1M_BASIC:
- case NET_RATE_2M:
- case NET_RATE_2M_BASIC:
- case NET_RATE_5_5M:
- case NET_RATE_5_5M_BASIC:
- case NET_RATE_11M:
- case NET_RATE_11M_BASIC:
- case NET_RATE_22M:
- case NET_RATE_22M_BASIC:
- case NET_RATE_6M:
- case NET_RATE_6M_BASIC:
- case NET_RATE_9M:
- case NET_RATE_9M_BASIC:
- case NET_RATE_12M:
- case NET_RATE_12M_BASIC:
- case NET_RATE_18M:
- case NET_RATE_18M_BASIC:
- case NET_RATE_24M:
- case NET_RATE_24M_BASIC:
- case NET_RATE_36M:
- case NET_RATE_36M_BASIC:
- case NET_RATE_48M:
- case NET_RATE_48M_BASIC:
- case NET_RATE_54M:
- case NET_RATE_54M_BASIC:
- return TI_OK;
-
- default:
- return TI_NOK;
- }
-}
-
-/************************************************************************
- * getMaxBasicRate *
- ************************************************************************
-DESCRIPTION: Goes over an array of network rates and returns the max basic rate
-
-INPUT: pRates - Rate array
-
-OUTPUT:
-
-
-RETURN: Max basic rate (in network units)
-
-************************************************************************/
-ENetRate rate_GetMaxBasicFromStr (TI_UINT8 *pRatesString, TI_UINT32 len, ENetRate eMaxRate)
-{
- TI_UINT32 i;
-
- for (i = 0; i < len; i++)
- {
- if (NET_BASIC_RATE (pRatesString[i]) && rate_ValidateNet ((ENetRate)pRatesString[i]) == TI_OK)
- {
- eMaxRate = TI_MAX ((ENetRate)pRatesString[i], eMaxRate);
- }
- }
-
- return eMaxRate;
-}
-
-/************************************************************************
- * getMaxActiveRate *
- ************************************************************************
-DESCRIPTION: Goes over an array of network rates and returns the max active rate
-
-INPUT: pRates - Rate array
-
-OUTPUT:
-
-
-RETURN: Max active rate (in network units)
-
-************************************************************************/
-ENetRate rate_GetMaxActiveFromStr (TI_UINT8 *pRatesString, TI_UINT32 len, ENetRate eMaxRate)
-{
- TI_UINT32 i;
-
- for (i = 0; i < len; i++)
- {
- if (NET_ACTIVE_RATE (pRatesString[i]) && rate_ValidateNet ((ENetRate)pRatesString[i]) == TI_OK)
- {
- eMaxRate = TI_MAX ((ENetRate)pRatesString[i], eMaxRate);
- }
- }
-
- return eMaxRate;
-}
-
-TI_UINT32 rate_DrvToNumber (ERate eRate)
-{
- switch (eRate)
- {
- case DRV_RATE_1M:
- return 1;
-
- case DRV_RATE_2M:
- return 2;
-
- case DRV_RATE_5_5M:
- return 5;
-
- case DRV_RATE_11M:
- return 11;
-
- case DRV_RATE_22M:
- return 22;
-
- case DRV_RATE_6M:
- return 6;
-
- case DRV_RATE_9M:
- return 9;
-
- case DRV_RATE_12M:
- return 12;
-
- case DRV_RATE_18M:
- return 18;
-
- case DRV_RATE_24M:
- return 24;
-
- case DRV_RATE_36M:
- return 36;
-
- case DRV_RATE_48M:
- return 48;
-
- case DRV_RATE_54M:
- return 54;
-
- case DRV_RATE_MCS_0:
- return 6;
-
- case DRV_RATE_MCS_1:
- return 13;
-
- case DRV_RATE_MCS_2:
- return 19;
-
- case DRV_RATE_MCS_3:
- return 26;
-
- case DRV_RATE_MCS_4:
- return 39;
-
- case DRV_RATE_MCS_5:
- return 52;
-
- case DRV_RATE_MCS_6:
- return 58;
-
- case DRV_RATE_MCS_7:
- return 65;
-
- default:
- return 0;
- }
-}
-
-/************************************************************************
- * bitMapToNetworkStringRates *
- ************************************************************************
-DESCRIPTION: Converts bit map to the rates string
-
-INPUT: suppRatesBitMap - bit map of supported rates
- basicRatesBitMap - bit map of basic rates
-
-OUTPUT: string - network format rates array,
- len - rates array length
- firstOFDMrateLoc - the index of first OFDM rate in the rates array.
-
-
-RETURN: None
-
-************************************************************************/
-TI_STATUS rate_DrvBitmapToNetStr (TI_UINT32 uSuppRatesBitMap,
- TI_UINT32 uBasicRatesBitMap,
- TI_UINT8 *string,
- TI_UINT32 *len,
- TI_UINT32 *pFirstOfdmRate)
-{
- TI_UINT32 i = 0;
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_1_BARKER)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_1_BARKER)
- {
- string[i++] = NET_RATE_1M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_1M;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_2_BARKER)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_2_BARKER)
- {
- string[i++] = NET_RATE_2M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_2M;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_5_5_CCK)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_5_5_CCK)
- {
- string[i++] = NET_RATE_5_5M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_5_5M;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_11_CCK)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_11_CCK)
- {
- string[i++] = NET_RATE_11M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_11M;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_22_PBCC)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_22_PBCC)
- {
- string[i++] = NET_RATE_22M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_22M;
- }
- }
-
- *pFirstOfdmRate = i;
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_6_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_6_OFDM)
- {
- string[i++] = NET_RATE_6M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_6M;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_9_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_9_OFDM)
- {
- string[i++] = NET_RATE_9M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_9M;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_12_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_12_OFDM)
- {
- string[i++] = NET_RATE_12M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_12M;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_18_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_18_OFDM)
- {
- string[i++] = NET_RATE_18M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_18M;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_24_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_24_OFDM)
- {
- string[i++] = NET_RATE_24M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_24M;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_36_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_36_OFDM)
- {
- string[i++] = NET_RATE_36M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_36M;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_48_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_48_OFDM)
- {
- string[i++] = NET_RATE_48M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_48M;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_54_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_54_OFDM)
- {
- string[i++] = NET_RATE_54M_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_54M;
- }
- }
-
- *len = i;
-
- return TI_OK;
-}
-
-
-/************************************************************************
- * bitMapToNetworkStringRates *
- ************************************************************************
-DESCRIPTION: Converts bit map to the rates string
-
-INPUT: suppRatesBitMap - bit map of supported rates
- basicRatesBitMap - bit map of basic rates
-
-OUTPUT: string - network format rates array,
- len - rates array length
- firstOFDMrateLoc - the index of first OFDM rate in the rates array.
-
-
-RETURN: None
-
-************************************************************************/
-TI_STATUS rate_DrvBitmapToNetStrIncluding11n (TI_UINT32 uSuppRatesBitMap,
- TI_UINT32 uBasicRatesBitMap,
- TI_UINT8 *string,
- TI_UINT32 *pFirstOfdmRate)
-{
- TI_UINT32 i = 0;
-
-
- rate_DrvBitmapToNetStr (uSuppRatesBitMap, uBasicRatesBitMap, string, &i, pFirstOfdmRate);
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_MCS_0_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_MCS_0_OFDM)
- {
- string[i++] = NET_RATE_MCS0_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_MCS0;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_MCS_1_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_MCS_1_OFDM)
- {
- string[i++] = NET_RATE_MCS1_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_MCS1;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_MCS_2_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_MCS_2_OFDM)
- {
- string[i++] = NET_RATE_MCS2_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_MCS2;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_MCS_3_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_MCS_3_OFDM)
- {
- string[i++] = NET_RATE_MCS3_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_MCS3;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_MCS_4_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_MCS_4_OFDM)
- {
- string[i++] = NET_RATE_MCS4_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_MCS4;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_MCS_5_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_MCS_5_OFDM)
- {
- string[i++] = NET_RATE_MCS5_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_MCS5;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_MCS_6_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_MCS_6_OFDM)
- {
- string[i++] = NET_RATE_MCS6_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_MCS6;
- }
- }
-
- if (uSuppRatesBitMap & DRV_RATE_MASK_MCS_7_OFDM)
- {
- if (uBasicRatesBitMap & DRV_RATE_MASK_MCS_7_OFDM)
- {
- string[i++] = NET_RATE_MCS7_BASIC;
- }
- else
- {
- string[i++] = NET_RATE_MCS7;
- }
- }
-
-
- return TI_OK;
-}
-
-/************************************************************************
- * networkStringToBitMapSuppRates *
- ************************************************************************
-DESCRIPTION: Converts supported rates string to the bit map
-
-INPUT: string - array of rates in the network format
- len - array length
-
-OUTPUT: bitMap - bit map of rates.
-
-RETURN: None
-
-************************************************************************/
-TI_STATUS rate_NetStrToDrvBitmap (TI_UINT32 *pBitMap, TI_UINT8 *string, TI_UINT32 len)
-{
- TI_UINT32 i;
-
- *pBitMap = 0;
-
- for (i = 0; i < len; i++)
- {
- switch (string[i])
- {
- case NET_RATE_1M:
- case NET_RATE_1M_BASIC:
- *pBitMap |= DRV_RATE_MASK_1_BARKER;
- break;
-
- case NET_RATE_2M:
- case NET_RATE_2M_BASIC:
- *pBitMap |= DRV_RATE_MASK_2_BARKER;
- break;
-
- case NET_RATE_5_5M:
- case NET_RATE_5_5M_BASIC:
- *pBitMap |= DRV_RATE_MASK_5_5_CCK;
- break;
-
- case NET_RATE_11M:
- case NET_RATE_11M_BASIC:
- *pBitMap |= DRV_RATE_MASK_11_CCK;
- break;
-
- case NET_RATE_22M:
- case NET_RATE_22M_BASIC:
- *pBitMap |= DRV_RATE_MASK_22_PBCC;
- break;
-
- case NET_RATE_6M:
- case NET_RATE_6M_BASIC:
- *pBitMap |= DRV_RATE_MASK_6_OFDM;
- break;
-
- case NET_RATE_9M:
- case NET_RATE_9M_BASIC:
- *pBitMap |= DRV_RATE_MASK_9_OFDM;
- break;
-
- case NET_RATE_12M:
- case NET_RATE_12M_BASIC:
- *pBitMap |= DRV_RATE_MASK_12_OFDM;
- break;
-
- case NET_RATE_18M:
- case NET_RATE_18M_BASIC:
- *pBitMap |= DRV_RATE_MASK_18_OFDM;
- break;
-
- case NET_RATE_24M:
- case NET_RATE_24M_BASIC:
- *pBitMap |= DRV_RATE_MASK_24_OFDM;
- break;
-
- case NET_RATE_36M:
- case NET_RATE_36M_BASIC:
- *pBitMap |= DRV_RATE_MASK_36_OFDM;
- break;
-
- case NET_RATE_48M:
- case NET_RATE_48M_BASIC:
- *pBitMap |= DRV_RATE_MASK_48_OFDM;
- break;
-
- case NET_RATE_54M:
- case NET_RATE_54M_BASIC:
- *pBitMap |= DRV_RATE_MASK_54_OFDM;
- break;
-
- case NET_RATE_MCS0:
- case NET_RATE_MCS0_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_0_OFDM;
- break;
-
- case NET_RATE_MCS1:
- case NET_RATE_MCS1_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_1_OFDM;
- break;
-
- case NET_RATE_MCS2:
- case NET_RATE_MCS2_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_2_OFDM;
- break;
-
- case NET_RATE_MCS3:
- case NET_RATE_MCS3_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_3_OFDM;
- break;
-
- case NET_RATE_MCS4:
- case NET_RATE_MCS4_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_4_OFDM;
- break;
-
- case NET_RATE_MCS5:
- case NET_RATE_MCS5_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_5_OFDM;
- break;
-
- case NET_RATE_MCS6:
- case NET_RATE_MCS6_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_6_OFDM;
- break;
-
- case NET_RATE_MCS7:
- case NET_RATE_MCS7_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_7_OFDM;
- break;
-
- default:
- break;
- }
- }
-
- return TI_OK;
-}
-
-/************************************************************************
- * networkStringToBitMapBasicRates *
- ************************************************************************
-DESCRIPTION: Converts basic rates string to the bit map
-
-INPUT: string - array of rates in the network format
- len - array length
-
-OUTPUT: bitMap - bit map of rates.
-
-RETURN: None
-
-************************************************************************/
-TI_STATUS rate_NetBasicStrToDrvBitmap (TI_UINT32 *pBitMap, TI_UINT8 *string, TI_UINT32 len)
-{
- TI_UINT32 i;
-
- *pBitMap = 0;
-
- for (i = 0; i < len; i++)
- {
- switch (string[i])
- {
- case NET_RATE_1M_BASIC:
- *pBitMap |= DRV_RATE_MASK_1_BARKER;
- break;
-
- case NET_RATE_2M_BASIC:
- *pBitMap |= DRV_RATE_MASK_2_BARKER;
- break;
-
- case NET_RATE_5_5M_BASIC:
- *pBitMap |= DRV_RATE_MASK_5_5_CCK;
- break;
-
- case NET_RATE_11M_BASIC:
- *pBitMap |= DRV_RATE_MASK_11_CCK;
- break;
-
- case NET_RATE_22M_BASIC:
- *pBitMap |= DRV_RATE_MASK_22_PBCC;
- break;
-
- case NET_RATE_6M_BASIC:
- *pBitMap |= DRV_RATE_MASK_6_OFDM;
- break;
-
- case NET_RATE_9M_BASIC:
- *pBitMap |= DRV_RATE_MASK_9_OFDM;
- break;
-
- case NET_RATE_12M_BASIC:
- *pBitMap |= DRV_RATE_MASK_12_OFDM;
- break;
-
- case NET_RATE_18M_BASIC:
- *pBitMap |= DRV_RATE_MASK_18_OFDM;
- break;
-
- case NET_RATE_24M_BASIC:
- *pBitMap |= DRV_RATE_MASK_24_OFDM;
- break;
-
- case NET_RATE_36M_BASIC:
- *pBitMap |= DRV_RATE_MASK_36_OFDM;
- break;
-
- case NET_RATE_48M_BASIC:
- *pBitMap |= DRV_RATE_MASK_48_OFDM;
- break;
-
- case NET_RATE_54M_BASIC:
- *pBitMap |= DRV_RATE_MASK_54_OFDM;
- break;
-
- case NET_RATE_MCS0_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_0_OFDM;
- break;
-
- case NET_RATE_MCS1_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_1_OFDM;
- break;
-
- case NET_RATE_MCS2_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_2_OFDM;
- break;
-
- case NET_RATE_MCS3_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_3_OFDM;
- break;
-
- case NET_RATE_MCS4_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_4_OFDM;
- break;
-
- case NET_RATE_MCS5_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_5_OFDM;
- break;
-
- case NET_RATE_MCS6_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_6_OFDM;
- break;
-
- case NET_RATE_MCS7_BASIC:
- *pBitMap |= DRV_RATE_MASK_MCS_7_OFDM;
- break;
-
- default:
- break;
- }
- }
-
- return TI_OK;
-}
-
-
-/************************************************************************
- * rate_McsNetStrToDrvBitmap *
- ************************************************************************
-DESCRIPTION: Converts MCS IEs rates bit map to driver bit map.
- supported only MCS0 - MCS7
-
-INPUT: string - HT capabilities IE in the network format
- len - IE array length
-
-OUTPUT: bitMap - bit map of rates.
-
-RETURN: None
-
-************************************************************************/
-TI_STATUS rate_McsNetStrToDrvBitmap (TI_UINT32 *pBitMap, TI_UINT8 *string)
-{
- *pBitMap = string[0];
-
- *pBitMap = *pBitMap << (DRV_RATE_MCS_0 - 1);
-
- return TI_OK;
-}
-
-
-TI_STATUS rate_DrvBitmapToHwBitmap (TI_UINT32 uDrvBitMap, TI_UINT32 *pHwBitmap)
-{
- TI_UINT32 uHwBitMap = 0;
-
- if (uDrvBitMap & DRV_RATE_MASK_1_BARKER)
- {
- uHwBitMap |= HW_BIT_RATE_1MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_2_BARKER)
- {
- uHwBitMap |= HW_BIT_RATE_2MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_5_5_CCK)
- {
- uHwBitMap |= HW_BIT_RATE_5_5MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_11_CCK)
- {
- uHwBitMap |= HW_BIT_RATE_11MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_22_PBCC)
- {
- uHwBitMap |= HW_BIT_RATE_22MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_6_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_6MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_9_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_9MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_12_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_12MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_18_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_18MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_24_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_24MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_36_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_36MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_48_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_48MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_54_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_54MBPS;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_MCS_0_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_MCS_0;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_MCS_1_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_MCS_1;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_MCS_2_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_MCS_2;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_MCS_3_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_MCS_3;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_MCS_4_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_MCS_4;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_MCS_5_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_MCS_5;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_MCS_6_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_MCS_6;
- }
-
- if (uDrvBitMap & DRV_RATE_MASK_MCS_7_OFDM)
- {
- uHwBitMap |= HW_BIT_RATE_MCS_7;
- }
-
- *pHwBitmap = uHwBitMap;
-
- return TI_OK;
-}
-
-TI_STATUS rate_PolicyToDrv (ETxRateClassId ePolicyRate, ERate *eAppRate)
-{
- ERate Rate = DRV_RATE_AUTO;
- TI_STATUS status = TI_OK;
-
- switch (ePolicyRate)
- {
- case txPolicy1 : Rate = DRV_RATE_1M ; break;
- case txPolicy2 : Rate = DRV_RATE_2M ; break;
- case txPolicy5_5 : Rate = DRV_RATE_5_5M ; break;
- case txPolicy11 : Rate = DRV_RATE_11M ; break;
- case txPolicy22 : Rate = DRV_RATE_22M ; break;
- case txPolicy6 : Rate = DRV_RATE_6M ; break;
- case txPolicy9 : Rate = DRV_RATE_9M ; break;
- case txPolicy12 : Rate = DRV_RATE_12M ; break;
- case txPolicy18 : Rate = DRV_RATE_18M ; break;
- case txPolicy24 : Rate = DRV_RATE_24M ; break;
- case txPolicy36 : Rate = DRV_RATE_36M ; break;
- case txPolicy48 : Rate = DRV_RATE_48M ; break;
- case txPolicy54 : Rate = DRV_RATE_54M ; break;
- case txPolicyMcs0 : Rate = DRV_RATE_MCS_0; break;
- case txPolicyMcs1 : Rate = DRV_RATE_MCS_1; break;
- case txPolicyMcs2 : Rate = DRV_RATE_MCS_2; break;
- case txPolicyMcs3 : Rate = DRV_RATE_MCS_3; break;
- case txPolicyMcs4 : Rate = DRV_RATE_MCS_4; break;
- case txPolicyMcs5 : Rate = DRV_RATE_MCS_5; break;
- case txPolicyMcs6 : Rate = DRV_RATE_MCS_6; break;
- case txPolicyMcs7 : Rate = DRV_RATE_MCS_7; break;
-
- default:
- status = TI_NOK;
- break;
- }
-
- if (status == TI_OK)
- *eAppRate = Rate;
- else
- *eAppRate = DRV_RATE_INVALID;
-
- return status;
-}
-
-
-TI_UINT32 rate_BasicToDrvBitmap (EBasicRateSet eBasicRateSet, TI_BOOL bDot11a)
-{
- if (!bDot11a)
- {
- switch (eBasicRateSet)
- {
- case BASIC_RATE_SET_1_2:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER;
-
- case BASIC_RATE_SET_1_2_5_5_11:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK;
-
- case BASIC_RATE_SET_UP_TO_12:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM;
-
- case BASIC_RATE_SET_UP_TO_18:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM;
-
- case BASIC_RATE_SET_UP_TO_24:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM;
-
- case BASIC_RATE_SET_UP_TO_36:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM;
-
- case BASIC_RATE_SET_UP_TO_48:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM;
-
- case BASIC_RATE_SET_UP_TO_54:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM |
- DRV_RATE_MASK_54_OFDM;
-
- case BASIC_RATE_SET_6_12_24:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_24_OFDM;
-
- case BASIC_RATE_SET_1_2_5_5_6_11_12_24:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_24_OFDM;
-
- case BASIC_RATE_SET_ALL_MCS_RATES:
- return DRV_RATE_MASK_MCS_0_OFDM |
- DRV_RATE_MASK_MCS_1_OFDM |
- DRV_RATE_MASK_MCS_2_OFDM |
- DRV_RATE_MASK_MCS_3_OFDM |
- DRV_RATE_MASK_MCS_4_OFDM |
- DRV_RATE_MASK_MCS_5_OFDM |
- DRV_RATE_MASK_MCS_6_OFDM |
- DRV_RATE_MASK_MCS_7_OFDM |
- DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK;
-
-
- default:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER;
- }
- }
- else
- {
- switch (eBasicRateSet)
- {
- case BASIC_RATE_SET_UP_TO_12:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM;
-
- case BASIC_RATE_SET_UP_TO_18:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM;
-
- case BASIC_RATE_SET_UP_TO_24:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM;
-
- case BASIC_RATE_SET_UP_TO_36:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM;
-
- case BASIC_RATE_SET_UP_TO_48:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM;
-
- case BASIC_RATE_SET_UP_TO_54:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM |
- DRV_RATE_MASK_54_OFDM;
-
- case BASIC_RATE_SET_6_12_24:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_24_OFDM;
-
- case BASIC_RATE_SET_ALL_MCS_RATES:
- return DRV_RATE_MASK_MCS_0_OFDM |
- DRV_RATE_MASK_MCS_1_OFDM |
- DRV_RATE_MASK_MCS_2_OFDM |
- DRV_RATE_MASK_MCS_3_OFDM |
- DRV_RATE_MASK_MCS_4_OFDM |
- DRV_RATE_MASK_MCS_5_OFDM |
- DRV_RATE_MASK_MCS_6_OFDM |
- DRV_RATE_MASK_MCS_7_OFDM |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_24_OFDM;
-
- default:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_24_OFDM;
- }
- }
-}
-
-TI_UINT32 rate_SupportedToDrvBitmap (ESupportedRateSet eSupportedRateSet, TI_BOOL bDot11a)
-{
- if (!bDot11a)
- {
- switch (eSupportedRateSet)
- {
- case SUPPORTED_RATE_SET_1_2:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER;
-
- case SUPPORTED_RATE_SET_1_2_5_5_11:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK;
-
- case SUPPORTED_RATE_SET_1_2_5_5_11_22:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_22_PBCC;
-
- case SUPPORTED_RATE_SET_UP_TO_18:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM;
-
- case SUPPORTED_RATE_SET_UP_TO_24:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM;
-
- case SUPPORTED_RATE_SET_UP_TO_36:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM;
-
- case SUPPORTED_RATE_SET_UP_TO_48:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM;
-
- case SUPPORTED_RATE_SET_UP_TO_54:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM |
- DRV_RATE_MASK_54_OFDM;
-
- case SUPPORTED_RATE_SET_ALL:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_22_PBCC |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM |
- DRV_RATE_MASK_54_OFDM;
-
- case SUPPORTED_RATE_SET_ALL_OFDM:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM |
- DRV_RATE_MASK_54_OFDM;
-
- case SUPPORTED_RATE_SET_ALL_MCS_RATES:
- return DRV_RATE_MASK_MCS_0_OFDM |
- DRV_RATE_MASK_MCS_1_OFDM |
- DRV_RATE_MASK_MCS_2_OFDM |
- DRV_RATE_MASK_MCS_3_OFDM |
- DRV_RATE_MASK_MCS_4_OFDM |
- DRV_RATE_MASK_MCS_5_OFDM |
- DRV_RATE_MASK_MCS_6_OFDM |
- DRV_RATE_MASK_MCS_7_OFDM |
- DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_22_PBCC |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM |
- DRV_RATE_MASK_54_OFDM;
-
- default:
- return DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_22_PBCC |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM |
- DRV_RATE_MASK_54_OFDM;
- }
- }
- else
- {
- switch (eSupportedRateSet)
- {
- case SUPPORTED_RATE_SET_UP_TO_18:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM;
-
- case SUPPORTED_RATE_SET_UP_TO_24:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM;
-
- case SUPPORTED_RATE_SET_UP_TO_36:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM;
-
- case SUPPORTED_RATE_SET_UP_TO_48:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM;
-
- case SUPPORTED_RATE_SET_UP_TO_54:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM |
- DRV_RATE_MASK_54_OFDM;
-
- case SUPPORTED_RATE_SET_ALL:
- case SUPPORTED_RATE_SET_ALL_OFDM:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM |
- DRV_RATE_MASK_54_OFDM;
-
- case SUPPORTED_RATE_SET_ALL_MCS_RATES:
- return DRV_RATE_MASK_MCS_0_OFDM |
- DRV_RATE_MASK_MCS_1_OFDM |
- DRV_RATE_MASK_MCS_2_OFDM |
- DRV_RATE_MASK_MCS_3_OFDM |
- DRV_RATE_MASK_MCS_4_OFDM |
- DRV_RATE_MASK_MCS_5_OFDM |
- DRV_RATE_MASK_MCS_6_OFDM |
- DRV_RATE_MASK_MCS_7_OFDM |
- DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM |
- DRV_RATE_MASK_54_OFDM;
-
- default:
- return DRV_RATE_MASK_6_OFDM |
- DRV_RATE_MASK_9_OFDM |
- DRV_RATE_MASK_12_OFDM |
- DRV_RATE_MASK_18_OFDM |
- DRV_RATE_MASK_24_OFDM |
- DRV_RATE_MASK_36_OFDM |
- DRV_RATE_MASK_48_OFDM |
- DRV_RATE_MASK_54_OFDM;
- }
- }
-}
-
-TI_STATUS rate_ValidateVsBand (TI_UINT32 *pSupportedMask, TI_UINT32 *pBasicMask, TI_BOOL bDot11a)
-{
- if (bDot11a)
- {
- *pSupportedMask &= ~
- (
- DRV_RATE_MASK_1_BARKER |
- DRV_RATE_MASK_2_BARKER |
- DRV_RATE_MASK_5_5_CCK |
- DRV_RATE_MASK_11_CCK |
- DRV_RATE_MASK_22_PBCC
- );
- }
-
- *pBasicMask &= *pSupportedMask;
-
- if (*pBasicMask == 0)
- {
- if (bDot11a)
- {
- *pBasicMask = DRV_RATE_MASK_6_OFDM | DRV_RATE_MASK_12_OFDM | DRV_RATE_MASK_24_OFDM;
- }
- else
- {
- *pBasicMask = DRV_RATE_MASK_1_BARKER | DRV_RATE_MASK_2_BARKER;
- }
- }
-
- return TI_OK;
-}
-
-/*-----------------------------------------------------------------------------
-Routine Name: RateNumberToHost
-Routine Description:
-Arguments:
-Return Value: None
------------------------------------------------------------------------------*/
-ERate rate_NumberToDrv (TI_UINT32 rate)
-{
- switch (rate)
- {
- case 0x1:
- return DRV_RATE_1M;
-
- case 0x2:
- return DRV_RATE_2M;
-
- case 0x5:
- return DRV_RATE_5_5M;
-
- case 0xB:
- return DRV_RATE_11M;
-
- case 0x16:
- return DRV_RATE_22M;
-
- case 0x6:
- return DRV_RATE_6M;
-
- case 0x9:
- return DRV_RATE_9M;
-
- case 0xC:
- return DRV_RATE_12M;
-
- case 0x12:
- return DRV_RATE_18M;
-
- case 0x18:
- return DRV_RATE_24M;
-
- case 0x24:
- return DRV_RATE_36M;
-
- case 0x30:
- return DRV_RATE_48M;
-
- case 0x36:
- return DRV_RATE_54M;
-
- /* MCS rate */
- case 0x7:
- return DRV_RATE_MCS_0;
-
- case 0xD:
- return DRV_RATE_MCS_1;
-
- case 0x13:
- return DRV_RATE_MCS_2;
-
- case 0x1A:
- return DRV_RATE_MCS_3;
-
- case 0x27:
- return DRV_RATE_MCS_4;
-
- case 0x34:
- return DRV_RATE_MCS_5;
-
- case 0x3A:
- return DRV_RATE_MCS_6;
-
- case 0x41:
- return DRV_RATE_MCS_7;
-
- default:
- return DRV_RATE_6M;
- }
-}
-
-TI_UINT32 rate_GetDrvBitmapForDefaultBasicSet ()
-{
- return rate_BasicToDrvBitmap (BASIC_RATE_SET_1_2_5_5_11, TI_FALSE);
-}
-
-TI_UINT32 rate_GetDrvBitmapForDefaultSupporteSet ()
-{
- return rate_SupportedToDrvBitmap (SUPPORTED_RATE_SET_1_2_5_5_11, TI_FALSE);
-}
-
diff --git a/wl1271/utils/rate.h b/wl1271/utils/rate.h
deleted file mode 100644
index 435d3d5..0000000
--- a/wl1271/utils/rate.h
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * rate.h
- *
- * Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/** \file rate.h
- * \brief Rate conversion
- *
- * \see rate.c
- */
-
-#ifndef RATE_H
-#define RATE_H
-
-#include "TWDriver.h"
-
-
-typedef enum
-{
- NET_BASIC_MASK = 0x80,
- NET_RATE_AUTO = 0x00,
- NET_RATE_1M = 0x02,
- NET_RATE_2M = 0x04,
- NET_RATE_5_5M = 0x0B,
- NET_RATE_11M = 0x16,
- NET_RATE_22M = 0x2C,
- NET_RATE_6M = 0x0C,
- NET_RATE_9M = 0x12,
- NET_RATE_12M = 0x18,
- NET_RATE_18M = 0x24,
- NET_RATE_24M = 0x30,
- NET_RATE_36M = 0x48,
- NET_RATE_48M = 0x60,
- NET_RATE_54M = 0x6C,
- NET_RATE_MCS0 = 0x0D, /* MCS0 6.5M */
- NET_RATE_MCS1 = 0x1A, /* MCS1 13M */
- NET_RATE_MCS2 = 0x27, /* MCS2 19.5M */
- NET_RATE_MCS3 = 0x34, /* MCS3 26M */
- NET_RATE_MCS4 = 0x4E, /* MCS4 39M */
- NET_RATE_MCS5 = 0x68, /* MCS5 52M */
- NET_RATE_MCS6 = 0x75, /* MCS6 58.5M */
- NET_RATE_MCS7 = 0x7F /* MCS7 65M */
-
-} ENetRate;
-
-
-typedef enum
-{
- NET_RATE_1M_BASIC = (NET_RATE_1M | NET_BASIC_MASK),
- NET_RATE_2M_BASIC = (NET_RATE_2M | NET_BASIC_MASK),
- NET_RATE_5_5M_BASIC = (NET_RATE_5_5M | NET_BASIC_MASK),
- NET_RATE_11M_BASIC = (NET_RATE_11M | NET_BASIC_MASK),
- NET_RATE_22M_BASIC = (NET_RATE_22M | NET_BASIC_MASK),
- NET_RATE_6M_BASIC = (NET_RATE_6M | NET_BASIC_MASK),
- NET_RATE_9M_BASIC = (NET_RATE_9M | NET_BASIC_MASK),
- NET_RATE_12M_BASIC = (NET_RATE_12M | NET_BASIC_MASK),
- NET_RATE_18M_BASIC = (NET_RATE_18M | NET_BASIC_MASK),
- NET_RATE_24M_BASIC = (NET_RATE_24M | NET_BASIC_MASK),
- NET_RATE_36M_BASIC = (NET_RATE_36M | NET_BASIC_MASK),
- NET_RATE_48M_BASIC = (NET_RATE_48M | NET_BASIC_MASK),
- NET_RATE_54M_BASIC = (NET_RATE_54M | NET_BASIC_MASK),
- NET_RATE_MCS0_BASIC = (NET_RATE_MCS0 | NET_BASIC_MASK),
- NET_RATE_MCS1_BASIC = (NET_RATE_MCS1 | NET_BASIC_MASK),
- NET_RATE_MCS2_BASIC = (NET_RATE_MCS2 | NET_BASIC_MASK),
- NET_RATE_MCS3_BASIC = (NET_RATE_MCS3 | NET_BASIC_MASK),
- NET_RATE_MCS4_BASIC = (NET_RATE_MCS4 | NET_BASIC_MASK),
- NET_RATE_MCS5_BASIC = (NET_RATE_MCS5 | NET_BASIC_MASK),
- NET_RATE_MCS6_BASIC = (NET_RATE_MCS6 | NET_BASIC_MASK),
- NET_RATE_MCS7_BASIC = (NET_RATE_MCS7 | NET_BASIC_MASK)
-
-} ENetRateBasic;
-
-
-typedef enum
-{
- BASIC_RATE_SET_1_2 = 0,
- BASIC_RATE_SET_1_2_5_5_11 = 1,
- BASIC_RATE_SET_UP_TO_12 = 2,
- BASIC_RATE_SET_UP_TO_18 = 3,
- BASIC_RATE_SET_1_2_5_5_6_11_12_24 = 4,
- BASIC_RATE_SET_UP_TO_36 = 5,
- BASIC_RATE_SET_UP_TO_48 = 6,
- BASIC_RATE_SET_UP_TO_54 = 7,
- BASIC_RATE_SET_UP_TO_24 = 8,
- BASIC_RATE_SET_6_12_24 = 9,
- BASIC_RATE_SET_ALL_MCS_RATES = 10
-} EBasicRateSet;
-
-
-/* Keep increasing define values - related to increasing suported rates */
-typedef enum
-{
- SUPPORTED_RATE_SET_1_2 = 0,
- SUPPORTED_RATE_SET_1_2_5_5_11 = 1,
- SUPPORTED_RATE_SET_1_2_5_5_11_22 = 2,
- SUPPORTED_RATE_SET_UP_TO_18 = 3,
- SUPPORTED_RATE_SET_UP_TO_24 = 4,
- SUPPORTED_RATE_SET_UP_TO_36 = 5,
- SUPPORTED_RATE_SET_UP_TO_48 = 6,
- SUPPORTED_RATE_SET_UP_TO_54 = 7,
- SUPPORTED_RATE_SET_ALL = 8,
- SUPPORTED_RATE_SET_ALL_OFDM = 9,
- SUPPORTED_RATE_SET_ALL_MCS_RATES = 10
-
-} ESupportedRateSet;
-
-
-typedef enum
-{
- DRV_MODULATION_NONE = 0,
- DRV_MODULATION_CCK = 1,
- DRV_MODULATION_PBCC = 2,
- DRV_MODULATION_QPSK = 3,
- DRV_MODULATION_OFDM = 4
-
-} EModulationType;
-
-
-#define NET_BASIC_RATE(rate) ((rate) & NET_BASIC_MASK)
-#define NET_ACTIVE_RATE(rate) (!NET_BASIC_RATE (rate))
-
-
-ERate rate_NumberToDrv (TI_UINT32 rate);
-TI_UINT32 rate_DrvToNumber (ERate eRate);
-ERate rate_NetToDrv (TI_UINT32 rate);
-ENetRate rate_DrvToNet (ERate eRate);
-TI_STATUS rate_DrvBitmapToNetStr (TI_UINT32 uSuppRatesBitMap, TI_UINT32 uBasicRatesBitMap, TI_UINT8 *string, TI_UINT32 *len, TI_UINT32 *pFirstOfdmRate);
-TI_STATUS rate_DrvBitmapToNetStrIncluding11n (TI_UINT32 uSuppRatesBitMap, TI_UINT32 uBasicRatesBitMap, TI_UINT8 *string, TI_UINT32 *pFirstOfdmRate);
-TI_STATUS rate_NetStrToDrvBitmap (TI_UINT32 *pBitMap, TI_UINT8 *string, TI_UINT32 len);
-TI_STATUS rate_NetBasicStrToDrvBitmap (TI_UINT32 *pBitMap, TI_UINT8 *string, TI_UINT32 len);
-TI_STATUS rate_McsNetStrToDrvBitmap (TI_UINT32 *pBitMap, TI_UINT8 *string);
-TI_STATUS rate_DrvBitmapToHwBitmap (TI_UINT32 uDrvBitmap, TI_UINT32 *pHwBitmap);
-TI_STATUS rate_PolicyToDrv (ETxRateClassId ePolicyRate, ERate *eAppRate);
-TI_UINT32 rate_BasicToDrvBitmap (EBasicRateSet eBasicRateSet, TI_BOOL bDot11a);
-TI_UINT32 rate_SupportedToDrvBitmap (ESupportedRateSet eSupportedRateSet, TI_BOOL bDot11a);
-
-ERate rate_GetMaxFromDrvBitmap (TI_UINT32 uBitMap);
-ENetRate rate_GetMaxBasicFromStr (TI_UINT8 *pRatesString, TI_UINT32 len, ENetRate eMaxRate);
-ENetRate rate_GetMaxActiveFromStr (TI_UINT8 *pRatesString, TI_UINT32 len, ENetRate eMaxRate);
-
-TI_STATUS rate_ValidateVsBand (TI_UINT32 *pSupportedMask, TI_UINT32 *pBasicMask, TI_BOOL bDot11a);
-
-TI_UINT32 rate_GetDrvBitmapForDefaultBasicSet (void);
-TI_UINT32 rate_GetDrvBitmapForDefaultSupporteSet (void);
-
-#endif
-
-
diff --git a/wl1271/utils/report.c b/wl1271/utils/report.c
deleted file mode 100644
index 2a3c548..0000000
--- a/wl1271/utils/report.c
+++ /dev/null
@@ -1,556 +0,0 @@
-/*
- * report.c
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/** \file report.c
- * \brief report module implementation
- *
- * \see report.h
- */
-
-#define __FILE_ID__ FILE_ID_132
-#include "tidef.h"
-#include "osApi.h"
-#include "report.h"
-#include "commonTypes.h"
-#include "CmdInterfaceCodes.h"
-
-
-
-
-/************************************************************************
- * report_create *
- ************************************************************************/
-TI_HANDLE report_Create (TI_HANDLE hOs)
-{
- TReport *pReport;
-
- pReport = os_memoryAlloc(hOs, sizeof(TReport));
- if (!pReport)
- {
- return NULL;
- }
-
- pReport->hOs = hOs;
-
- os_memoryZero(hOs, pReport->aSeverityTable, sizeof(pReport->aSeverityTable));
- os_memoryZero(hOs, pReport->aFileEnable, sizeof(pReport->aFileEnable));
-
-
-#ifdef PRINTF_ROLLBACK
-
- /* Fill the files names table */
-
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_0 ]), "timer " , sizeof("timer "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_1 ]), "measurementMgr " , sizeof("measurementMgr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_2 ]), "measurementMgrSM " , sizeof("measurementMgrSM "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_3 ]), "regulatoryDomain " , sizeof("regulatoryDomain "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_4 ]), "requestHandler " , sizeof("requestHandler "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_5 ]), "SoftGemini " , sizeof("SoftGemini "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_6 ]), "spectrumMngmntMgr " , sizeof("spectrumMngmntMgr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_7 ]), "SwitchChannel " , sizeof("SwitchChannel "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_8 ]), "roamingMngr " , sizeof("roamingMngr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_9 ]), "scanMngr " , sizeof("scanMngr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_10 ]), "admCtrlXCC " , sizeof("admCtrlXCC "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_11 ]), "XCCMngr " , sizeof("XCCMngr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_12 ]), "XCCRMMngr " , sizeof("XCCRMMngr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_13 ]), "XCCTSMngr " , sizeof("XCCTSMngr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_14 ]), "rogueAp " , sizeof("rogueAp "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_15 ]), "TransmitPowerXCC " , sizeof("TransmitPowerXCC "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_16 ]), "admCtrl " , sizeof("admCtrl "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_17 ]), "admCtrlNone " , sizeof("admCtrlNone "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_18 ]), "admCtrlWep " , sizeof("admCtrlWep "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_19 ]), "admCtrlWpa " , sizeof("admCtrlWpa "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_20 ]), "admCtrlWpa2 " , sizeof("admCtrlWpa2 "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_21 ]), "apConn " , sizeof("apConn "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_22 ]), "broadcastKey802_1x " , sizeof("broadcastKey802_1x "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_23 ]), "broadcastKeyNone " , sizeof("broadcastKeyNone "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_24 ]), "broadcastKeySM " , sizeof("broadcastKeySM "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_25 ]), "conn " , sizeof("conn "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_26 ]), "connIbss " , sizeof("connIbss "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_27 ]), "connInfra " , sizeof("connInfra "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_28 ]), "keyDerive " , sizeof("keyDerive "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_29 ]), "keyDeriveAes " , sizeof("keyDeriveAes "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_30 ]), "keyDeriveCkip " , sizeof("keyDeriveCkip "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_31 ]), "keyDeriveTkip " , sizeof("keyDeriveTkip "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_32 ]), "keyDeriveWep " , sizeof("keyDeriveWep "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_33 ]), "keyParser " , sizeof("keyParser "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_34 ]), "keyParserExternal " , sizeof("keyParserExternal "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_35 ]), "keyParserWep " , sizeof("keyParserWep "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_36 ]), "mainKeysSm " , sizeof("mainKeysSm "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_37 ]), "mainSecKeysOnly " , sizeof("mainSecKeysOnly "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_38 ]), "mainSecNull " , sizeof("mainSecNull "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_39 ]), "mainSecSm " , sizeof("mainSecSm "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_40 ]), "rsn " , sizeof("rsn "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_41 ]), "sme " , sizeof("sme "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_42 ]), "smeSelect " , sizeof("smeSelect "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_43 ]), "smeSm " , sizeof("smeSm "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_44 ]), "unicastKey802_1x " , sizeof("unicastKey802_1x "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_45 ]), "unicastKeyNone " , sizeof("unicastKeyNone "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_46 ]), "unicastKeySM " , sizeof("unicastKeySM "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_47 ]), "CmdDispatcher " , sizeof("CmdDispatcher "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_48 ]), "CmdHndlr " , sizeof("CmdHndlr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_49 ]), "DrvMain " , sizeof("DrvMain "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_50 ]), "EvHandler " , sizeof("EvHandler "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_51 ]), "Ctrl " , sizeof("Ctrl "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_52 ]), "GeneralUtil " , sizeof("GeneralUtil "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_53 ]), "RateAdaptation " , sizeof("RateAdaptation "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_54 ]), "rx " , sizeof("rx "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_55 ]), "TrafficMonitor " , sizeof("TrafficMonitor "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_56 ]), "txCtrl " , sizeof("txCtrl "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_57 ]), "txCtrlParams " , sizeof("txCtrlParams "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_58 ]), "txCtrlServ " , sizeof("txCtrlServ "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_59 ]), "TxDataClsfr " , sizeof("TxDataClsfr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_60 ]), "txDataQueue " , sizeof("txDataQueue "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_61 ]), "txMgmtQueue " , sizeof("txMgmtQueue "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_62 ]), "txPort " , sizeof("txPort "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_63 ]), "assocSM " , sizeof("assocSM "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_64 ]), "authSm " , sizeof("authSm "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_65 ]), "currBss " , sizeof("currBss "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_66 ]), "healthMonitor " , sizeof("healthMonitor "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_67 ]), "mlmeBuilder " , sizeof("mlmeBuilder "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_68 ]), "mlmeParser " , sizeof("mlmeParser "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_69 ]), "mlmeSm " , sizeof("mlmeSm "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_70 ]), "openAuthSm " , sizeof("openAuthSm "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_71 ]), "PowerMgr " , sizeof("PowerMgr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_72 ]), "PowerMgrDbgPrint " , sizeof("PowerMgrDbgPrint "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_73 ]), "PowerMgrKeepAlive " , sizeof("PowerMgrKeepAlive "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_74 ]), "qosMngr " , sizeof("qosMngr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_75 ]), "roamingInt " , sizeof("roamingInt "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_76 ]), "ScanCncn " , sizeof("ScanCncn "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_77 ]), "ScanCncnApp " , sizeof("ScanCncnApp "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_78 ]), "ScanCncnOsSm " , sizeof("ScanCncnOsSm "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_79 ]), "ScanCncnSm " , sizeof("ScanCncnSm "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_80 ]), "ScanCncnSmSpecific " , sizeof("ScanCncnSmSpecific "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_81 ]), "scanResultTable " , sizeof("scanResultTable "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_82 ]), "scr " , sizeof("scr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_83 ]), "sharedKeyAuthSm " , sizeof("sharedKeyAuthSm "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_84 ]), "siteHash " , sizeof("siteHash "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_85 ]), "siteMgr " , sizeof("siteMgr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_86 ]), "StaCap " , sizeof("StaCap "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_87 ]), "systemConfig " , sizeof("systemConfig "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_88 ]), "templates " , sizeof("templates "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_89 ]), "trafficAdmControl " , sizeof("trafficAdmControl "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_90 ]), "CmdBld " , sizeof("CmdBld "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_91 ]), "CmdBldCfg " , sizeof("CmdBldCfg "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_92 ]), "CmdBldCfgIE " , sizeof("CmdBldCfgIE "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_93 ]), "CmdBldCmd " , sizeof("CmdBldCmd "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_94 ]), "CmdBldCmdIE " , sizeof("CmdBldCmdIE "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_95 ]), "CmdBldItr " , sizeof("CmdBldItr "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_96 ]), "CmdBldItrIE " , sizeof("CmdBldItrIE "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_97 ]), "CmdQueue " , sizeof("CmdQueue "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_98 ]), "RxQueue " , sizeof("RxQueue "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_99 ]), "txCtrlBlk " , sizeof("txCtrlBlk "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_100]), "txHwQueue " , sizeof("txHwQueue "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_101]), "CmdMBox " , sizeof("CmdMBox "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_102]), "eventMbox " , sizeof("eventMbox "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_103]), "fwDebug " , sizeof("fwDebug "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_104]), "FwEvent " , sizeof("FwEvent "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_105]), "HwInit " , sizeof("HwInit "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_106]), "RxXfer " , sizeof("RxXfer "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_107]), "txResult " , sizeof("txResult "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_108]), "txXfer " , sizeof("txXfer "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_109]), "MacServices " , sizeof("MacServices "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_110]), "MeasurementSrv " , sizeof("MeasurementSrv "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_111]), "measurementSrvDbgPrint " , sizeof("measurementSrvDbgPrint "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_112]), "MeasurementSrvSM " , sizeof("MeasurementSrvSM "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_113]), "PowerSrv " , sizeof("PowerSrv "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_114]), "PowerSrvSM " , sizeof("PowerSrvSM "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_115]), "ScanSrv " , sizeof("ScanSrv "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_116]), "ScanSrvSM " , sizeof("ScanSrvSM "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_117]), "TWDriver " , sizeof("TWDriver "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_118]), "TWDriverCtrl " , sizeof("TWDriverCtrl "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_119]), "TWDriverRadio " , sizeof("TWDriverRadio "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_120]), "TWDriverTx " , sizeof("TWDriverTx "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_121]), "TwIf " , sizeof("TwIf "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_122]), "SdioBusDrv " , sizeof("SdioBusDrv "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_123]), "TxnQueue " , sizeof("TxnQueue "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_124]), "WspiBusDrv " , sizeof("WspiBusDrv "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_125]), "context " , sizeof("context "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_126]), "freq " , sizeof("freq "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_127]), "fsm " , sizeof("fsm "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_128]), "GenSM " , sizeof("GenSM "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_129]), "mem " , sizeof("mem "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_130]), "queue " , sizeof("queue "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_131]), "rate " , sizeof("rate "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_132]), "report " , sizeof("report "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_133]), "stack " , sizeof("stack "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_134]), "externalSec " , sizeof("externalSec "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_135]), "roamingMngr_autoSM " , sizeof("roamingMngr_autoSM "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_136]), "roamingMngr_manualSM " , sizeof("roamingMngr_manualSM "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_137]), "cmdinterpretoid " , sizeof("cmdinterpretoid "));
- os_memoryCopy(hOs, (void *)(pReport->aFileName[FILE_ID_138]), "WlanDrvIf " , sizeof("WlanDrvIf "));
-
-#endif /* PRINTF_ROLLBACK */
-
- /* Severity table description */
-
- os_memoryCopy(hOs, (char *)(pReport->aSeverityDesc[REPORT_SEVERITY_INIT]), "INIT", sizeof("INIT"));
- os_memoryCopy(hOs, (char *)(pReport->aSeverityDesc[REPORT_SEVERITY_INFORMATION]), "INFORMATION", sizeof("INFORMATION"));
- os_memoryCopy(hOs, (char *)(pReport->aSeverityDesc[REPORT_SEVERITY_WARNING]), "WARNING", sizeof("WARNING"));
- os_memoryCopy(hOs, (char *)(pReport->aSeverityDesc[REPORT_SEVERITY_ERROR]), "ERROR", sizeof("ERROR"));
- os_memoryCopy(hOs, (char *)(pReport->aSeverityDesc[REPORT_SEVERITY_FATAL_ERROR]), "FATAL_ERROR", sizeof("FATAL_ERROR"));
- os_memoryCopy(hOs, (char *)(pReport->aSeverityDesc[REPORT_SEVERITY_SM]), "SM", sizeof("SM"));
- os_memoryCopy(hOs, (char *)(pReport->aSeverityDesc[REPORT_SEVERITY_CONSOLE]), "CONSOLE", sizeof("CONSOLE"));
-
- return (TI_HANDLE)pReport;
-}
-
-/************************************************************************
- * report_SetDefaults *
- ************************************************************************/
-TI_STATUS report_SetDefaults (TI_HANDLE hReport, TReportInitParams *pInitParams)
-{
- if( (NULL == hReport) || (NULL == pInitParams))
- {
- return TI_NOK;
- }
-
- report_SetReportFilesTable (hReport, (TI_UINT8 *)pInitParams->aFileEnable);
- report_SetReportSeverityTable (hReport, (TI_UINT8 *)pInitParams->aSeverityTable);
-
- return TI_OK;
-}
-
-/************************************************************************
- * report_unLoad *
- ************************************************************************/
-TI_STATUS report_Unload (TI_HANDLE hReport)
-{
- TReport *pReport = (TReport *)hReport;
-
- if(NULL == pReport)
- {
- return TI_NOK;
- }
-
-#if defined(TIWLN_WINCE30) && defined(TI_DBG)
- closeMyFile();
-#endif
-
- os_memoryFree(pReport->hOs, pReport, sizeof(TReport));
- return TI_OK;
-}
-
-
-TI_STATUS report_SetReportModule(TI_HANDLE hReport, TI_UINT8 module_index)
-{
- if(NULL == hReport)
- {
- return TI_NOK;
- }
-
- ((TReport *)hReport)->aFileEnable[module_index] = 1;
-
- return TI_OK;
-}
-
-
-TI_STATUS report_ClearReportModule(TI_HANDLE hReport, TI_UINT8 module_index)
-{
- if(NULL == hReport)
- {
- return TI_NOK;
- }
-
- ((TReport *)hReport)->aFileEnable[module_index] = 0;
-
- return TI_OK;
-}
-
-
-TI_STATUS report_GetReportFilesTable(TI_HANDLE hReport, TI_UINT8 *pFiles)
-{
- TI_UINT8 index;
-
- if( (NULL == hReport) || (NULL == pFiles))
- {
- return TI_NOK;
- }
-
- os_memoryCopy(((TReport *)hReport)->hOs,
- (void *)pFiles,
- (void *)(((TReport *)hReport)->aFileEnable),
- sizeof(((TReport *)hReport)->aFileEnable));
-
- for (index = 0; index < sizeof(((TReport *)hReport)->aFileEnable); index++)
- {
- pFiles[index] += '0';
- }
-
- return TI_OK;
-}
-
-
-TI_STATUS report_SetReportFilesTable(TI_HANDLE hReport, TI_UINT8 *pFiles)
-{
- TI_UINT8 index;
-
- if( (NULL == hReport) || (NULL == pFiles))
- {
- return TI_NOK;
- }
-
-
- for (index = 0; index < sizeof(((TReport *)hReport)->aFileEnable); index++)
- {
- pFiles[index] -= '0';
- }
-
- os_memoryCopy(((TReport *)hReport)->hOs,
- (void *)(((TReport *)hReport)->aFileEnable),
- (void *)pFiles,
- sizeof(((TReport *)hReport)->aFileEnable));
-
- return TI_OK;
-}
-
-
-TI_STATUS report_GetReportSeverityTable(TI_HANDLE hReport, TI_UINT8 *pSeverities)
-{
- TI_UINT8 index;
-
- if( (NULL == hReport) || (NULL == pSeverities))
- {
-
- return TI_NOK;
- }
-
-
- os_memoryCopy (((TReport *)hReport)->hOs,
- (void *)pSeverities,
- (void *)(((TReport *)hReport)->aSeverityTable),
- sizeof(((TReport *)hReport)->aSeverityTable));
-
- for (index = 0; index < sizeof(((TReport *)hReport)->aSeverityTable); index++)
- {
- pSeverities[index] += '0';
- }
-
- return TI_OK;
-}
-
-
-TI_STATUS report_SetReportSeverityTable(TI_HANDLE hReport, TI_UINT8 *pSeverities)
-{
- TI_UINT8 index;
-
- if( (NULL == hReport) || (NULL == pSeverities))
- {
- return TI_NOK;
- }
-
- for (index = 0; index < sizeof(((TReport *)hReport)->aSeverityTable); index++)
- {
- pSeverities[index] -= '0';
- }
-
- os_memoryCopy(((TReport *)hReport)->hOs,
- (void *)(((TReport *)hReport)->aSeverityTable),
- (void *)pSeverities,
- sizeof(((TReport *)hReport)->aSeverityTable));
-
- return TI_OK;
-}
-
-
-/***********************************************************************
-* report_setParam
-***********************************************************************/
-TI_STATUS report_SetParam (TI_HANDLE hReport, TReportParamInfo *pParam)
-{
- if( (NULL == hReport) || (NULL == pParam))
- {
- return TI_NOK;
- }
-
- switch (pParam->paramType)
- {
- case REPORT_MODULE_ON_PARAM:
- report_SetReportModule(hReport, pParam->content.aFileEnable[0]);
- break;
-
- case REPORT_MODULE_OFF_PARAM:
- report_ClearReportModule(hReport, pParam->content.aFileEnable[0]);
- break;
-
- case REPORT_MODULE_TABLE_PARAM:
- report_SetReportFilesTable(hReport, (TI_UINT8 *)pParam->content.aFileEnable);
- break;
-
- case REPORT_SEVERITY_TABLE_PARAM:
- report_SetReportSeverityTable(hReport, (TI_UINT8 *)pParam->content.aSeverityTable);
- break;
-
- case REPORT_PPMODE_VALUE_PARAM:
- os_setDebugMode((TI_BOOL)pParam->content.uReportPPMode);
- break;
-
- case REPORT_OUTPUT_TO_LOGGER_ON:
- os_setDebugOutputToLogger(TI_TRUE);
- break;
-
- case REPORT_OUTPUT_TO_LOGGER_OFF:
- os_setDebugOutputToLogger(TI_FALSE);
- break;
-
- default:
- TRACE1(hReport, REPORT_SEVERITY_ERROR, "Set param, Params is not supported, %d\n", pParam->paramType);
- return PARAM_NOT_SUPPORTED;
- }
-
- return TI_OK;
-}
-
-/***********************************************************************
- * report_getParam
- ***********************************************************************/
-TI_STATUS report_GetParam (TI_HANDLE hReport, TReportParamInfo *pParam)
-{
- if( (NULL == hReport) || (NULL == pParam))
- {
- return TI_NOK;
- }
-
- switch (pParam->paramType)
- {
- case REPORT_MODULE_TABLE_PARAM:
- report_GetReportFilesTable(hReport, (TI_UINT8 *)pParam->content.aFileEnable);
- break;
-
- case REPORT_SEVERITY_TABLE_PARAM:
- report_GetReportSeverityTable(hReport, (TI_UINT8 *)pParam->content.aSeverityTable);
- break;
-
- default:
- TRACE1(hReport, REPORT_SEVERITY_ERROR, "Get param, Params is not supported, %d\n", pParam->paramType);
- return PARAM_NOT_SUPPORTED;
- }
-
- return TI_OK;
-}
-
-
-/************************************************************************
- * report_Dump *
- ************************************************************************/
-TI_STATUS report_Dump (TI_UINT8 *pBuffer, char *pString, TI_UINT32 size)
-{
- TI_UINT32 index;
- TI_UINT8 temp_nibble;
- if( (NULL == pBuffer) || (NULL == pString))
- {
- return TI_NOK;
-}
-
- /* Go over pBuffer and convert it to chars */
- for (index = 0; index < size; index++)
-{
- /* First nibble */
- temp_nibble = (pBuffer[index] & 0x0F);
- if (temp_nibble <= 9)
- {
- pString[(index << 1) + 1] = temp_nibble + '0';
- }
- else
- {
- pString[(index << 1) + 1] = temp_nibble - 10 + 'A';
- }
-
- /* Second nibble */
- temp_nibble = ((pBuffer[index] & 0xF0) >> 4);
- if (temp_nibble <= 9)
-{
- pString[(index << 1)] = temp_nibble + '0';
- }
- else
-{
- pString[(index << 1)] = temp_nibble - 10 + 'A';
- }
- }
-
- /* Put string terminator */
- pString[(size * 2)] = 0;
-
- return TI_OK;
- }
-
-
-/* HEX DUMP for BDs !!! Debug code only !!! */
-TI_STATUS report_PrintDump (TI_UINT8 *pData, TI_UINT32 datalen)
-{
-#ifdef TI_DBG
- TI_INT32 dbuflen=0;
- TI_UINT32 j;
- TI_CHAR dbuf[50];
- static const TI_CHAR hexdigits[16] = "0123456789ABCDEF";
-
-
- if((NULL == pData)||(datalen <= 0)
-)
- {
- return TI_NOK;
- }
-
-
- for(j=0; j < datalen;)
- {
- /* Add a byte to the line*/
- dbuf[dbuflen] = hexdigits[(pData[j] >> 4)&0x0f];
- dbuf[dbuflen+1] = hexdigits[pData[j] & 0x0f];
- dbuf[dbuflen+2] = ' ';
- dbuf[dbuflen+3] = '\0';
- dbuflen += 3;
- j++;
- if((j % 16) == 0)
- {
- /* Dump a line every 16 hex digits*/
- WLAN_OS_REPORT(("%04.4x %s\n", j-16, dbuf));
- dbuflen = 0;
- }
- }
- /* Flush if something has left in the line*/
- if(dbuflen)
- WLAN_OS_REPORT(("%04.4x %s\n", j & 0xfff0, dbuf));
-#endif
- return TI_OK;
-}
-
-void handleRunProblem(EProblemType prType)
-{
- /* Here problem handling methods can be specified per problem type.
- They can be OS dependent and can contain debug prints, traceBack,
- fatal error initiation etc.
- */
- return; /* empty for now */
-}
diff --git a/wl1271/utils/report.h b/wl1271/utils/report.h
deleted file mode 100644
index 882f7e0..0000000
--- a/wl1271/utils/report.h
+++ /dev/null
@@ -1,766 +0,0 @@
-/*
- * report.h
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/***************************************************************************/
-/* */
-/* MODULE: report.h */
-/* PURPOSE: Report module internal header API */
-/* */
-/***************************************************************************/
-#ifndef __REPORT_H__
-#define __REPORT_H__
-
-/** \file report.h
- * \brief Report module API \n
- * APIs which are used for reporting messages to the User while running. \n\n
- *
- * The report mechanism: Messages are reported per file and severity Level \n
- * Therefore, each file has a report flag which indicate if reporting for that file is enabled, \n
- * and each severity has a severity flag which indicate if reporting for that severity is enabled. \n
- * Only if both flags are enabled, the message is printed. \n
- * The report flags of all file are indicated in a bit map Table which is contained in the report module handle \n
- * The report flags of all severities are indicated in a bit map Table which is contained in the report module handle \n
- */
-
-/* in order to work without the driver logger use that definition here
- * #define PRINTF_ROLLBACK
- */
-
-#include "osApi.h"
-#include "commonTypes.h"
-
-#define MAX_STRING_LEN 32
-
-
-/*******************************/
-/* Report Files IDs */
-/*******************************/
-
-typedef enum
-{
- FILE_ID_0 , /* timer */
- FILE_ID_1 , /* measurementMgr */
- FILE_ID_2 , /* measurementMgrSM */
- FILE_ID_3 , /* regulatoryDomain */
- FILE_ID_4 , /* requestHandler */
- FILE_ID_5 , /* SoftGemini */
- FILE_ID_6 , /* spectrumMngmntMgr */
- FILE_ID_7 , /* SwitchChannel */
- FILE_ID_8 , /* roamingMngr */
- FILE_ID_9 , /* scanMngr */
- FILE_ID_10 , /* admCtrlXCC */
- FILE_ID_11 , /* XCCMngr */
- FILE_ID_12 , /* XCCRMMngr */
- FILE_ID_13 , /* XCCTSMngr */
- FILE_ID_14 , /* rogueAp */
- FILE_ID_15 , /* TransmitPowerXCC */
- FILE_ID_16 , /* admCtrl */
- FILE_ID_17 , /* admCtrlNone */
- FILE_ID_18 , /* admCtrlWep */
- FILE_ID_19 , /* admCtrlWpa */
- FILE_ID_20 , /* admCtrlWpa2 */
- FILE_ID_21 , /* apConn */
- FILE_ID_22 , /* broadcastKey802_1x */
- FILE_ID_23 , /* broadcastKeyNone */
- FILE_ID_24 , /* broadcastKeySM */
- FILE_ID_25 , /* conn */
- FILE_ID_26 , /* connIbss */
- FILE_ID_27 , /* connInfra */
- FILE_ID_28 , /* keyDerive */
- FILE_ID_29 , /* keyDeriveAes */
- FILE_ID_30 , /* keyDeriveCkip */
- FILE_ID_31 , /* keyDeriveTkip */
- FILE_ID_32 , /* keyDeriveWep */
- FILE_ID_33 , /* keyParser */
- FILE_ID_34 , /* keyParserExternal */
- FILE_ID_35 , /* keyParserWep */
- FILE_ID_36 , /* mainKeysSm */
- FILE_ID_37 , /* mainSecKeysOnly */
- FILE_ID_38 , /* mainSecNull */
- FILE_ID_39 , /* mainSecSm */
- FILE_ID_40 , /* rsn */
- FILE_ID_41 , /* sme */
- FILE_ID_42 , /* smeSelect */
- FILE_ID_43 , /* smeSm */
- FILE_ID_44 , /* unicastKey802_1x */
- FILE_ID_45 , /* unicastKeyNone */
- FILE_ID_46 , /* unicastKeySM */
- FILE_ID_47 , /* CmdDispatcher */
- FILE_ID_48 , /* CmdHndlr */
- FILE_ID_49 , /* DrvMain */
- FILE_ID_50 , /* EvHandler */
- FILE_ID_51 , /* Ctrl */
- FILE_ID_52 , /* GeneralUtil */
- FILE_ID_53 , /* RateAdaptation */
- FILE_ID_54 , /* rx */
- FILE_ID_55 , /* TrafficMonitor */
- FILE_ID_56 , /* txCtrl */
- FILE_ID_57 , /* txCtrlParams */
- FILE_ID_58 , /* txCtrlServ */
- FILE_ID_59 , /* TxDataClsfr */
- FILE_ID_60 , /* txDataQueue */
- FILE_ID_61 , /* txMgmtQueue */
- FILE_ID_62 , /* txPort */
- FILE_ID_63 , /* assocSM */
- FILE_ID_64 , /* authSm */
- FILE_ID_65 , /* currBss */
- FILE_ID_66 , /* healthMonitor */
- FILE_ID_67 , /* mlmeBuilder */
- FILE_ID_68 , /* mlmeParser */
- FILE_ID_69 , /* mlmeSm */
- FILE_ID_70 , /* openAuthSm */
- FILE_ID_71 , /* PowerMgr */
- FILE_ID_72 , /* PowerMgrDbgPrint */
- FILE_ID_73 , /* PowerMgrKeepAlive */
- FILE_ID_74 , /* qosMngr */
- FILE_ID_75 , /* roamingInt */
- FILE_ID_76 , /* ScanCncn */
- FILE_ID_77 , /* ScanCncnApp */
- FILE_ID_78 , /* ScanCncnOsSm */
- FILE_ID_79 , /* ScanCncnSm */
- FILE_ID_80 , /* ScanCncnSmSpecific */
- FILE_ID_81 , /* scanResultTable */
- FILE_ID_82 , /* scr */
- FILE_ID_83 , /* sharedKeyAuthSm */
- FILE_ID_84 , /* siteHash */
- FILE_ID_85 , /* siteMgr */
- FILE_ID_86 , /* StaCap */
- FILE_ID_87 , /* systemConfig */
- FILE_ID_88 , /* templates */
- FILE_ID_89 , /* trafficAdmControl */
- FILE_ID_90 , /* CmdBld */
- FILE_ID_91 , /* CmdBldCfg */
- FILE_ID_92 , /* CmdBldCfgIE */
- FILE_ID_93 , /* CmdBldCmd */
- FILE_ID_94 , /* CmdBldCmdIE */
- FILE_ID_95 , /* CmdBldItr */
- FILE_ID_96 , /* CmdBldItrIE */
- FILE_ID_97 , /* CmdQueue */
- FILE_ID_98 , /* RxQueue */
- FILE_ID_99 , /* txCtrlBlk */
- FILE_ID_100 , /* txHwQueue */
- FILE_ID_101 , /* CmdMBox */
- FILE_ID_102 , /* eventMbox */
- FILE_ID_103 , /* fwDebug */
- FILE_ID_104 , /* FwEvent */
- FILE_ID_105 , /* HwInit */
- FILE_ID_106 , /* RxXfer */
- FILE_ID_107 , /* txResult */
- FILE_ID_108 , /* txXfer */
- FILE_ID_109 , /* MacServices */
- FILE_ID_110 , /* MeasurementSrv */
- FILE_ID_111 , /* measurementSrvDbgPrint */
- FILE_ID_112 , /* MeasurementSrvSM */
- FILE_ID_113 , /* PowerSrv */
- FILE_ID_114 , /* PowerSrvSM */
- FILE_ID_115 , /* ScanSrv */
- FILE_ID_116 , /* ScanSrvSM */
- FILE_ID_117 , /* TWDriver */
- FILE_ID_118 , /* TWDriverCtrl */
- FILE_ID_119 , /* TWDriverRadio */
- FILE_ID_120 , /* TWDriverTx */
- FILE_ID_121 , /* TwIf */
- FILE_ID_122 , /* SdioBusDrv */
- FILE_ID_123 , /* TxnQueue */
- FILE_ID_124 , /* WspiBusDrv */
- FILE_ID_125 , /* context */
- FILE_ID_126 , /* freq */
- FILE_ID_127 , /* fsm */
- FILE_ID_128 , /* GenSM */
- FILE_ID_129 , /* mem */
- FILE_ID_130 , /* queue */
- FILE_ID_131 , /* rate */
- FILE_ID_132 , /* report */
- FILE_ID_133 , /* stack */
- FILE_ID_134 , /* externalSec */
- FILE_ID_135 , /* roamingMngr_autoSM */
- FILE_ID_136 , /* roamingMngr_manualSM */
- FILE_ID_137 , /* cmdinterpretoid */
- FILE_ID_138 , /* wlandrvif */
- REPORT_FILES_NUM /* Number of files with trace reports */
-
-} EReportFiles;
-
-
-/************************************/
-/* Report Severity values */
-/************************************/
-
-/** \enum EReportSeverity
- * \brief Report Severity Types
- *
- * \par Description
- * All available severity Levels of the events which are reported to user.\n
- *
- * \sa
- */
-typedef enum
-{
- REPORT_SEVERITY_INIT = 1, /**< Init Level (event happened during initialization) */
- REPORT_SEVERITY_INFORMATION = 2, /**< Information Level */
- REPORT_SEVERITY_WARNING = 3, /**< Warning Level */
- REPORT_SEVERITY_ERROR = 4, /**< Error Level (error accored) */
- REPORT_SEVERITY_FATAL_ERROR = 5, /**< Fatal-Error Level (fatal-error accored) */
- REPORT_SEVERITY_SM = 6, /**< State-Machine Level (event happened in State-Machine) */
- REPORT_SEVERITY_CONSOLE = 7, /**< Consol Level (event happened in Consol) */
- REPORT_SEVERITY_MAX = REPORT_SEVERITY_CONSOLE + 1 /**< Maximum number of report severity levels */
-
-} EReportSeverity;
-
-/** \enum EProblemType
- * \brief used to handle SW problems according to their types.
- *
- * \par Description
- * All available SW problem types checked in run time.\n
- *
- * \sa
- */
-typedef enum
-{
- PROBLEM_BUF_SIZE_VIOLATION = 1,
- PROBLEM_NULL_VALUE_PTR = 2,
-
- PROBLEM_MAX_VALUE
-
-} EProblemType;
-/** \struct TReport
- * \brief Report Module Object
- *
- * \par Description
- * All the Databases and other parameters which are needed for reporting messages to user
- *
- * \sa
- */
-typedef struct
-{
- TI_HANDLE hOs; /**< Handle to Operating System Object */
- TI_UINT8 aSeverityTable[REPORT_SEVERITY_MAX]; /**< Severities Table: Table which holds for each severity level a flag which indicates whether the severity is enabled for reporting */
- char aSeverityDesc[REPORT_SEVERITY_MAX][MAX_STRING_LEN]; /**< Severities Descriptors Table: Table which holds for each severity a string of its name, which is used in severity's reported messages */
- TI_UINT8 aFileEnable[REPORT_FILES_NUM]; /**< Files table indicating per file if it is enabled for reporting */
-
-#ifdef PRINTF_ROLLBACK
- char aFileName[REPORT_FILES_NUM][MAX_STRING_LEN]; /**< Files names table inserted in the file's reported messages */
-#endif
-
-} TReport;
-
-/** \struct TReportParamInfo
- * \brief Report Parameter Information
- *
- * \par Description
- * Struct which defines all the Databases and other parameters which are needed
- * for reporting messages to user.
- * The actual Content of the Report Parameter Could be one of the followed (held in union):
- * Severety Table | Module Table | Enable/Disable indication of debug module usage
- *
- * \sa EExternalParam, ETwdParam
- */
-typedef struct
-{
- TI_UINT32 paramType; /**< The reported parameter type - one of External Parameters (which includes Set,Get, Module, internal number etc.)
- * of Report Module. Used by user for Setting or Getting Report Module Paramters, for exaple Set/Get severety table
- * to/from Report Module
- */
- TI_UINT32 paramLength; /**< Length of reported parameter */
-
- union
- {
- TI_UINT8 aSeverityTable[REPORT_SEVERITY_MAX]; /**< Table which holds severity flag for every available LOG severity level.
- * This flag indicates for each severity - whether it is enabled for Logging or not.
- * User can Set/Get this Tabel
- */
- TI_UINT8 aFileEnable[REPORT_FILES_NUM]; /**< Table which holds file flag for every available LOG file.
- * This flag indicates for each file - whether it is enabled for Logging or not.
- * User can Set/Get this Tabel
- */
- TI_UINT32 uReportPPMode; /**< Used by user for Indicating if Debug Module should be enabled/disabled */
-
- } content;
-
-} TReportParamInfo;
-
-/** \struct TReportInitParams
- * \brief Report Init Parameters
- *
- * \par Description
- * Struct which defines all the Databases needed for init and set the defualts of the Report Module.
- *
- */
-typedef struct
-{
- /* Note: The arrays sizes are aligned to 4 byte to avoid padding added by the compiler! */
- TI_UINT8 aSeverityTable[(REPORT_SEVERITY_MAX + 3) & ~3]; /**< Table in the size of all available LOG severity levels which indicates for each severity - whether it is enabled for Logging or not. */
- TI_UINT8 aFileEnable [(REPORT_FILES_NUM + 3) & ~3]; /**< Table in the size of all available LOG files which indicates for each file - whether it is enabled for Logging or not */
-
-} TReportInitParams;
-
-
-
-/****************************/
-/* report module Macros */
-/****************************/
-
-/* The report mechanism is like that:
- Each file has a report flag. Each severity has a severity flag.
- Only if bits are enabled, the message is printed */
-/* The modules which have their report flag enable are indicated by a bit map in the reportModule
- variable contained in the report handle*/
-/* The severities which have are enabled are indicated by a bit map in the reportSeverity
- variable contained in the report handle*/
-/* general trace messages */
-#ifndef PRINTF_ROLLBACK
-
-#define TRACE0(hReport, level, str) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 0); } } while(0)
-
-#define TRACE1(hReport, level, str, p1) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 1, (TI_UINT32)p1); } } while(0)
-
-#define TRACE2(hReport, level, str, p1, p2) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 2, (TI_UINT32)p1, (TI_UINT32)p2); } } while(0)
-
-#define TRACE3(hReport, level, str, p1, p2, p3) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 3, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3); } } while(0)
-
-#define TRACE4(hReport, level, str, p1, p2, p3, p4) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 4, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4); } } while(0)
-
-#define TRACE5(hReport, level, str, p1, p2, p3, p4, p5) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 5, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5); } } while(0)
-
-#define TRACE6(hReport, level, str, p1, p2, p3, p4, p5, p6) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 6, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6); } } while(0)
-
-#define TRACE7(hReport, level, str, p1, p2, p3, p4, p5, p6, p7) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 7, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7); } } while(0)
-
-#define TRACE8(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 8, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8); } } while(0)
-
-#define TRACE9(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 9, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9); } } while(0)
-
-#define TRACE10(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 10, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10); } } while(0)
-
-#define TRACE11(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 11, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11); } } while(0)
-
-#define TRACE12(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 12, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12); } } while(0)
-
-#define TRACE13(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 13, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12, (TI_UINT32)p13); } } while(0)
-
-#define TRACE14(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 14, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12, (TI_UINT32)p13, (TI_UINT32)p14); } } while(0)
-
-#define TRACE15(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 15, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12, (TI_UINT32)p13, (TI_UINT32)p14, (TI_UINT32)p15); } } while(0)
-
-#define TRACE16(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 16, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12, (TI_UINT32)p13, (TI_UINT32)p14, (TI_UINT32)p15, (TI_UINT32)p16); } } while(0)
-
-#define TRACE17(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 17, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12, (TI_UINT32)p13, (TI_UINT32)p14, (TI_UINT32)p15, (TI_UINT32)p16, (TI_UINT32)p17); } } while(0)
-
-#define TRACE18(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 18, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12, (TI_UINT32)p13, (TI_UINT32)p14, (TI_UINT32)p15, (TI_UINT32)p16, (TI_UINT32)p17, (TI_UINT32)p18); } } while(0)
-
-#define TRACE19(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 19, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12, (TI_UINT32)p13, (TI_UINT32)p14, (TI_UINT32)p15, (TI_UINT32)p16, (TI_UINT32)p17, (TI_UINT32)p18, (TI_UINT32)p19); } } while(0)
-
-#define TRACE20(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 20, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12, (TI_UINT32)p13, (TI_UINT32)p14, (TI_UINT32)p15, (TI_UINT32)p16, (TI_UINT32)p17, (TI_UINT32)p18, (TI_UINT32)p19, (TI_UINT32)p20); } } while(0)
-
-#define TRACE21(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 21, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12, (TI_UINT32)p13, (TI_UINT32)p14, (TI_UINT32)p15, (TI_UINT32)p16, (TI_UINT32)p17, (TI_UINT32)p18, (TI_UINT32)p19, (TI_UINT32)p20, (TI_UINT32)p21); } } while(0)
-
-#define TRACE22(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 22, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12, (TI_UINT32)p13, (TI_UINT32)p14, (TI_UINT32)p15, (TI_UINT32)p16, (TI_UINT32)p17, (TI_UINT32)p18, (TI_UINT32)p19, (TI_UINT32)p20, (TI_UINT32)p21, (TI_UINT32)p22); } } while(0)
-
-#define TRACE25(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 22, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12, (TI_UINT32)p13, (TI_UINT32)p14, (TI_UINT32)p15, (TI_UINT32)p16, (TI_UINT32)p17, (TI_UINT32)p18, (TI_UINT32)p19, (TI_UINT32)p20, (TI_UINT32)p21, (TI_UINT32)p22, (TI_UINT32)p23, (TI_UINT32)p24, (TI_UINT32)p25); } } while(0)
-
-#define TRACE31(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_Trace((((TReport *)hReport)->hOs), level, __FILE_ID__, __LINE__, 22, (TI_UINT32)p1, (TI_UINT32)p2, (TI_UINT32)p3, (TI_UINT32)p4, (TI_UINT32)p5, (TI_UINT32)p6, (TI_UINT32)p7, (TI_UINT32)p8, (TI_UINT32)p9, (TI_UINT32)p10, (TI_UINT32)p11, (TI_UINT32)p12, (TI_UINT32)p13, (TI_UINT32)p14, (TI_UINT32)p15, (TI_UINT32)p16, (TI_UINT32)p17, (TI_UINT32)p18, (TI_UINT32)p19, (TI_UINT32)p20, (TI_UINT32)p21, (TI_UINT32)p22, (TI_UINT32)p23, (TI_UINT32)p24, (TI_UINT32)p25, (TI_UINT32)p26, (TI_UINT32)p27, (TI_UINT32)p28, (TI_UINT32)p29, (TI_UINT32)p30, (TI_UINT32)p31); } } while(0)
-
-
-#else /* PRINTF_ROLLBACK */
-
-#define TRACE0(hReport, level, str) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str); } } while(0)
-
-#define TRACE1(hReport, level, str, p1) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1); } } while(0)
-
-#define TRACE2(hReport, level, str, p1, p2) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2); } } while(0)
-
-#define TRACE3(hReport, level, str, p1, p2, p3) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3); } } while(0)
-
-#define TRACE4(hReport, level, str, p1, p2, p3, p4) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4); } } while(0)
-
-#define TRACE5(hReport, level, str, p1, p2, p3, p4, p5) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5); } } while(0)
-
-#define TRACE6(hReport, level, str, p1, p2, p3, p4, p5, p6) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6); } } while(0)
-
-#define TRACE7(hReport, level, str, p1, p2, p3, p4, p5, p6, p7) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7); } } while(0)
-
-#define TRACE8(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8); } } while(0)
-
-#define TRACE9(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9); } } while(0)
-
-#define TRACE10(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); } } while(0)
-
-#define TRACE11(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11); } } while(0)
-
-#define TRACE12(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12); } } while(0)
-
-#define TRACE13(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13); } } while(0)
-
-#define TRACE14(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14); } } while(0)
-
-#define TRACE15(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15); } } while(0)
-
-#define TRACE16(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16); } } while(0)
-
-#define TRACE17(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17); } } while(0)
-
-#define TRACE18(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18); } } while(0)
-
-#define TRACE19(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19); } } while(0)
-
-#define TRACE20(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20); } } while(0)
-
-#define TRACE21(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21); } } while(0)
-
-#define TRACE22(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22); } } while(0)
-
-#define TRACE25(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25); } } while(0)
-
-#define TRACE31(hReport, level, str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[level]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ os_printf ("%s, %s:", ((TReport *)hReport)->aFileName[__FILE_ID__], ((TReport *)hReport)->aSeverityDesc[level]); os_printf (str, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p27, p27, p28, p29, p30, p31); } } while(0)
-
-#endif /* #ifdef PRINTF_ROLLBACK */
-
-
-/****************************/
-/* report module Macros */
-/****************************/
-
-/* The report mechanism is like that:
-Each file has a report flag. Each severity has a severity flag.
-Only if bits are enabled, the message is printed */
-/* The modules which have their report flag enable are indicated by a bit map in the reportModule
-variable contained in the report handle*/
-/* The severities which have are enabled are indicated by a bit map in the reportSeverity
-variable contained in the report handle*/
-
-#ifdef REPORT_LOG
-
-/** \def WLAN_OS_REPORT
-* \brief Macro which writes a message to user via specific Operating System printf.
-* E.g. print is done using the relevant used OS printf method.
-*/
-#define WLAN_OS_REPORT(msg) \
- do { os_printf msg;} while(0)
-
-
-#ifdef INIT_MESSAGES
-/** \def WLAN_INIT_REPORT
-* \brief Macro which writes a message to user via specific Operating System printf.
-* E.g. print is done using the relevant used OS printf method.
-*/
-#define WLAN_INIT_REPORT(msg) \
- do { os_printf msg;} while(0)
-#else
-/** \def WLAN_INIT_REPORT
-* \brief Macro which writes a message to user via specific Operating System printf.
-* E.g. print is done using the relevant used OS printf method.
-*/
-#define WLAN_INIT_REPORT(msg)
-#endif
-#define TRACE_INFO_HEX(hReport, data, datalen) \
- do { if (hReport && (((TReport *)hReport)->aSeverityTable[REPORT_SEVERITY_INFORMATION]) && (((TReport *)hReport)->aFileEnable[__FILE_ID__])) \
-{ report_PrintDump (data, datalen); } } while(0)
-
-
-#else /* REPORT_LOG */
-
-/* NOTE: Keep a dummy report function call to treat compilation warnings */
-
-/** \def WLAN_OS_REPORT
-* \brief Dummy macro: Nothing is done
-*/
-#define WLAN_OS_REPORT(msg) \
- do { } while (0)
-
-/** \def WLAN_INIT_REPORT
-* \brief Dummy macro: Nothing is done
-*/
-#define WLAN_INIT_REPORT(msg) \
- do { } while (0)
-
-
-#define TRACE_INFO_HEX(hReport, data, datalen) \
- do { } while (0)
-
-#endif /* REPORT_LOG */
-
-
-/****************************/
-/* report module prototypes */
-/****************************/
-
-/** \brief Create Report Module Object
- * \param hOs - OS module object handle
- * \return Handle to the report module on success, NULL otherwise
- *
- * \par Description
- * Report module creation function, called by the config mgr in creation phase \n
- * performs the following: \n
- * - Allocate the report handle
- */
-TI_HANDLE report_Create (TI_HANDLE hOs);
-/** \brief Set Report Module Defaults
- * \param hReport - Report module object handle
- * \param pInitParams - Pointer to Input Init Parameters
- * \return TI_OK on success or TI_NOK on failure
- *
- * \par Description
- * Report module configuration function, called by the config mgr in configuration phase \n
- * performs the following: \n
- * - Reset & init local variables
- * - Resets all report modules bits
- * - Resets all severities bits
- * - Init the description strings *
- */
-TI_STATUS report_SetDefaults (TI_HANDLE hReport, TReportInitParams *pInitParams);
-/** \brief Unload Report Module
- * \param hReport - Report module object handle
- * \return TI_OK on success or TI_NOK on failure
- *
- * \par Description
- * Report Module unload function, called by the config mgr in the unload phase \n
- * performs the following: \n
- * - Free all memory allocated by the module
- */
-TI_STATUS report_Unload (TI_HANDLE hReport);
-/** \brief Set Report Module
- * \param hReport - Report module object handle
- * \return TI_OK on success or TI_NOK on failure
- *
- * \par Description
- * Enables the relevant module for reporting - according to the received module index
- */
-TI_STATUS report_SetReportModule (TI_HANDLE hReport, TI_UINT8 module_index);
-/** \brief Clear Report Module
- * \param hReport - Report module object handle
- * \param module_index - Index of file to be disable for reporting
- * \return TI_OK on success or TI_NOK on failure
- *
- * \par Description
- * Disables the relevant module for reporting - according to the received module index
- */
-TI_STATUS report_ClearReportModule (TI_HANDLE hReport, TI_UINT8 module_index);
-/** \brief Get Report files Table
- * \param hReport - Report module object handle
- * \param pFiles - Pointer to output files Table
- * \return TI_OK on success or TI_NOK on failure
- *
- * \par Description
- * Returns the Modules Table (the table which holds Modules reporting indication) held in Report Module Object
- */
-TI_STATUS report_GetReportFilesTable (TI_HANDLE hReport, TI_UINT8 *pFiles);
-/** \brief Set Report Files Table
- * \param hReport - Report module object handle
- * \param pFiles - Pointer to input files Table
- * \return TI_OK on success or TI_NOK on failure
- *
- * \par Description
- * Updates the Modules Table: copies the input Modules Table (the table which holds Modules reporting indication)
- * to the Modules Table which is held in Report Module Object
- */
-TI_STATUS report_SetReportFilesTable (TI_HANDLE hReport, TI_UINT8 *pFiles);
-/** \brief Get Report Severity Table
- * \param hReport - Report module object handle
- * \param pSeverities - Pointer to input Severity Table
- * \return TI_OK on success or TI_NOK on failure
- *
- * \par Description
- * Returns the Severities Table (the table which holds Severities reporting indication) held in Report Module Object
- */
-TI_STATUS report_GetReportSeverityTable (TI_HANDLE hReport, TI_UINT8 *pSeverities);
-/** \brief Set Report Severity Table
- * \param hReport - Report module object handle
- * \param pSeverities - Pointer to input Severity Table
- * \return TI_OK on success or TI_NOK on failure
- *
- * \par Description
- * Updates the Severities Table: copies the input Severities Table (the table which holds Severities reporting indication)
- * to the Severities Table which is held in Report Module Object
- */
-TI_STATUS report_SetReportSeverityTable (TI_HANDLE hReport, TI_UINT8 *pSeverities);
-/** \brief Set Report Parameters
- * \param hReport - Report module object handle
- * \param pParam - Pointer to input Report Parameters Information
- * \return TI_OK on success or TI_NOK on failure
- *
- * \par Description
- * Report set param function sets parameter/s to Report Module Object.
- * Called by the following:
- * - configuration Manager in order to set a parameter/s from the OS abstraction layer
- * - Form inside the driver
- */
-TI_STATUS report_SetParam (TI_HANDLE hReport, TReportParamInfo *pParam);
-/** \brief Get Report Parameters
- * \param hReport - Report module object handle
- * \param pParam - Pointer to output Report Parameters Information
- * \return TI_OK on success or TI_NOK on failure
- *
- * \par Description
- * Report get param function gets parameter/s from Report Module Object.
- * Called by the following:
- * - configuration Manager in order to get a parameter/s from the OS abstraction layer
- * - from inside the driver
- */
-TI_STATUS report_GetParam (TI_HANDLE hReport, TReportParamInfo *pParam);
-/** \brief Report Dump
- * \param pBuffer - Pointer to input HEX buffer
- * \param pString - Pointer to output string
- * \param size - size of output string
- * \return TI_OK on success or TI_NOK on failure
- *
- * \par Description
- * Converts hex buffer to string buffer
- * NOTE: 1. The caller has to make sure that the string size is at lease: ((Size * 2) + 1)
- * 2. A string terminator is inserted into lase char of the string
- */
-TI_STATUS report_Dump (TI_UINT8 *pBuffer, char *pString, TI_UINT32 size);
-/** \brief Report Print Dump
- * \param pData - Pointer to input data buffer
- * \param datalen - size of input data buffer
- * \return TI_OK on success or TI_NOK on failure
- *
- * \par Description
- * Performs HEX dump of input Data buffer. Used for debug only!
- */
-TI_STATUS report_PrintDump (TI_UINT8 *pData, TI_UINT32 datalen);
-
-/** \brief Sets bRedirectOutputToLogger
-* \param value - True if to direct output to remote PC
-* \param hEvHandler - Event handler
-*/
-void os_setDebugOutputToLogger(TI_BOOL value);
-
-/** \brief Sets handles a SW running problem
-* \param problemType - used for different problem handling depending on problem type
-*/
-void handleRunProblem(EProblemType prType);
-
-#endif /* __REPORT_H__ */
-
-
diff --git a/wl1271/utils/stack.c b/wl1271/utils/stack.c
deleted file mode 100644
index aee7ca4..0000000
--- a/wl1271/utils/stack.c
+++ /dev/null
@@ -1,163 +0,0 @@
-/*
- * stack.c
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/** \file stack.c
- * \brief Seport module API
- *
- * \see stack.h
- */
-
-/***************************************************************************/
-/* */
-/* MODULE: stack.c */
-/* PURPOSE: Stack module implementation */
-/* */
-/***************************************************************************/
-
-
-#define __FILE_ID__ FILE_ID_133
-#include "tidef.h"
-#include "osApi.h"
-#include "stack.h"
-
-
-/**
- * \date 30-May-2006\n
- * \brief initialize stack object
- *
- * Function Scope \e Public.\n
- * \param pStack - pointer to the Stack_t structure\n
- * \param hOS - handle to the OS object\n
- * \param uElemSize - size of a one stack element\n
- * \param uDep - stack depth\n
- * \param pBuf - pointer to the stack buffer; if NULL a memory for the stack buffer will be dynamically allocated\n
- * \param fCpy - pointer to function copying the stack element; if NULL a default copy function will be used\n
- * \return 0 - on success, -1 - on failure\n
- */
-unsigned stackInit
-(
- Stack_t *pStack,
- TI_HANDLE hOs,
- unsigned uElemSize,
- unsigned uDep,
- void *pBuf,
- void (*fCpy) (TI_HANDLE, void*, void*, unsigned)
-)
-{
- pStack->hOs = hOs;
- pStack->uPtr = 0;
- pStack->uElemSize = uElemSize;
- pStack->uDep = uDep * uElemSize;
-
- if (pBuf)
- {
- pStack->pBuf = pBuf;
- pStack->bBuf = 0;
- }
-
- else
- {
- pStack->pBuf = _os_memoryAlloc (hOs, pStack->uDep);
- pStack->bBuf = TI_TRUE;
- }
-
- if (fCpy)
- pStack->fCpy = fCpy;
- else
- pStack->fCpy = os_memoryCopy;
-
- return 0;
-}
-
-
-/**
- * \date 30-May-2006\n
- * \brief destroy stack object
- *
- * Function Scope \e Public.\n
- * \param pStack - pointer to the Stack_t structure\n
- * \return 0 - on success, -1 - on failure\n
- */
-unsigned stackDestroy (Stack_t *pStack)
-{
- if (pStack->bBuf)
- _os_memoryFree (pStack->hOs, pStack->pBuf, pStack->uDep);
-
- return 0;
-}
-
-
-/**
- * \date 30-May-2006\n
- * \brief destroy stack object
- *
- * Function Scope \e Public.\n
- * \param pStack - pointer to the Stack_t structure\n
- * \param pVal - the pointer to the pushed value\n
- * \return 0 - on success, -1 - on failure\n
- */
-unsigned stackPush (Stack_t *pStack, void *pVal)
-{
- if (pStack->uPtr < pStack->uDep)
- {
- pStack->fCpy (pStack->hOs, (unsigned char*)pStack->pBuf + pStack->uPtr, pVal, pStack->uElemSize);
- pStack->uPtr += pStack->uElemSize;
-
- return 0;
- }
-
- return -1;
-}
-
-
-/**
- * \date 30-May-2006\n
- * \brief destroy stack object
- *
- * Function Scope \e Public.\n
- * \param pStack - pointer to the Stack_t structure\n
- * \param pVal - the pointer to the popped value\n
- * \return 0 - on success, -1 - on failure\n
- */
-unsigned stackPop (Stack_t *pStack, void *pVal)
-{
- if (pStack->uPtr > 0)
- {
- pStack->uPtr -= pStack->uElemSize;
- pStack->fCpy (pStack->hOs, pVal, (unsigned char*)pStack->pBuf + pStack->uPtr, pStack->uElemSize);
-
- return 0;
- }
-
- return -1;
-}
diff --git a/wl1271/utils/stack.h b/wl1271/utils/stack.h
deleted file mode 100644
index c652163..0000000
--- a/wl1271/utils/stack.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * stack.h
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/** \file stack.h
- * \brief Seport module API
- *
- * \see stack.c
- */
-
-/***************************************************************************/
-/* */
-/* MODULE: stack.h */
-/* PURPOSE: Stack module internal header API */
-/* */
-/***************************************************************************/
-
-
-#ifndef STACK_H
-#define STACK_H
-
-
-typedef struct _Stack_t
-{
- TI_HANDLE hOs;
- void *pBuf;
- unsigned uPtr;
- unsigned uDep;
- unsigned uElemSize;
- TI_BOOL bBuf;
-
- void (*fCpy) (TI_HANDLE, void*, void*, unsigned);
-
-} Stack_t;
-
-
-
-unsigned stackInit (Stack_t *pStack, TI_HANDLE hOs, unsigned uElemSize, unsigned uDep, void *pBuf, void (*fCpy) (TI_HANDLE, void*, void*, unsigned));
-unsigned stackDestroy (Stack_t *pStack);
-unsigned stackPush (Stack_t *pStack, void *pVal);
-unsigned stackPop (Stack_t *pStack, void *pVal);
-
-
-#endif
diff --git a/wl1271/utils/tiQosTypes.h b/wl1271/utils/tiQosTypes.h
deleted file mode 100644
index 14b2428..0000000
--- a/wl1271/utils/tiQosTypes.h
+++ /dev/null
@@ -1,363 +0,0 @@
-/*
- * tiQosTypes.h
- *
- * Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/*--------------------------------------------------------------------------*/
-/* Module: tiQosTypes.h*/
-/**/
-/* Purpose: */
-/**/
-/*--------------------------------------------------------------------------*/
-
-#ifndef TI_QOS_TYPES_H
-#define TI_QOS_TYPES_H
-
-
-#define MAX_NUM_OF_802_1d_TAGS 8
-
-/*
- * This enum defines the protocol modes of the QOS management object
- */
-typedef enum
-{
- QOS_WME,
- QOS_NONE
-
-} EQosProtocol;
-
-
-/*
- * This enum includes the header converting modes configured to dataCtrl object.
- */
-typedef enum
-{
- HDR_CONVERT_NONE,
- HDR_CONVERT_QOS,
- HDR_CONVERT_LEGACY
-
-} EHeaderConvertMode;
-
-
-typedef enum
-{
- QOS_AC_BE = 0,
- QOS_AC_BK,
- QOS_AC_VI,
- QOS_AC_VO,
- QOS_HIGHEST_AC_INDEX = QOS_AC_VO
-
-} EAcTrfcType;
-
-
-#define FIRST_AC_INDEX QOS_AC_BE
-#define AC_PARAMS_MAX_TSID 15
-#define MAX_APSD_CONF 0xffff
-
-
-typedef enum
-{
- DROP_NEW_PACKET = 0,
- DROP_OLD_PACKET
-
-} EQOverflowPolicy;
-
-
-typedef enum
-{
- AC_NOT_ADMITTED,
- AC_WAIT_ADMISSION,
- AC_ADMITTED
-
-} ETrafficAdmState;
-
-
-/*
- * This enum defines the admission state configured to dataCtrl object.
- */
-typedef enum
-{
- ADMISSION_NOT_REQUIRED,
- ADMISSION_REQUIRED
-
-} EAdmissionState;
-
-
-typedef struct
-{
- /* Power save mode */
- TI_UINT8 PsMode;
- TI_UINT16 TxQueueSize;
- TI_UINT8 QueueIndex;
- EQOverflowPolicy QueueOvFlowPolicy;
- TI_UINT8 ackPolicy;
- TI_UINT32 MsduLifeTime;
-
-} TAcTrfcCtrl;
-
-typedef struct
-{
- /* header converting mode */
- EHeaderConvertMode headerConverMode;
- /* flag for converting zero tags */
- TI_BOOL convertTagZeroFrames;
- /* AC admission state */
- ETrafficAdmState admissionState;
- /* AC admission is mandatory */
- EAdmissionState admissionRequired;
- /* Tag to AC classification */
- EAcTrfcType tag_ToAcClsfrTable[MAX_NUM_OF_802_1d_TAGS];
-
-} TQosParams;
-
-
-typedef struct
-{
- TAcTrfcCtrl acTrfcCtrl;
- TQosParams qosParams;
- TI_UINT8 *tsrsArr;
- TI_UINT8 tsrsArrLen;
- TI_UINT8 acID;
-
-} TTxDataQosParams;
-
-
-typedef struct _OS_802_11_QOS_PARAMS
-{
- TI_UINT32 acID;
- TI_UINT32 MaxLifeTime;
- TI_UINT32 PSDeliveryProtocol;
- TI_UINT32 VoiceDeliveryProtocol;
-
-} OS_802_11_QOS_PARAMS;
-
-
-typedef struct
-{
- TI_UINT32 psPoll;
- TI_UINT32 UPSD;
-
-} OS_802_11_QOS_RX_TIMEOUT_PARAMS;
-
-
-typedef struct _OS_802_11_AC_QOS_PARAMS
-{
- TI_UINT32 uAC;
- TI_UINT32 uAssocAdmissionCtrlFlag;
- TI_UINT32 uAIFS;
- TI_UINT32 uCwMin;
- TI_UINT32 uCwMax;
- TI_UINT32 uTXOPLimit;
-
-} OS_802_11_AC_QOS_PARAMS;
-
-
-typedef struct _OS_802_11_AP_QOS_CAPABILITIES_PARAMS
-{
- TI_UINT32 uQOSFlag;
- TI_UINT32 uAPSDFlag;
-
-} OS_802_11_AP_QOS_CAPABILITIES_PARAMS;
-
-
-typedef struct _OS_802_11_QOS_TSPEC_PARAMS
-{
- TI_UINT32 uUserPriority;
- TI_UINT32 uNominalMSDUsize; /* in bytes */
- TI_UINT32 uMeanDataRate; /* bits per second */
- TI_UINT32 uMinimumPHYRate; /* 1,2,5,6,9,11,12,18,......*/
- TI_UINT32 uSurplusBandwidthAllowance;
- TI_UINT32 uAPSDFlag;
- TI_UINT32 uMediumTime;
- TI_UINT32 uReasonCode;
- TI_UINT32 uMinimumServiceInterval;
- TI_UINT32 uMaximumServiceInterval;
-
-} OS_802_11_QOS_TSPEC_PARAMS;
-
-
-typedef struct _OS_802_11_QOS_DELETE_TSPEC_PARAMS
-{
- TI_UINT32 uUserPriority;
- TI_UINT32 uReasonCode;
-} OS_802_11_QOS_DELETE_TSPEC_PARAMS;
-
-
-typedef struct _OS_802_11_QOS_DESIRED_PS_MODE
-{
- TI_UINT32 uDesiredPsMode;
- TI_UINT32 uDesiredWmeAcPsMode[QOS_HIGHEST_AC_INDEX + 1];
-
-} OS_802_11_QOS_DESIRED_PS_MODE;
-
-
-/* When this value is added to reason code in TSPEC events, it indicates a TSPEC response which was unexpected at the time */
-/* For example, a TSPEC response arrives after a TSPEC timeout */
-#define TSPEC_RESPONSE_UNEXPECTED 0x1000
-
-
-typedef enum
-{
- ADDTS_RESPONSE_ACCEPT = 0,
- ADDTS_RESPONSE_REJECT = 3,
- ADDTS_RESPONSE_AP_PARAM_INVALID = 253,
- ADDTS_RESPONSE_TIMEOUT = 254,
- TSPEC_DELETED_BY_AP = 255
-
-} ETspecStatus;
-
-
-typedef struct _OS_802_11_AC_UPSD_STATUS_PARAMS
-{
- TI_UINT32 uAC;
- TI_UINT32 uCurrentUAPSDStatus;
- TI_UINT32 pCurrentAdmissionStatus;
-
-} OS_802_11_AC_UPSD_STATUS_PARAMS;
-
-
-typedef struct _OS_802_11_THRESHOLD_CROSS_PARAMS
-{
- TI_UINT32 uAC;
- TI_UINT32 uHighThreshold;
- TI_UINT32 uLowThreshold;
-
-} OS_802_11_THRESHOLD_CROSS_PARAMS;
-
-
-typedef struct OS_802_11_THRESHOLD_CROSS_INDICATION_PARAMS
-{
- TI_UINT32 uAC;
- TI_UINT32 uHighOrLowThresholdFlag; /* According to thresholdCross_e enum */
- TI_UINT32 uAboveOrBelowFlag; /* According to thresholdCrossDirection_e enum */
-
-} OS_802_11_THRESHOLD_CROSS_INDICATION_PARAMS;
-
-
-typedef enum
-{
- HIGH_THRESHOLD_CROSS,
- LOW_THRESHOLD_CROSS
-
-} EThresholdCross;
-
-
-typedef enum
-{
- CROSS_ABOVE,
- CROSS_BELOW
-
-} EThresholdCrossDirection;
-
-
-typedef struct
-{
- TI_UINT32 dstIpAddress;
- TI_UINT32 dstPort;
- TI_UINT32 PktTag;
- TI_UINT32 userPriority;
-
-} TStreamTrafficProperties;
-
-
-typedef enum
-{
- UPLINK_DIRECTION = 0,
- DOWNLINK_DIRECTION = 1,
- RESERVED_DIRECTION = 2,
- BI_DIRECTIONAL = 3
-
-} EStreamDirection;
-
-
-/* classification algorithms:
- 0) D-tag to D-tag
- 1) DSCP to D-tag
- 2) Destination port number to D-tag
- 3) Destination IP&Port to D-tag
-*/
-typedef enum
-{
- D_TAG_CLSFR = 0,
- DSCP_CLSFR = 1,
- PORT_CLSFR = 2,
- IPPORT_CLSFR = 3,
- CLSFR_MAX_TYPE = IPPORT_CLSFR
-
-} EClsfrType;
-
-
-
-/*************************/
-/* classifier params */
-/*************************/
-
-/* Destination IP address and port number */
-typedef struct
-{
- TI_UINT32 DstIPAddress;
- TI_UINT16 DstPortNum;
-
-} TIpPort;
-
-/* Classification mapping table */
-typedef struct
-{
- union
- {
- TIpPort DstIPPort; /* for destination IP&Port classifier*/
- TI_UINT16 DstPortNum; /* for destination Port classifier*/
- TI_UINT8 CodePoint; /* for DSCP classifier*/
- } Dscp;
-
- TI_UINT8 DTag;
-
-} TClsfrTableEntry;
-
-/* number of classifier entries in the classification table */
-#define NUM_OF_CLSFR_TABLE_ENTRIES 16
-
-typedef struct
-{
- EClsfrType eClsfrType; /* The type of the classifier: D-tag, DSCP, Port or IP&Port */
- TI_UINT32 uNumActiveEntries; /* The number of active entries in the classification table */
- TClsfrTableEntry ClsfrTable[NUM_OF_CLSFR_TABLE_ENTRIES]; /* Classification table - size changed from 15 to 16*/
-
-} TClsfrParams;
-
-typedef struct{
- TI_UINT8 voiceTspecConfigure;
- TI_UINT8 videoTspecConfigure;
-}TSpecConfigure;
-
-#endif /* TI_QOS_TYPES_H */
-
diff --git a/wl1271/utils/tidef.h b/wl1271/utils/tidef.h
deleted file mode 100644
index e06a186..0000000
--- a/wl1271/utils/tidef.h
+++ /dev/null
@@ -1,411 +0,0 @@
-/*
- * tidef.h
- *
- * Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef TIDEF_H
-#define TIDEF_H
-
-#include "osTIType.h"
-
-/** \file tidef.h
- * \brief TI User Definitions APIs
- * \n\n
- * Note: TI_ prefix implies TI wrapping of primitives which is used for partability.
- * E.g. using these interfaces enables porting between different OS under these
- * interfaces without user notice.
- * \n\n
- */
-
-/**********************
- * Definitions
- **********************/
-
-/**
- * \def TI_FALSE
- * \brief False value
- */
-#define TI_FALSE 0
-/**
- * \def TI_TRUE
- * \brief True value
- */
-#define TI_TRUE 1
-
-/**
- * \def TI_OK
- * \brief OK return value
- */
-#define TI_OK 0
-/**
- * \def TI_NOK
- * \brief NOT OK return value
- */
-#define TI_NOK 1
-/**
- * \def MAC_ADDR_LEN
- * \brief Length of Standart MAC address
- */
-#define MAC_ADDR_LEN 6
-/**
- * \def IP_V4_ADDR_LEN
- * \brief Length of Standart IP V4 address
- */
-#define REGISTER_SIZE 4
-#define IP_V4_ADDR_LEN 4
-/**
- * \def IP_V4_ADDR_LEN
- * \brief Length of Standart IP V6 address
- */
-#define IP_V6_ADDR_LEN 6
-
-/**********************
- * Macros
- **********************/
-
-
-#ifndef TI_MAX
-/**
- * \def TI_MAX
- * \brief Macro which returns the maximum of two values
- */
-#define TI_MAX(a,b) (((a) > (b)) ? (a) : (b))
-#endif
-
-#ifndef TI_MIN
-/**
- * \def TI_MAX
- * \brief Macro which returns the minimum of two values
- */
-#define TI_MIN(a,b) (((a) < (b)) ? (a) : (b))
-#endif
-
-#ifndef NULL
-/**
- * \def NULL
- * \brief Macro which returns NULL
- */
-#define NULL ((void *)0)
-#endif
-
-/**
- * \def TI_VOIDCAST
- * \brief Macro which Casts to void
- */
-#ifndef TI_VOIDCAST
-#define TI_VOIDCAST(p) ((void)p)
-#endif
-
-
-#ifndef SIZE_ARR
-/**
- * \def SIZE_ARR
- * \brief Macro which returns number of elements in array a
- */
-#define SIZE_ARR(a) (sizeof(a)/sizeof(a[0]))
-#endif
-
-
-#ifndef TI_FIELD_OFFSET
-/**
- * \def TI_FIELD_OFFSET
- * \brief Macro which returns a field offset from structure begine
- */
-#define TI_FIELD_OFFSET(type,field) ((TI_UINT32)(&(((type*)0)->field)))
-#endif
-
-
-#ifndef TI_BIT
-#define TI_BIT(x) (1 << (x))
-#endif
-
-
-#ifndef IS_MASK_ON
-/**
- * \def IS_MASK_ON
- * \brief Macro which returns True if bitmask in field is on (==1) \n
- * Otherwise returns False
- */
-#define IS_MASK_ON( field, bitmask ) ( (bitmask) == ( (field) & (bitmask) ) )
-#endif
-
-#ifndef IS_MASK_OFF
-/**
- * \def IS_MASK_OFF
- * \brief Macro which returns True if bitmask in field is off (==0) \n
- * Otherwise returns False
- */
-#define IS_MASK_OFF( field, bitmask ) ( ~(bitmask) == ( (field) | ~(bitmask) ) )
-#endif
-
-
-#ifndef INRANGE
-/**
- * \def INRANGE
- * \brief Macro which returns True if value (x) in range (law <= x <= high) \n
- * Otherwise returns False
- */
-#define INRANGE(x,low,high) (((x) >= (low)) && ((x) <= (high)))
-#endif
-
-#ifndef OUTRANGE
-/**
- * \def OUTRANGE
- * \brief Macro which returns True if value (x) out of range (x < law | x > high) \n
- * Otherwise returns False
- */
-#define OUTRANGE(x,low,high) (((x) < (low)) || ((x) > (high)))
-#endif
-
-/* Due to alignment exceptions MAC_COPY and MAC_EQUAL are done byte by byte */
-
-/**
- * \def MAC_COPY
- * \brief Macro which copies 6 bytes source to 6 bytes destination \n
- * Due to alignment exceptions MAC_COPY is done byte by byte
- */
-#define MAC_COPY(dst,src) ((TI_UINT8*)(dst))[0] = ((TI_UINT8*)(src))[0]; \
- ((TI_UINT8*)(dst))[1] = ((TI_UINT8*)(src))[1]; \
- ((TI_UINT8*)(dst))[2] = ((TI_UINT8*)(src))[2]; \
- ((TI_UINT8*)(dst))[3] = ((TI_UINT8*)(src))[3]; \
- ((TI_UINT8*)(dst))[4] = ((TI_UINT8*)(src))[4]; \
- ((TI_UINT8*)(dst))[5] = ((TI_UINT8*)(src))[5]
-/**
- * \def MAC_EQUAL
- * \brief Macro which compares 6 bytes ofmac1 to 6 bytes of mac2 and returns True if all are equall \n
- * Otherwise returns False \n
- * Due to alignment exceptions MAC_EQUAL is done byte by byte
- */
-#define MAC_EQUAL(mac1,mac2) (((TI_UINT8*)(mac1))[0] == ((TI_UINT8*)(mac2))[0] && \
- ((TI_UINT8*)(mac1))[1] == ((TI_UINT8*)(mac2))[1] && \
- ((TI_UINT8*)(mac1))[2] == ((TI_UINT8*)(mac2))[2] && \
- ((TI_UINT8*)(mac1))[3] == ((TI_UINT8*)(mac2))[3] && \
- ((TI_UINT8*)(mac1))[4] == ((TI_UINT8*)(mac2))[4] && \
- ((TI_UINT8*)(mac1))[5] == ((TI_UINT8*)(mac2))[5])
-/**
- * \def MAC_BROADCAST
- * \brief Macro which returns True if MAC address is broadcast (equals "\xff\xff\xff\xff\xff\xff") \n
- * Otherwise returns False
- */
-#define MAC_BROADCAST(mac) MAC_EQUAL (mac, "\xff\xff\xff\xff\xff\xff")
-/**
- * \def MAC_NULL
- * \brief Macro which returns True if MAC address is Null (equals "\x0\x0\x0\x0\x0\x0") \n
- * Otherwise returns False
- */
-#define MAC_NULL(mac) MAC_EQUAL (mac, "\x0\x0\x0\x0\x0\x0")
-/**
- * \def MAC_MULTICAST
- * \brief Macro which returns True if MAC address is Multicast\n
- * Otherwise returns False
- */
-#define MAC_MULTICAST(mac) ((mac)[0] & 0x01)
-/**
- * \def IP_COPY
- * \brief Macro which copies IP V4 source to IP V4 destination
- */
-#define IP_COPY(dst,src) *((TI_UINT32*)(dst)) = *((TI_UINT32*)(src))
-/**
- * \def BYTE_SWAP_WORD
- * \brief Macro which swaps Word's bytes. Used for Endian handling
- */
-#define BYTE_SWAP_WORD(x) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
-/**
- * \def BYTE_SWAP_LONG
- * \brief Macro which swaps Long's bytes. Used for Endian handling
- */
-#define BYTE_SWAP_LONG(x) ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \
- (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24))
-
-
-/* TI always supports Little Endian */
-#if defined (__BYTE_ORDER_BIG_ENDIAN)
-
-#define WLANTOHL(x) (x)
-#define WLANTOHS(x) (x)
-#define HTOWLANL(x) (x)
-#define HTOWLANS(x) (x)
-
-#define ENDIAN_HANDLE_WORD(x) BYTE_SWAP_WORD (x)
-#define ENDIAN_HANDLE_LONG(x) BYTE_SWAP_LONG (x)
-
-#define INT64_LOWER(x) *(((TI_UINT32*)&(x))+1)
-#define INT64_HIGHER(x) *((TI_UINT32*)&(x))
-
-#define COPY_WLAN_WORD(dst,src) ((TI_UINT8 *)(dst))[0] = ((TI_UINT8 *)(src))[1]; \
- ((TI_UINT8 *)(dst))[1] = ((TI_UINT8 *)(src))[0]
-#define COPY_WLAN_LONG(dst,src) ((TI_UINT8 *)(dst))[0] = ((TI_UINT8 *)(src))[3]; \
- ((TI_UINT8 *)(dst))[1] = ((TI_UINT8 *)(src))[2]; \
- ((TI_UINT8 *)(dst))[2] = ((TI_UINT8 *)(src))[1]; \
- ((TI_UINT8 *)(dst))[3] = ((TI_UINT8 *)(src))[0]
-
-#define SET_WLAN_WORD(dst,val) ((TI_UINT8 *)(dst))[1] = (val) & 0xff; \
- ((TI_UINT8 *)(dst))[0] = ((val) >> 8) & 0xff
-
-#define SET_WLAN_LONG(dst,val) ((TI_UINT8 *)(dst))[3] = (val) & 0xff; \
- ((TI_UINT8 *)(dst))[2] = ((val) >> 8) & 0xff; \
- ((TI_UINT8 *)(dst))[1] = ((val) >> 16) & 0xff; \
- ((TI_UINT8 *)(dst))[0] = ((val) >> 24) & 0xff
-
-#define WLAN_WORD(src) (((TI_UINT8 *)(src))[1]) | (((TI_UINT8 *)(src))[0] << 8)
-#define WLAN_LONG(src) (((TI_UINT8 *)(src))[3]) | (((TI_UINT8 *)(src))[2] << 8) | (((TI_UINT8 *)(src))[1] << 16) | (((TI_UINT8 *)(src))[0] << 24)
-
-#elif defined (__BYTE_ORDER_LITTLE_ENDIAN)
-
-/**
- * \def WLANTOHL
- * \brief Macro which performs bytes swap of Long in Little Endian
- */
-#define WLANTOHL(x) BYTE_SWAP_LONG (x)
-/**
- * \def WLANTOHS
- * \brief Macro which performs bytes swap of Word in Little Endian
- */
-#define WLANTOHS(x) BYTE_SWAP_WORD (x)
-/**
- * \def HTOWLANL
- * \brief Macro which performs bytes swap of Long in Little Endian
- */
-#define HTOWLANL(x) BYTE_SWAP_LONG (x)
-/**
- * \def HTOWLANL
- * \brief Macro which performs bytes swap of Word in Little Endian
- */
-#define HTOWLANS(x) BYTE_SWAP_WORD (x)
-
-/**
- * \def ENDIAN_HANDLE_WORD
- * \brief Macro which handles Word in Little Endian
- */
-#define ENDIAN_HANDLE_WORD(x) (x)
-/**
- * \def ENDIAN_HANDLE_WORD
- * \brief Macro which handles Long in Little Endian
- */
-#define ENDIAN_HANDLE_LONG(x) (x)
-
-/**
- * \def INT64_HIGHER
- * \brief Macro which returns the content of higher address of INT64 variable in Little Endian
- */
-#define INT64_HIGHER(x) *(((TI_UINT32*)&(x))+1)
-/**
- * \def INT64_LOWER
- * \brief Macro which returns the content of lower address of INT64 variable in Little Endian
- */
-#define INT64_LOWER(x) *((TI_UINT32*)&(x))
-
-/**
- * \def COPY_WLAN_WORD
- * \brief Macro which copies word source to word destination byte by byte in Little Endian
- */
-#define COPY_WLAN_WORD(dst,src) ((TI_UINT8 *)(dst))[0] = ((TI_UINT8 *)(src))[0]; \
- ((TI_UINT8 *)(dst))[1] = ((TI_UINT8 *)(src))[1]
-/**
- * \def COPY_WLAN_LONG
- * \brief Macro which copies long source to long destination byte by byte in Little Endian
- */
-#define COPY_WLAN_LONG(dst,src) ((TI_UINT8 *)(dst))[0] = ((TI_UINT8 *)(src))[0]; \
- ((TI_UINT8 *)(dst))[1] = ((TI_UINT8 *)(src))[1]; \
- ((TI_UINT8 *)(dst))[2] = ((TI_UINT8 *)(src))[2]; \
- ((TI_UINT8 *)(dst))[3] = ((TI_UINT8 *)(src))[3]
-/**
- * \def SET_WLAN_WORD
- * \brief Macro which copies Word from val source to desrination in Little Endian
- */
-#define SET_WLAN_WORD(dst,val) ((TI_UINT8 *)(dst))[0] = (val) & 0xff; \
- ((TI_UINT8 *)(dst))[1] = ((val) >> 8) & 0xff
-/**
- * \def SET_WLAN_LONG
- * \brief Macro which copies Long from val source to desrination in Little Endian
- */
-#define SET_WLAN_LONG(dst,val) ((TI_UINT8 *)(dst))[0] = (val) & 0xff; \
- ((TI_UINT8 *)(dst))[1] = ((val) >> 8) & 0xff; \
- ((TI_UINT8 *)(dst))[2] = ((val) >> 16) & 0xff; \
- ((TI_UINT8 *)(dst))[3] = ((val) >> 24) & 0xff
-/**
- * \def WLAN_WORD
- * \brief Macro which returns Word value from source address in Little Endian
- */
-#define WLAN_WORD(src) (((TI_UINT8 *)(src))[0]) | (((TI_UINT8 *)(src))[1] << 8)
-/**
- * \def WLAN_LONG
- * \brief Macro which returns Long value from source address in Little Endian
- */
-#define WLAN_LONG(src) (((TI_UINT8 *)(src))[0]) | (((TI_UINT8 *)(src))[1] << 8) | (((TI_UINT8 *)(src))[2] << 16) | (((TI_UINT8 *)(src))[3] << 24)
-#else
-
-#error "Must define byte order (BIG/LITTLE ENDIAN)"
-
-#endif
-
-
-/**********************
- * types
- **********************/
-
-/**
- * \typedef TI_HANDLE
- * \brief Handle type - Pointer to void
- */
-typedef void* TI_HANDLE;
-/**
- * \typedef TI_BOOL
- * \brief Boolean type
- * \n
- * Used for indicating True or False ( TI_TRUE | TI_FALSE )
- */
-typedef TI_UINT32 TI_BOOL;
-/**
- * \typedef TI_STATUS
- * \brief Return Status type
- * \n
- * Used as return status ( TI_OK | TI_NOK | TI_PENDING )
- */
-typedef TI_UINT32 TI_STATUS;
-/**
- * \typedef TMacAddr
- * \brief MAC Address Type
- * \n
- * A buffer (size of Standart MAC Address Length in bytes) which holds a MAC address
- */
-typedef TI_UINT8 TMacAddr [MAC_ADDR_LEN];
-/**
- * \typedef TIpAddr
- * \brief IP V4 Address Type
- * \n
- * A buffer (size of Standart IP V4 Address Length in bytes) which holds IP V4 address
- */
-typedef TI_UINT8 TIpAddr [IP_V4_ADDR_LEN];
-
-#endif /* TIDEF_H */
-
-
diff --git a/wl1271/utils/timer.c b/wl1271/utils/timer.c
deleted file mode 100644
index 7be2426..0000000
--- a/wl1271/utils/timer.c
+++ /dev/null
@@ -1,666 +0,0 @@
-/*
- * timer.c
- *
- * Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/** \file timer.c
- * \brief The timers services OS-Independent layer over the OS-API timer services which are OS-Dependent.
- *
- * \see timer.h, osapi.c
- */
-
-#define __FILE_ID__ FILE_ID_0
-#include "osApi.h"
-#include "report.h"
-#include "queue.h"
-#include "context.h"
-#include "timer.h"
-
-
-#define EXPIRY_QUE_SIZE QUE_UNLIMITED_SIZE
-
-/* The timer module structure (common to all timers) */
-typedef struct
-{
- TI_HANDLE hOs;
- TI_HANDLE hReport;
- TI_HANDLE hContext;
- TI_UINT32 uContextId; /* The ID allocated to this module on registration to context module */
- TI_HANDLE hInitQueue; /* Handle of the Init-Queue */
- TI_HANDLE hOperQueue; /* Handle of the Operational-Queue */
- TI_BOOL bOperState; /* TRUE when the driver is in operational state (not init or recovery) */
- TI_UINT32 uTwdInitCount; /* Increments on each TWD init (i.e. recovery) */
- TI_UINT32 uTimersCount; /* Number of created timers */
-} TTimerModule;
-
-/* Per timer structure */
-typedef struct
-{
- TI_HANDLE hTimerModule; /* The timer module handle (see TTimerModule, needed on expiry) */
- TI_HANDLE hOsTimerObj; /* The OS-API timer object handle */
- TQueNodeHdr tQueNodeHdr; /* The header used for queueing the timer */
- TTimerCbFunc fExpiryCbFunc; /* The CB-function provided by the timer user for expiration */
- TI_HANDLE hExpiryCbHndl; /* The CB-function handle */
- TI_UINT32 uIntervalMsec; /* The timer duration in Msec */
- TI_BOOL bPeriodic; /* If TRUE, restarted after each expiry */
- TI_BOOL bOperStateWhenStarted; /* The bOperState value when the timer was started */
- TI_UINT32 uTwdInitCountWhenStarted; /* The uTwdInitCount value when the timer was started */
-} TTimerInfo;
-
-
-
-
-/**
- * \fn tmr_Create
- * \brief Create the timer module
- *
- * Allocate and clear the timer module object.
- *
- * \note This is NOT a specific timer creation! (see tmr_CreateTimer)
- * \param hOs - Handle to Os Abstraction Layer
- * \return Handle of the allocated object
- * \sa tmr_Destroy
- */
-TI_HANDLE tmr_Create (TI_HANDLE hOs)
-{
- TI_HANDLE hTimerModule;
-
- /* allocate module object */
- hTimerModule = os_memoryAlloc (hOs, sizeof(TTimerModule));
-
- if (!hTimerModule)
- {
- WLAN_OS_REPORT (("tmr_Create(): Allocation failed!!\n"));
- return NULL;
- }
-
- os_memoryZero (hOs, hTimerModule, (sizeof(TTimerModule)));
-
- return (hTimerModule);
-}
-
-
-/**
- * \fn tmr_Destroy
- * \brief Destroy the module.
- *
- * Free the module's queues and object.
- *
- * \note This is NOT a specific timer destruction! (see tmr_DestroyTimer)
- * \param hTimerModule - The module object
- * \return TI_OK on success or TI_NOK on failure
- * \sa tmr_Create
- */
-TI_STATUS tmr_Destroy (TI_HANDLE hTimerModule)
-{
- TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
-
- if (!pTimerModule)
- {
- WLAN_OS_REPORT (("tmr_Destroy(): ERROR - NULL timer!\n"));
- return TI_NOK;
- }
-
- /* Alert if there are still timers that were not destroyed */
- if (pTimerModule->uTimersCount)
- {
- WLAN_OS_REPORT (("tmr_Destroy(): ERROR - Destroying Timer module but not all timers were destroyed!!\n"));
- }
-
- /* Destroy the module's queues (protect in critical section)) */
- context_EnterCriticalSection (pTimerModule->hContext);
- que_Destroy (pTimerModule->hInitQueue);
- que_Destroy (pTimerModule->hOperQueue);
- context_LeaveCriticalSection (pTimerModule->hContext);
-
- /* free module object */
- os_memoryFree (pTimerModule->hOs, pTimerModule, sizeof(TTimerModule));
-
- return TI_OK;
-}
-/**
- * \fn tmr_Free
- * \brief Free the memory.
- *
- * Free the module's queues and object.
- *
- * \param hTimerModule - The module object
- * \return TI_OK on success or TI_NOK on failure
- * \sa tmr_Create
- */
-TI_STATUS tmr_Free(TI_HANDLE hTimerModule)
-{
- TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
-
- if (!pTimerModule)
- {
- WLAN_OS_REPORT (("tmr_Free(): ERROR - NULL timer!\n"));
- return TI_NOK;
- }
-
- /* free module object */
- os_memoryFree (pTimerModule->hOs, pTimerModule, sizeof(TTimerModule));
-
- return TI_OK;
-}
-
-
-/**
- * \fn tmr_ClearInitQueue & tmr_ClearOperQueue
- * \brief Clear Init/Operationsl queue
- *
- * Dequeue all queued timers.
- *
- * \note
- * \param hTimerModule - The object
- * \return void
- * \sa
- */
-void tmr_ClearInitQueue (TI_HANDLE hTimerModule)
-{
- TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
-
- context_EnterCriticalSection (pTimerModule->hContext);
- while (que_Dequeue (pTimerModule->hInitQueue) != NULL) {}
- context_LeaveCriticalSection (pTimerModule->hContext);
-}
-
-void tmr_ClearOperQueue (TI_HANDLE hTimerModule)
-{
- TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
-
- context_EnterCriticalSection (pTimerModule->hContext);
- while (que_Dequeue (pTimerModule->hOperQueue) != NULL) {}
- context_LeaveCriticalSection (pTimerModule->hContext);
-}
-
-
-/**
- * \fn tmr_Init
- * \brief Init required handles
- *
- * Init required handles and module variables, create the init-queue and
- * operational-queue, and register as the context-engine client.
- *
- * \note
- * \param hTimerModule - The queue object
- * \param hOs - Handle to Os Abstraction Layer
- * \param hReport - Handle to report module
- * \param hContext - Handle to context module
- * \return void
- * \sa
- */
-void tmr_Init (TI_HANDLE hTimerModule, TI_HANDLE hOs, TI_HANDLE hReport, TI_HANDLE hContext)
-{
- TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
- TI_UINT32 uNodeHeaderOffset;
-
- if (!pTimerModule)
- {
- WLAN_OS_REPORT (("tmr_Init(): ERROR - NULL timer!\n"));
- return;
- }
-
- pTimerModule->hOs = hOs;
- pTimerModule->hReport = hReport;
- pTimerModule->hContext = hContext;
-
- pTimerModule->bOperState = TI_FALSE;
- pTimerModule->uTimersCount = 0;
- pTimerModule->uTwdInitCount = 0;
-
- /* The offset of the queue-node-header from timer structure entry is needed by the queue */
- uNodeHeaderOffset = TI_FIELD_OFFSET(TTimerInfo, tQueNodeHdr);
-
- /* Create and initialize the Init and Operational queues (for timers expiry events) */
- pTimerModule->hInitQueue = que_Create (pTimerModule->hOs,
- pTimerModule->hReport,
- EXPIRY_QUE_SIZE,
- uNodeHeaderOffset);
- pTimerModule->hOperQueue = que_Create (pTimerModule->hOs,
- pTimerModule->hReport,
- EXPIRY_QUE_SIZE,
- uNodeHeaderOffset);
-
- /* Register to the context engine and get the client ID */
- pTimerModule->uContextId = context_RegisterClient (pTimerModule->hContext,
- tmr_HandleExpiry,
- hTimerModule,
- TI_TRUE,
- "TIMER",
- sizeof("TIMER"));
-}
-
-
-/**
- * \fn tmr_UpdateDriverState
- * \brief Update driver state
- *
- * Under critical section, update driver state (operational or not),
- * and if opertional, clear init queue.
- * Leave critical section and if operational state, request schedule for handling
- * timer events in driver context (if any).
- *
- * \note
- * \param hTimerModule - The timer module object
- * \param bOperState - TRUE if driver state is now operational, FALSE if not.
- * \return void
- * \sa
- */
-void tmr_UpdateDriverState (TI_HANDLE hTimerModule, TI_BOOL bOperState)
-{
- TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
-
- if (!pTimerModule)
- {
- WLAN_OS_REPORT (("tmr_UpdateDriverState(): ERROR - NULL timer!\n"));
- return;
- }
-
- /* Enter critical section */
- context_EnterCriticalSection (pTimerModule->hContext);
-
- if (bOperState == pTimerModule->bOperState)
- {
- context_LeaveCriticalSection (pTimerModule->hContext);
- TRACE1(pTimerModule->hReport, REPORT_SEVERITY_ERROR, "tmr_UpdateDriverState(): New bOperState (%d) is as current!\n", bOperState);
- return;
- }
-
- /* Save new state (TRUE means operational). */
- pTimerModule->bOperState = bOperState;
-
- /* If new state is operational */
- if (bOperState)
- {
- /* Increment the TWD initializations counter (for detecting recovery events). */
- pTimerModule->uTwdInitCount++;
-
- /* Empty the init queue (obsolete). */
- while (que_Dequeue (pTimerModule->hInitQueue) != NULL) {}
- }
-
- /* Leave critical section */
- context_LeaveCriticalSection (pTimerModule->hContext);
-
- /* If new state is operational, request switch to driver context for handling timer events */
- if (bOperState)
- {
- context_RequestSchedule (pTimerModule->hContext, pTimerModule->uContextId);
- }
-}
-
-
-
-/**
- * \fn tmr_CreateTimer
- * \brief Create a new timer
- *
- * Create a new timer object, icluding creating a timer in the OS-API.
- *
- * \note This timer creation may be used only after tmr_Create() and tmr_Init() were executed!!
- * \param hTimerModule - The module handle
- * \return TI_HANDLE - The created timer handle
- * \sa tmr_DestroyTimer
- */
-TI_HANDLE tmr_CreateTimer (TI_HANDLE hTimerModule)
-{
- TTimerModule *pTimerModule = (TTimerModule *)hTimerModule; /* The timer module handle */
- TTimerInfo *pTimerInfo; /* The created timer handle */
-
- if (!pTimerModule)
- {
- WLAN_OS_REPORT (("tmr_CreateTimer(): ERROR - NULL timer!\n"));
- return NULL;
- }
-
- /* Allocate timer object */
- pTimerInfo = os_memoryAlloc (pTimerModule->hOs, sizeof(TTimerInfo));
- if (!pTimerInfo)
- {
- WLAN_OS_REPORT (("tmr_CreateTimer(): Timer allocation failed!!\n"));
- return NULL;
- }
- os_memoryZero (pTimerModule->hOs, pTimerInfo, (sizeof(TTimerInfo)));
-
- /* Allocate OS-API timer, providing the common expiry callback with the current timer handle */
- pTimerInfo->hOsTimerObj = os_timerCreate(pTimerModule->hOs, tmr_GetExpiry, (TI_HANDLE)pTimerInfo);
- if (!pTimerInfo->hOsTimerObj)
- {
- TRACE0(pTimerModule->hReport, REPORT_SEVERITY_CONSOLE ,"tmr_CreateTimer(): OS-API Timer allocation failed!!\n");
- os_memoryFree (pTimerModule->hOs, pTimerInfo, sizeof(TTimerInfo));
- WLAN_OS_REPORT (("tmr_CreateTimer(): OS-API Timer allocation failed!!\n"));
- return NULL;
- }
-
- /* Save the timer module handle in the created timer object (needed for the expiry callback) */
- pTimerInfo->hTimerModule = hTimerModule;
- pTimerModule->uTimersCount++; /* count created timers */
-
- /* Return the created timer handle */
- return (TI_HANDLE)pTimerInfo;
-}
-
-
-/**
- * \fn tmr_DestroyTimer
- * \brief Destroy the specified timer
- *
- * Destroy the specified timer object, icluding the timer in the OS-API.
- *
- * \note This timer destruction function should be used before tmr_Destroy() is executed!!
- * \param hTimerInfo - The timer handle
- * \return TI_OK on success or TI_NOK on failure
- * \sa tmr_CreateTimer
- */
-TI_STATUS tmr_DestroyTimer (TI_HANDLE hTimerInfo)
-{
- TTimerInfo *pTimerInfo = (TTimerInfo *)hTimerInfo; /* The timer handle */
- TTimerModule *pTimerModule; /* The timer module handle */
-
- if (!pTimerInfo)
- {
- return TI_NOK;
- }
- pTimerModule = (TTimerModule *)pTimerInfo->hTimerModule;
- if (!pTimerModule)
- {
- WLAN_OS_REPORT (("tmr_DestroyTimer(): ERROR - NULL timer!\n"));
- return TI_NOK;
- }
-
- /* Free the OS-API timer */
- if (pTimerInfo->hOsTimerObj) {
- os_timerDestroy (pTimerModule->hOs, pTimerInfo->hOsTimerObj);
- pTimerModule->uTimersCount--; /* update created timers number */
- }
- /* Free the timer object */
- os_memoryFree (pTimerModule->hOs, hTimerInfo, sizeof(TTimerInfo));
- return TI_OK;
-}
-
-
-/**
- * \fn tmr_StartTimer
- * \brief Start a timer
- *
- * Start the specified timer running.
- *
- * \note Periodic-Timer may be used by applications that serve the timer expiry
- * in a single context.
- * If an application can't finish serving the timer expiry in a single context,
- * e.g. periodic scan, then it isn't recommended to use the periodic timer service.
- * If such an application uses the periodic timer then it should protect itself from cases
- * where the timer expires again before the previous timer expiry processing is finished!!
- * \param hTimerInfo - The specific timer handle
- * \param fExpiryCbFunc - The timer's expiry callback function.
- * \param hExpiryCbHndl - The client's expiry callback function handle.
- * \param uIntervalMsec - The timer's duration in Msec.
- * \param bPeriodic - If TRUE, the timer is restarted after expiry.
- * \return void
- * \sa tmr_StopTimer, tmr_GetExpiry
- */
-void tmr_StartTimer (TI_HANDLE hTimerInfo,
- TTimerCbFunc fExpiryCbFunc,
- TI_HANDLE hExpiryCbHndl,
- TI_UINT32 uIntervalMsec,
- TI_BOOL bPeriodic)
-{
- TTimerInfo *pTimerInfo = (TTimerInfo *)hTimerInfo; /* The timer handle */
- TTimerModule *pTimerModule = (TTimerModule *)pTimerInfo->hTimerModule; /* The timer module handle */
-
- if (!pTimerModule)
- {
- WLAN_OS_REPORT (("tmr_StartTimer(): ERROR - NULL timer!\n"));
- return;
- }
-
- /* Save the timer parameters. */
- pTimerInfo->fExpiryCbFunc = fExpiryCbFunc;
- pTimerInfo->hExpiryCbHndl = hExpiryCbHndl;
- pTimerInfo->uIntervalMsec = uIntervalMsec;
- pTimerInfo->bPeriodic = bPeriodic;
- pTimerInfo->bOperStateWhenStarted = pTimerModule->bOperState;
- pTimerInfo->uTwdInitCountWhenStarted = pTimerModule->uTwdInitCount;
-
- /* Start OS-API timer running */
- os_timerStart(pTimerModule->hOs, pTimerInfo->hOsTimerObj, uIntervalMsec);
-}
-
-
-/**
- * \fn tmr_StopTimer
- * \brief Stop a running timer
- *
- * Stop the specified timer.
- *
- * \note When using this function, it must be considered that timer expiry may happen
- * right before the timer is stopped, so it can't be assumed that this completely
- * prevents the timer expiry event!
- * \param hTimerInfo - The specific timer handle
- * \return void
- * \sa tmr_StartTimer
- */
-void tmr_StopTimer (TI_HANDLE hTimerInfo)
-{
- TTimerInfo *pTimerInfo = (TTimerInfo *)hTimerInfo; /* The timer handle */
- TTimerModule *pTimerModule = (TTimerModule *)pTimerInfo->hTimerModule; /* The timer module handle */
-
- if (!pTimerModule)
- {
- WLAN_OS_REPORT (("tmr_StopTimer(): ERROR - NULL timer!\n"));
- return;
- }
-
- /* Stop OS-API timer running */
- os_timerStop(pTimerModule->hOs, pTimerInfo->hOsTimerObj);
-
- /* Clear periodic flag to prevent timer restart if we are in tmr_HandleExpiry context. */
- pTimerInfo->bPeriodic = TI_FALSE;
-}
-
-
-/**
- * \fn tmr_GetExpiry
- * \brief Called by OS-API upon any timer expiry
- *
- * This is the common callback function called upon expiartion of any timer.
- * It is called by the OS-API in timer expiry context and handles the transition
- * to the driver's context for handling the expiry event.
- *
- * \note
- * \param hTimerInfo - The specific timer handle
- * \return void
- * \sa tmr_HandleExpiry
- */
-void tmr_GetExpiry (TI_HANDLE hTimerInfo)
-{
- TTimerInfo *pTimerInfo = (TTimerInfo *)hTimerInfo; /* The timer handle */
- TTimerModule *pTimerModule = (TTimerModule *)pTimerInfo->hTimerModule; /* The timer module handle */
-
- if (!pTimerModule)
- {
- WLAN_OS_REPORT (("tmr_GetExpiry(): ERROR - NULL timer!\n"));
- return;
- }
-
- /* Enter critical section */
- context_EnterCriticalSection (pTimerModule->hContext);
-
- /*
- * If the expired timer was started when the driver's state was Operational,
- * insert it to the Operational-queue
- */
- if (pTimerInfo->bOperStateWhenStarted)
- {
- que_Enqueue (pTimerModule->hOperQueue, hTimerInfo);
- }
-
- /*
- * Else (started when driver's state was NOT-Operational), if now the state is still
- * NOT Operational insert it to the Init-queue.
- * (If state changed from non-operational to operational the event is ignored)
- */
- else if (!pTimerModule->bOperState)
- {
- que_Enqueue (pTimerModule->hInitQueue, hTimerInfo);
- }
-
- /* Leave critical section */
- context_LeaveCriticalSection (pTimerModule->hContext);
-
- /* Request switch to driver context for handling timer events */
- context_RequestSchedule (pTimerModule->hContext, pTimerModule->uContextId);
-}
-
-
-/**
- * \fn tmr_HandleExpiry
- * \brief Handles queued expiry events in driver context
- *
- * This is the Timer module's callback that is registered to the ContextEngine module to be invoked
- * from the driver task (after requested by tmr_GetExpiry through context_RequestSchedule ()).
- * It dequeues all expiry events from the queue that correlates to the current driver state,
- * and calls their users callbacks.
- *
- * \note
- * \param hTimerModule - The module object
- * \return void
- * \sa tmr_GetExpiry
- */
-void tmr_HandleExpiry (TI_HANDLE hTimerModule)
-{
- TTimerModule *pTimerModule = (TTimerModule *)hTimerModule; /* The timer module handle */
- TTimerInfo *pTimerInfo; /* The timer handle */
- TI_BOOL bTwdInitOccured; /* Indicates if TWD init occured since timer start */
-
- if (!pTimerModule)
- {
- WLAN_OS_REPORT (("tmr_HandleExpiry(): ERROR - NULL timer!\n"));
- return;
- }
-
- while (1)
- {
- /* Enter critical section */
- context_EnterCriticalSection (pTimerModule->hContext);
-
- /* If current driver state is Operational, dequeue timer object from Operational-queue */
- if (pTimerModule->bOperState)
- {
- pTimerInfo = (TTimerInfo *) que_Dequeue (pTimerModule->hOperQueue);
- }
-
- /* Else (driver state is NOT-Operational), dequeue timer object from Init-queue */
- else
- {
- pTimerInfo = (TTimerInfo *) que_Dequeue (pTimerModule->hInitQueue);
- }
-
- /* Leave critical section */
- context_LeaveCriticalSection (pTimerModule->hContext);
-
- /* If no more objects in queue, exit */
- if (!pTimerInfo)
- {
- return; /** EXIT Point **/
- }
-
- /* If current TWD-Init-Count is different than when the timer was started, Init occured. */
- bTwdInitOccured = (pTimerModule->uTwdInitCount != pTimerInfo->uTwdInitCountWhenStarted);
-
- /* Call specific timer callback function */
- pTimerInfo->fExpiryCbFunc (pTimerInfo->hExpiryCbHndl, bTwdInitOccured);
-
- /* If the expired timer is periodic, start it again. */
- if (pTimerInfo->bPeriodic)
- {
- tmr_StartTimer ((TI_HANDLE)pTimerInfo,
- pTimerInfo->fExpiryCbFunc,
- pTimerInfo->hExpiryCbHndl,
- pTimerInfo->uIntervalMsec,
- pTimerInfo->bPeriodic);
- }
- }
-}
-
-
-/**
- * \fn tmr_PrintModule / tmr_PrintTimer
- * \brief Print module / timer information
- *
- * Print the module's information / a specific timer information.
- *
- * \note
- * \param The module / timer handle
- * \return void
- * \sa
- */
-
-#ifdef TI_DBG
-
-void tmr_PrintModule (TI_HANDLE hTimerModule)
-{
- TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
-
- if (!pTimerModule)
- {
- WLAN_OS_REPORT (("tmr_PrintModule(): ERROR - NULL timer!\n"));
- return;
- }
-
- /* Print module parameters */
- WLAN_OS_REPORT(("tmr_PrintModule(): uContextId=%d, bOperState=%d, uTwdInitCount=%d, uTimersCount=%d\n",
- pTimerModule->uContextId, pTimerModule->bOperState,
- pTimerModule->uTwdInitCount, pTimerModule->uTimersCount));
-
- /* Print Init Queue Info */
- WLAN_OS_REPORT(("tmr_PrintModule(): Init-Queue:\n"));
- que_Print(pTimerModule->hInitQueue);
-
- /* Print Operational Queue Info */
- WLAN_OS_REPORT(("tmr_PrintModule(): Operational-Queue:\n"));
- que_Print(pTimerModule->hOperQueue);
-}
-
-void tmr_PrintTimer (TI_HANDLE hTimerInfo)
-{
-#ifdef REPORT_LOG
- TTimerInfo *pTimerInfo = (TTimerInfo *)hTimerInfo; /* The timer handle */
-
- WLAN_OS_REPORT(("tmr_PrintTimer(): uIntervalMs=%d, bPeriodic=%d, bOperStateWhenStarted=%d, uTwdInitCountWhenStarted=%d, hOsTimerObj=0x%x, fExpiryCbFunc=0x%x\n",
- pTimerInfo->uIntervalMsec, pTimerInfo->bPeriodic, pTimerInfo->bOperStateWhenStarted,
- pTimerInfo->uTwdInitCountWhenStarted, pTimerInfo->hOsTimerObj, pTimerInfo->fExpiryCbFunc));
-#endif
-}
-
-#endif /* TI_DBG */
diff --git a/wl1271/utils/timer.h b/wl1271/utils/timer.h
deleted file mode 100644
index ed48e83..0000000
--- a/wl1271/utils/timer.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * timer.h
- *
- * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-
-/** \file timer.h
- * \brief timer module header file.
- *
- * \see timer.c
- */
-
-#ifndef _TIMER_H_
-#define _TIMER_H_
-
-
-/* The callback function type for timer clients */
-typedef void (*TTimerCbFunc)(TI_HANDLE hCbHndl, TI_BOOL bTwdInitOccured);
-
-
-/* External Functions Prototypes */
-/* ============================= */
-TI_HANDLE tmr_Create (TI_HANDLE hOs);
-TI_STATUS tmr_Destroy (TI_HANDLE hTimerModule);
-TI_STATUS tmr_Free (TI_HANDLE hTimerModule);
-void tmr_ClearInitQueue (TI_HANDLE hTimerModule);
-void tmr_ClearOperQueue (TI_HANDLE hTimerModule);
-void tmr_Init (TI_HANDLE hTimerModule, TI_HANDLE hOs, TI_HANDLE hReport, TI_HANDLE hContext);
-void tmr_UpdateDriverState (TI_HANDLE hTimerModule, TI_BOOL bOperState);
-TI_HANDLE tmr_CreateTimer (TI_HANDLE hTimerModule);
-TI_STATUS tmr_DestroyTimer (TI_HANDLE hTimerInfo);
-void tmr_StartTimer (TI_HANDLE hTimerInfo,
- TTimerCbFunc fExpiryCbFunc,
- TI_HANDLE hExpiryCbHndl,
- TI_UINT32 uIntervalMsec,
- TI_BOOL bPeriodic);
-void tmr_StopTimer (TI_HANDLE hTimerInfo);
-void tmr_GetExpiry (TI_HANDLE hTimerInfo);
-void tmr_HandleExpiry (TI_HANDLE hTimerModule);
-
-#ifdef TI_DBG
-void tmr_PrintModule (TI_HANDLE hTimerModule);
-void tmr_PrintTimer (TI_HANDLE hTimerInfo);
-#endif /* TI_DBG */
-
-
-#endif /* _TIMER_H_ */
-
-
diff --git a/wl1271/utils/version.h b/wl1271/utils/version.h
deleted file mode 100644
index 4f0f058..0000000
--- a/wl1271/utils/version.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * version.h
- *
- * Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name Texas Instruments nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/**************************************************************************/
-/* */
-/* MODULE: version.h */
-/* PURPOSE: release specific definitions file. */
-/* */
-/**************************************************************************/
-
-
-#ifndef _VERSION_H_
-#define _VERSION_H_
-
-#define SW_VERSION_STR "WiLink_Driver_6.1.0.0.131"
-
-#define SW_RELEASE_MONTH 03
-#define SW_RELEASE_DAY 21
-#define SW_RELEASE_YEAR 2010
-
-#endif /* _VERSION_H_ */
-
-