/****************************************************************************
**+-----------------------------------------------------------------------+**
**| |**
**| Copyright(c) 1998 - 2008 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: Tx.c */
/* PURPOSE: Tx module functions */
/* */
/***************************************************************************/
#include "osTIType.h"
#include "paramIn.h"
#include "paramOut.h"
#include "osApi.h"
#include "tx.h"
#include "DataCtrl_Api.h"
#include "siteMgrApi.h"
#include "802_11Defs.h"
#include "Ethernet.h"
/* GWSI_LAYER */
#include "Core_AdaptTx.h"
#include "memMngrEx.h"
#include "report.h"
#include "utils.h"
#include "measurementMgrApi.h"
#include "TI_IPC_Api.h"
#include "EvHandler.h"
#include "qosMngr_API.h"
#include "PowerMgr_API.h"
#include "bufferPoolApi.h"
#include "TNETW_Driver_api.h"
/*
This is an Ethernet Version 2 frame:
+--------------+
| | The destination address is a six byte Media Access
| Destination | Control (MAC) address, usually burned into the
| 6 bytes | ROM of the Ethernet card.
+--------------+
| | The source address is a six byte MAC address, and
| Source | can signify a physical station or a broadcast.
| 6 bytes |
+--------------+
| Type | The Type field it must be grater then 1500 dec.
| 2 bytes |
+--------------+
| | Any higher layer information is placed in the
| Data | data field, which could contain protocol
| | information or user data.
~ ~
~ ~
| 46 to 1500 |
| bytes |
| |
+--------------+
| FCS |
| 4 bytes |
+--------------+
*/
/*
802.2 SNAP DATA Frame
+----------------+
| |
| Destination |
| 6 bytes |
+----------------+
| |
| Source |
| 6 bytes |
+----------------+
| Frame Length | Must be <= 1500 Dec.
| 2 bytes |
+----------------+
| DSAP - 1 byte | = 0xAA ( SNAP )
+----------------+
| SSAP - 1 byte | = 0xAA ( SNAP )
+----------------+
|Control - 1 byte| = 0x03
+----------------+
| OUI - 3 bytes | = 0x0
| |
+----------------+
| Type - 2 bytes | = Ethernet type (IP=0x0800)
+----------------+
| |
| Data |
| |
~ ~
~ ~
| 46 to 1500 |
| bytes |
| |
+----------------+
| FCS |
| 4 bytes |
+----------------+
802.11 DATA Frame
+----------------+
| |
| Frame Control |
| 2 bytes |
+----------------+
| |
| Duration ID |
| 2 bytes |
+----------------+
| |
| Address 1 |
| 6 bytes |
+----------------+
| |
| Address 2 |
| 6 bytes |
+----------------+
| |
| Address 3 |
| 6 bytes |
+----------------+
| |
| Sequence Cntrl |
| 2 bytes |
+----------------+
| |
| Address 4 |
| 6 bytes |
+----------------+
| DSAP - 1 byte | = 0xAA ( SNAP )
+----------------+
| SSAP - 1 byte | = 0xAA ( SNAP )
+----------------+
|Control - 1 byte| = 0x03
+----------------+
| OUI - 3 bytes | = 0x0
| |
+----------------+
| Type - 2 bytes | = Ethernet type (IP=0x0800)
+----------------+
| |
| Data |
| |
~ ~
~ ~
| 46 to 1500 |
| bytes |
| |
+----------------+
| FCS |
| 4 bytes |
+----------------+
*/
/* Tx queue selection definitions */
#define Q_LEAST_WEIGHT 0xFFFFFFFF /* Use least possible weight as init value (highest value is lowest priority). */
#define Q_SELECTION_HISTORY_LEVEL 5 /* Count down from this value if queue is selected to Tx. */
#define MANAGEMENT_QUEUE_SIZE 16
#define DEFAULT_QUEUE_TO_HAL 1
#define EAPOL_PACKET 0x8E88
/* defined in QosMngr.c - used to update QosControl (userPriority) of a given packet after it has been "downgraded" due to admission control */
extern UINT8 wmeAcToUpIndex[MAX_NUM_OF_AC];
/* defined in qosMngr.c - used to identify voice packets in NON QOS APs */
extern int WMEQosTagToACTable[MAX_NUM_OF_802_1d_TAGS];
/* this macro accesses the WME Tag-to-AC conversion array in order to enable identifying voice packets even on NON QOS APs */
#define GET_WME_AC_TYPE_FROM_M
tx.rar_TX driver_dirver for tx
版权申诉
8 浏览量
2022-09-14
21:00:40
上传
评论
收藏 32KB RAR 举报
朱moyimi
- 粉丝: 65
- 资源: 1万+
最新资源
- 整站程序三雷11种语言建站系统(网络版) v6.0-30tnetwork
- SpringBoot集成mqtt上下线提醒功能设计
- 整站程序情感家园站 v3.0 For 个人版-qgweb30fp.zip
- 整站程序清风千年整站系统 V5.0 (附PSD源文件)-qfkzweb-free5-php5-gbk.zip
- 360数字安全:2024年1月勒索软件流行态势分析报告
- Java 课程管理系统项目源代码(可做毕设项目参考)
- Java 电力计费系统项目源代码(可做毕设项目参考)
- 图书馆管理-文华学院的报告+代码+visio图
- 基于 PHP 开发的线上网校系统 支持线上点播 - 知识付费 - 网校装修 - 数据统计 - 会员模块 - 角色管理等丰富功能
- Java 航空预订系统项目源代码(可做毕设项目参考)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈