资源简介
wifi rt3070 驱动源代码 可以下载进行交叉编译用在android平台上。
代码片段和文件信息
/*
*************************************************************************
* Ralink Tech Inc.
* 5F. No.36 Taiyuan St. Jhubei City
* Hsinchu County 302
* Taiwan R.O.C.
*
* (c) Copyright 2002-2010 Ralink Technology Inc.
*
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not write to the *
* Free Software Foundation Inc. *
* 59 Temple Place - Suite 330 Boston MA 02111-1307 USA. *
* *
*************************************************************************/
#ifdef RT28xx
#include “rt_config.h“
VOID RT28xx_ChipSwitchChannel(
IN PRTMP_ADAPTER pAd
IN UCHAR Channel
IN BOOLEAN bScan)
{
CHAR TxPwer = 0 TxPwer2 = DEFAULT_RF_TX_POWER; /*Bbp94 = BBPR94_DEFAULT TxPwer2 = DEFAULT_RF_TX_POWER;*/
UCHAR index;
UINT32 Value = 0; /*BbpReg Value;*/
UCHAR RFValue;
UINT32 i = 0;
ULONG R2 = 0 R3 = DEFAULT_RF_TX_POWER R4 = 0;
RTMP_RF_REGS *RFRegTable;
i = i; /* avoid compile warning */
RFValue = 0;
/* Search Tx power value*/
/*
We can‘t use ChannelList to search channel since some central channl‘s txpowr doesn‘t list
in ChannelList so use TxPower array instead.
*/
for (index = 0; index < MAX_NUM_OF_CHANNELS; index++)
{
if (Channel == pAd->TxPower[index].Channel)
{
TxPwer = pAd->TxPower[index].Power;
TxPwer2 = pAd->TxPower[index].Power2;
break;
}
}
if (index == MAX_NUM_OF_CHANNELS)
{
DBGPRINT(RT_DEBUG_ERROR (“AsicSwitchChannel: Can‘t find the Channel#%d \n“ Channel));
}
RFRegTable = RF2850RegTable;
switch (pAd->RfIcType)
{
case RFIC_2820:
case RFIC_2850:
case RFIC_2720:
case RFIC_2750:
for (index = 0; index < NUM_OF_2850_CHNL; index++)
{
if (Channel == RFRegTable[index].Channel)
{
R2 = RFRegTable[index].R2;
if (pAd->Antenna.field.TxPath == 1)
{
R2 |= 0x4000; /*If TXpath is 1 bit 14 = 1;*/
}
if ((pAd->Antenna.field.RxPath == 2)
)
{
R2 |= 0x40; /*write 1 to off Rxpath.*/
}
else if ((pAd->Antenna.field.RxPath == 1)
)
{
R2 |= 0x20040
- 上一篇:图书管理系统-Java-大作业
- 下一篇:酒店管理系统JAVA源代码245552
相关资源
- java代码在window获取linux文件
- jira6.3汉化包
- SELinux_Treble.pdf (Android8.0 sepolicy权限新
- 二次开发linux必备视频通话源码
- java环境下的Redis的jar包与Linux版本的
- zkui 构建成功后的jar包
- opencv-linux-x86_64.jar
- linux版本libevent和memcached(附带安装教
- FastDFS相应的源码包以及安装教程Lin
- JNA-Linux下java程序调用so库接口函数
- Linux系统安装区块链以太坊服务go-et
- Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线
- SecureCRT连接android机顶盒或linux远程服
- Linux的aapt工具包
- 操作系统概念Linux虚拟机及源代码
- Kali Linux NetHunter基础教程.pdf
- linux和windows实现word转pdf
- tomcat7linux版本
- 华为linux驱动集成指导.rar
- AP6255-AP6256固件及android linux版本兼容
- protoc-3.9.1-linux-x86_64.zip
- libsodium中文版本
- 华农Linux系统及程序设计实验全部代码
- 开源STM32F4xx自定义USB数据传输,支持
- sigar监控linux服务器
- Java通过ganymed-ssh2-build210.jar实现SSH远程
- Linux驱动开发 file_operations ioctl read
- 在linux环境下通过java代码操作串口,
- mipsel-linux-android-4.9windows-64位
- RIoTboard开发板资料手册、映像、源码
评论
共有 条评论