192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond/* 292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. 392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * All rights reserved. 492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * This program is free software; you can redistribute it and/or modify 692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * it under the terms of the GNU General Public License as published by 792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * the Free Software Foundation; either version 2 of the License, or 892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * (at your option) any later version. 992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 1092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * This program is distributed in the hope that it will be useful, 1192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * but WITHOUT ANY WARRANTY; without even the implied warranty of 1292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * GNU General Public License for more details. 1492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 1592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * You should have received a copy of the GNU General Public License along 1692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * with this program; if not, write to the Free Software Foundation, Inc., 1792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 1892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 1992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 2092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * File: rf.c 2192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 2292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Purpose: rf function code 2392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 2492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Author: Jerry Chen 2592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 2692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Date: Feb. 19, 2004 2792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 2892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Functions: 2992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * IFRFbWriteEmbeded - Embeded write RF register via MAC 3092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 3192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Revision History: 3292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 3392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond */ 3492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 3592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#include "mac.h" 3692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#include "rf.h" 3792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#include "baseband.h" 3892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#include "control.h" 3992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#include "rndis.h" 4092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#include "datarate.h" 4192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 4292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bondstatic int msglevel =MSG_LEVEL_INFO; 4392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond//static int msglevel =MSG_LEVEL_DEBUG; 4492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond/*--------------------- Static Definitions -------------------------*/ 4592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#define BY_AL2230_REG_LEN 23 //24bit 4692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#define CB_AL2230_INIT_SEQ 15 4792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#define AL2230_PWR_IDX_LEN 64 4892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 4992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#define BY_AL7230_REG_LEN 23 //24bit 5092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#define CB_AL7230_INIT_SEQ 16 5192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#define AL7230_PWR_IDX_LEN 64 5292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 5392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond//{{RobertYu:20051111 5492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#define BY_VT3226_REG_LEN 23 5592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#define CB_VT3226_INIT_SEQ 11 5692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#define VT3226_PWR_IDX_LEN 64 5792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond//}} 5892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 5992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond//{{RobertYu:20060609 6092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#define BY_VT3342_REG_LEN 23 6192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#define CB_VT3342_INIT_SEQ 13 6292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond#define VT3342_PWR_IDX_LEN 64 6392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond//}} 6492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 6592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond/*--------------------- Static Classes ----------------------------*/ 6692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 6792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond/*--------------------- Static Variables --------------------------*/ 6892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 6992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 7092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 7192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 7292b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyAL2230InitTable[CB_AL2230_INIT_SEQ][3] = { 7392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xF7, 0x90}, 7492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x33, 0x31}, 7592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0xB8, 0x02}, 7692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0xFF, 0xF3}, 7792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x05, 0xA4}, 7892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0F, 0x4D, 0xC5}, //RobertYu:20060814 7992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x08, 0x05, 0xB6}, 8092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x47, 0xC7}, 8192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x06, 0x88}, 8292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x04, 0x03, 0xB9}, 8392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0xDB, 0xBA}, 8492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x09, 0x9B}, 8592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0B, 0xDF, 0xFC}, 8692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x0D}, 8792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x58, 0x0F} 8892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 8992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 9092b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyAL2230ChannelTable0[CB_MAX_CHANNEL_24G][3] = { 9192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xF7, 0x90}, // channel = 1, Tf = 2412MHz 9292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xF7, 0x90}, // channel = 2, Tf = 2417MHz 9392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xE7, 0x90}, // channel = 3, Tf = 2422MHz 9492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xE7, 0x90}, // channel = 4, Tf = 2427MHz 9592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xF7, 0xA0}, // channel = 5, Tf = 2432MHz 9692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xF7, 0xA0}, // channel = 6, Tf = 2437MHz 9792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xE7, 0xA0}, // channel = 7, Tf = 2442MHz 9892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xE7, 0xA0}, // channel = 8, Tf = 2447MHz 9992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xF7, 0xB0}, // channel = 9, Tf = 2452MHz 10092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xF7, 0xB0}, // channel = 10, Tf = 2457MHz 10192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xE7, 0xB0}, // channel = 11, Tf = 2462MHz 10292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xE7, 0xB0}, // channel = 12, Tf = 2467MHz 10392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xF7, 0xC0}, // channel = 13, Tf = 2472MHz 10492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xE7, 0xC0} // channel = 14, Tf = 2412M 10592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 10692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 10792b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyAL2230ChannelTable1[CB_MAX_CHANNEL_24G][3] = { 10892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x33, 0x31}, // channel = 1, Tf = 2412MHz 10992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0B, 0x33, 0x31}, // channel = 2, Tf = 2417MHz 11092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x33, 0x31}, // channel = 3, Tf = 2422MHz 11192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0B, 0x33, 0x31}, // channel = 4, Tf = 2427MHz 11292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x33, 0x31}, // channel = 5, Tf = 2432MHz 11392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0B, 0x33, 0x31}, // channel = 6, Tf = 2437MHz 11492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x33, 0x31}, // channel = 7, Tf = 2442MHz 11592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0B, 0x33, 0x31}, // channel = 8, Tf = 2447MHz 11692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x33, 0x31}, // channel = 9, Tf = 2452MHz 11792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0B, 0x33, 0x31}, // channel = 10, Tf = 2457MHz 11892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x33, 0x31}, // channel = 11, Tf = 2462MHz 11992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0B, 0x33, 0x31}, // channel = 12, Tf = 2467MHz 12092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x33, 0x31}, // channel = 13, Tf = 2472MHz 12192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x06, 0x66, 0x61} // channel = 14, Tf = 2412M 12292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 12392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 12492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond// 40MHz reference frequency 12592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond// Need to Pull PLLON(PE3) low when writing channel registers through 3-wire. 12692b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyAL7230InitTable[CB_AL7230_INIT_SEQ][3] = { 12792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0x90}, // Channel1 // Need modify for 11a 12892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x13, 0x33, 0x31}, // Channel1 // Need modify for 11a 12992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x84, 0x1F, 0xF2}, // Need modify for 11a: 451FE2 13092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x3F, 0xDF, 0xA3}, // Need modify for 11a: 5FDFA3 13192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // 11b/g // Need modify for 11a 13292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond //0x802B4500+(BY_AL7230_REG_LEN<<3)+IFREGCTL_REGW, // Need modify for 11a: 8D1B45 13392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // RoberYu:20050113, Rev0.47 Regsiter Setting Guide 13492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x80, 0x2B, 0x55}, // Need modify for 11a: 8D1B55 13592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x56, 0xAF, 0x36}, 13692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0xCE, 0x02, 0x07}, // Need modify for 11a: 860207 13792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x6E, 0xBC, 0x98}, 13892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x22, 0x1B, 0xB9}, 13992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0xE0, 0x00, 0x0A}, // Need modify for 11a: E0600A 14092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x08, 0x03, 0x1B}, // init 0x080B1B00 => 0x080F1B00 for 3 wire control TxGain(D10) 14192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond //0x00093C00+(BY_AL7230_REG_LEN<<3)+IFREGCTL_REGW, // Need modify for 11a: 00143C 14292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // RoberYu:20050113, Rev0.47 Regsiter Setting Guide 14392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x0A, 0x3C}, // Need modify for 11a: 00143C 14492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0xFF, 0xFF, 0xFD}, 14592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x0E}, 14692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x1A, 0xBA, 0x8F} // Need modify for 11a: 12BACF 14792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 14892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 14992b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyAL7230InitTableAMode[CB_AL7230_INIT_SEQ][3] = { 15092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x20}, // Channel184 // Need modify for 11b/g 15192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x01}, // Channel184 // Need modify for 11b/g 15292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x45, 0x1F, 0xE2}, // Need modify for 11b/g 15392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x5F, 0xDF, 0xA3}, // Need modify for 11b/g 15492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x6F, 0xD7, 0x84}, // 11a // Need modify for 11b/g 15592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x85, 0x3F, 0x55}, // Need modify for 11b/g, RoberYu:20050113 15692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x56, 0xAF, 0x36}, 15792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0xCE, 0x02, 0x07}, // Need modify for 11b/g 15892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x6E, 0xBC, 0x98}, 15992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x22, 0x1B, 0xB9}, 16092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0xE0, 0x60, 0x0A}, // Need modify for 11b/g 16192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x08, 0x03, 0x1B}, // init 0x080B1B00 => 0x080F1B00 for 3 wire control TxGain(D10) 16292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x14, 0x7C}, // Need modify for 11b/g 16392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0xFF, 0xFF, 0xFD}, 16492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x0E}, 16592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x12, 0xBA, 0xCF} // Need modify for 11b/g 16692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 16792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 16892b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyAL7230ChannelTable0[CB_MAX_CHANNEL][3] = { 16992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0x90}, // channel = 1, Tf = 2412MHz 17092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0x90}, // channel = 2, Tf = 2417MHz 17192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0x90}, // channel = 3, Tf = 2422MHz 17292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0x90}, // channel = 4, Tf = 2427MHz 17392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0xA0}, // channel = 5, Tf = 2432MHz 17492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0xA0}, // channel = 6, Tf = 2437MHz 17592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0xA0}, // channel = 7, Tf = 2442MHz 17692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0xA0}, // channel = 8, Tf = 2447MHz //RobertYu: 20050218, update for APNode 0.49 17792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0xB0}, // channel = 9, Tf = 2452MHz //RobertYu: 20050218, update for APNode 0.49 17892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0xB0}, // channel = 10, Tf = 2457MHz //RobertYu: 20050218, update for APNode 0.49 17992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0xB0}, // channel = 11, Tf = 2462MHz //RobertYu: 20050218, update for APNode 0.49 18092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0xB0}, // channel = 12, Tf = 2467MHz //RobertYu: 20050218, update for APNode 0.49 18192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0xC0}, // channel = 13, Tf = 2472MHz //RobertYu: 20050218, update for APNode 0.49 18292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x20, 0x37, 0xC0}, // channel = 14, Tf = 2484MHz 18392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 18492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 4.9G => Ch 183, 184, 185, 187, 188, 189, 192, 196 (Value:15 ~ 22) 18592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0F, 0xF5, 0x20}, // channel = 183, Tf = 4915MHz (15) 18692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x20}, // channel = 184, Tf = 4920MHz (16) 18792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0F, 0xF5, 0x20}, // channel = 185, Tf = 4925MHz (17) 18892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0F, 0xF5, 0x20}, // channel = 187, Tf = 4935MHz (18) 18992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x20}, // channel = 188, Tf = 4940MHz (19) 19092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0F, 0xF5, 0x20}, // channel = 189, Tf = 4945MHz (20) 19192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x30}, // channel = 192, Tf = 4960MHz (21) 19292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x30}, // channel = 196, Tf = 4980MHz (22) 19392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 19492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 5G => Ch 7, 8, 9, 11, 12, 16, 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64, 19592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 (Value 23 ~ 56) 19692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 19792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0F, 0xF5, 0x40}, // channel = 7, Tf = 5035MHz (23) 19892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x40}, // channel = 8, Tf = 5040MHz (24) 19992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0F, 0xF5, 0x40}, // channel = 9, Tf = 5045MHz (25) 20092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0F, 0xF5, 0x40}, // channel = 11, Tf = 5055MHz (26) 20192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x40}, // channel = 12, Tf = 5060MHz (27) 20292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x50}, // channel = 16, Tf = 5080MHz (28) 20392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x60}, // channel = 34, Tf = 5170MHz (29) 20492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x60}, // channel = 36, Tf = 5180MHz (30) 20592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x70}, // channel = 38, Tf = 5190MHz (31) //RobertYu: 20050218, update for APNode 0.49 20692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x70}, // channel = 40, Tf = 5200MHz (32) 20792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x70}, // channel = 42, Tf = 5210MHz (33) 20892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x70}, // channel = 44, Tf = 5220MHz (34) 20992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x70}, // channel = 46, Tf = 5230MHz (35) 21092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x70}, // channel = 48, Tf = 5240MHz (36) 21192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x80}, // channel = 52, Tf = 5260MHz (37) 21292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x80}, // channel = 56, Tf = 5280MHz (38) 21392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x80}, // channel = 60, Tf = 5300MHz (39) 21492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0x90}, // channel = 64, Tf = 5320MHz (40) 21592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 21692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0xC0}, // channel = 100, Tf = 5500MHz (41) 21792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0xC0}, // channel = 104, Tf = 5520MHz (42) 21892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0xC0}, // channel = 108, Tf = 5540MHz (43) 21992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0xD0}, // channel = 112, Tf = 5560MHz (44) 22092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0xD0}, // channel = 116, Tf = 5580MHz (45) 22192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0xD0}, // channel = 120, Tf = 5600MHz (46) 22292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0xE0}, // channel = 124, Tf = 5620MHz (47) 22392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0xE0}, // channel = 128, Tf = 5640MHz (48) 22492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0xE0}, // channel = 132, Tf = 5660MHz (49) 22592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0xF0}, // channel = 136, Tf = 5680MHz (50) 22692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF5, 0xF0}, // channel = 140, Tf = 5700MHz (51) 22792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF6, 0x00}, // channel = 149, Tf = 5745MHz (52) 22892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF6, 0x00}, // channel = 153, Tf = 5765MHz (53) 22992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF6, 0x00}, // channel = 157, Tf = 5785MHz (54) 23092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF6, 0x10}, // channel = 161, Tf = 5805MHz (55) 23192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x2F, 0xF6, 0x10} // channel = 165, Tf = 5825MHz (56) 23292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 23392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 23492b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyAL7230ChannelTable1[CB_MAX_CHANNEL][3] = { 23592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x13, 0x33, 0x31}, // channel = 1, Tf = 2412MHz 23692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x1B, 0x33, 0x31}, // channel = 2, Tf = 2417MHz 23792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x33, 0x31}, // channel = 3, Tf = 2422MHz 23892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0B, 0x33, 0x31}, // channel = 4, Tf = 2427MHz 23992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x13, 0x33, 0x31}, // channel = 5, Tf = 2432MHz 24092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x1B, 0x33, 0x31}, // channel = 6, Tf = 2437MHz 24192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x33, 0x31}, // channel = 7, Tf = 2442MHz 24292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0B, 0x33, 0x31}, // channel = 8, Tf = 2447MHz 24392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x13, 0x33, 0x31}, // channel = 9, Tf = 2452MHz 24492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x1B, 0x33, 0x31}, // channel = 10, Tf = 2457MHz 24592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x33, 0x31}, // channel = 11, Tf = 2462MHz 24692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0B, 0x33, 0x31}, // channel = 12, Tf = 2467MHz 24792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x13, 0x33, 0x31}, // channel = 13, Tf = 2472MHz 24892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x06, 0x66, 0x61}, // channel = 14, Tf = 2484MHz 24992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 25092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 4.9G => Ch 183, 184, 185, 187, 188, 189, 192, 196 (Value:15 ~ 22) 25192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x1D, 0x55, 0x51}, // channel = 183, Tf = 4915MHz (15) 25292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x01}, // channel = 184, Tf = 4920MHz (16) 25392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA1}, // channel = 185, Tf = 4925MHz (17) 25492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x08, 0x00, 0x01}, // channel = 187, Tf = 4935MHz (18) 25592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0A, 0xAA, 0xA1}, // channel = 188, Tf = 4940MHz (19) 25692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0D, 0x55, 0x51}, // channel = 189, Tf = 4945MHz (20) 25792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x15, 0x55, 0x51}, // channel = 192, Tf = 4960MHz (21) 25892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x01}, // channel = 196, Tf = 4980MHz (22) 25992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 26092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 5G => Ch 7, 8, 9, 11, 12, 16, 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64, 26192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 (Value 23 ~ 56) 26292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x1D, 0x55, 0x51}, // channel = 7, Tf = 5035MHz (23) 26392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x01}, // channel = 8, Tf = 5040MHz (24) 26492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA1}, // channel = 9, Tf = 5045MHz (25) 26592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x08, 0x00, 0x01}, // channel = 11, Tf = 5055MHz (26) 26692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0A, 0xAA, 0xA1}, // channel = 12, Tf = 5060MHz (27) 26792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x15, 0x55, 0x51}, // channel = 16, Tf = 5080MHz (28) 26892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x05, 0x55, 0x51}, // channel = 34, Tf = 5170MHz (29) 26992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0A, 0xAA, 0xA1}, // channel = 36, Tf = 5180MHz (30) 27092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x10, 0x00, 0x01}, // channel = 38, Tf = 5190MHz (31) 27192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x15, 0x55, 0x51}, // channel = 40, Tf = 5200MHz (32) 27292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x1A, 0xAA, 0xA1}, // channel = 42, Tf = 5210MHz (33) 27392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x01}, // channel = 44, Tf = 5220MHz (34) 27492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x05, 0x55, 0x51}, // channel = 46, Tf = 5230MHz (35) 27592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0A, 0xAA, 0xA1}, // channel = 48, Tf = 5240MHz (36) 27692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x15, 0x55, 0x51}, // channel = 52, Tf = 5260MHz (37) 27792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x01}, // channel = 56, Tf = 5280MHz (38) 27892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0A, 0xAA, 0xA1}, // channel = 60, Tf = 5300MHz (39) 27992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x15, 0x55, 0x51}, // channel = 64, Tf = 5320MHz (40) 28092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x15, 0x55, 0x51}, // channel = 100, Tf = 5500MHz (41) 28192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x01}, // channel = 104, Tf = 5520MHz (42) 28292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0A, 0xAA, 0xA1}, // channel = 108, Tf = 5540MHz (43) 28392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x15, 0x55, 0x51}, // channel = 112, Tf = 5560MHz (44) 28492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x01}, // channel = 116, Tf = 5580MHz (45) 28592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0A, 0xAA, 0xA1}, // channel = 120, Tf = 5600MHz (46) 28692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x15, 0x55, 0x51}, // channel = 124, Tf = 5620MHz (47) 28792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x01}, // channel = 128, Tf = 5640MHz (48) 28892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0A, 0xAA, 0xA1}, // channel = 132, Tf = 5660MHz (49) 28992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x15, 0x55, 0x51}, // channel = 136, Tf = 5680MHz (50) 29092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x01}, // channel = 140, Tf = 5700MHz (51) 29192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x18, 0x00, 0x01}, // channel = 149, Tf = 5745MHz (52) 29292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA1}, // channel = 153, Tf = 5765MHz (53) 29392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x0D, 0x55, 0x51}, // channel = 157, Tf = 5785MHz (54) 29492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x18, 0x00, 0x01}, // channel = 161, Tf = 5805MHz (55) 29592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xB1} // channel = 165, Tf = 5825MHz (56) 29692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 29792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 29892b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyAL7230ChannelTable2[CB_MAX_CHANNEL][3] = { 29992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 1, Tf = 2412MHz 30092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 2, Tf = 2417MHz 30192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 3, Tf = 2422MHz 30292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 4, Tf = 2427MHz 30392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 5, Tf = 2432MHz 30492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 6, Tf = 2437MHz 30592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 7, Tf = 2442MHz 30692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 8, Tf = 2447MHz 30792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 9, Tf = 2452MHz 30892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 10, Tf = 2457MHz 30992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 11, Tf = 2462MHz 31092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 12, Tf = 2467MHz 31192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 13, Tf = 2472MHz 31292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 14, Tf = 2484MHz 31392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 31492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 4.9G => Ch 183, 184, 185, 187, 188, 189, 192, 196 (Value:15 ~ 22) 31592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 183, Tf = 4915MHz (15) 31692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x6F, 0xD7, 0x84}, // channel = 184, Tf = 4920MHz (16) 31792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 185, Tf = 4925MHz (17) 31892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 187, Tf = 4935MHz (18) 31992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 188, Tf = 4940MHz (19) 32092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 189, Tf = 4945MHz (20) 32192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 192, Tf = 4960MHz (21) 32292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x6F, 0xD7, 0x84}, // channel = 196, Tf = 4980MHz (22) 32392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 32492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 5G => Ch 7, 8, 9, 11, 12, 16, 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64, 32592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 (Value 23 ~ 56) 32692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 7, Tf = 5035MHz (23) 32792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x6F, 0xD7, 0x84}, // channel = 8, Tf = 5040MHz (24) 32892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 9, Tf = 5045MHz (25) 32992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 11, Tf = 5055MHz (26) 33092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 12, Tf = 5060MHz (27) 33192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 16, Tf = 5080MHz (28) 33292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 34, Tf = 5170MHz (29) 33392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 36, Tf = 5180MHz (30) 33492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 38, Tf = 5190MHz (31) 33592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 40, Tf = 5200MHz (32) 33692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 42, Tf = 5210MHz (33) 33792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x6F, 0xD7, 0x84}, // channel = 44, Tf = 5220MHz (34) 33892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 46, Tf = 5230MHz (35) 33992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 48, Tf = 5240MHz (36) 34092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 52, Tf = 5260MHz (37) 34192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x6F, 0xD7, 0x84}, // channel = 56, Tf = 5280MHz (38) 34292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 60, Tf = 5300MHz (39) 34392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 64, Tf = 5320MHz (40) 34492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 100, Tf = 5500MHz (41) 34592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x6F, 0xD7, 0x84}, // channel = 104, Tf = 5520MHz (42) 34692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 108, Tf = 5540MHz (43) 34792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 112, Tf = 5560MHz (44) 34892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x6F, 0xD7, 0x84}, // channel = 116, Tf = 5580MHz (45) 34992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 120, Tf = 5600MHz (46) 35092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 124, Tf = 5620MHz (47) 35192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x6F, 0xD7, 0x84}, // channel = 128, Tf = 5640MHz (48) 35292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 132, Tf = 5660MHz (49) 35392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 136, Tf = 5680MHz (50) 35492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x6F, 0xD7, 0x84}, // channel = 140, Tf = 5700MHz (51) 35592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 149, Tf = 5745MHz (52) 35692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 153, Tf = 5765MHz (53) 35792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 157, Tf = 5785MHz (54) 35892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84}, // channel = 161, Tf = 5805MHz (55) 35992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x7F, 0xD7, 0x84} // channel = 165, Tf = 5825MHz (56) 36092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 36192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 36292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond///{{RobertYu:20051111 36392b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyVT3226_InitTable[CB_VT3226_INIT_SEQ][3] = { 36492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xFF, 0x80}, 36592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x82, 0xA1}, 36692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xC6, 0xA2}, 36792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0x93}, 36892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x66, 0x64}, 36992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x61, 0xA5}, 37092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x7B, 0xD6}, 37192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x80, 0x17}, 37292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xF8, 0x08}, 37392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x02, 0x39}, //RobertYu:20051116 37492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x00, 0x2A} 37592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 37692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 37792b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyVT3226D0_InitTable[CB_VT3226_INIT_SEQ][3] = { 37892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xFF, 0x80}, 37992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x02, 0x21}, //RobertYu:20060327 38092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xC6, 0xA2}, 38192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0x93}, 38292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x66, 0x64}, 38392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x71, 0xA5}, //RobertYu:20060103 38492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0xC6}, //RobertYu:20060420 38592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x2E, 0x07}, //RobertYu:20060420 38692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x58, 0x08}, //RobertYu:20060111 38792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x02, 0x79}, //RobertYu:20060420 38892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x01, 0xAA} //RobertYu:20060523 38992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 39092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 39192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 39292b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyVT3226_ChannelTable0[CB_MAX_CHANNEL_24G][3] = { 39392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0x83}, // channel = 1, Tf = 2412MHz 39492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0x83}, // channel = 2, Tf = 2417MHz 39592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0x93}, // channel = 3, Tf = 2422MHz 39692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0x93}, // channel = 4, Tf = 2427MHz 39792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0x93}, // channel = 5, Tf = 2432MHz 39892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0x93}, // channel = 6, Tf = 2437MHz 39992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0xA3}, // channel = 7, Tf = 2442MHz 40092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0xA3}, // channel = 8, Tf = 2447MHz 40192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0xA3}, // channel = 9, Tf = 2452MHz 40292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0xA3}, // channel = 10, Tf = 2457MHz 40392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0xB3}, // channel = 11, Tf = 2462MHz 40492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0xB3}, // channel = 12, Tf = 2467MHz 40592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x97, 0xB3}, // channel = 13, Tf = 2472MHz 40692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x37, 0xC3} // channel = 14, Tf = 2484MHz 40792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 40892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 40992b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyVT3226_ChannelTable1[CB_MAX_CHANNEL_24G][3] = { 41092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x66, 0x64}, // channel = 1, Tf = 2412MHz 41192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x66, 0x64}, // channel = 2, Tf = 2417MHz 41292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x66, 0x64}, // channel = 3, Tf = 2422MHz 41392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x66, 0x64}, // channel = 4, Tf = 2427MHz 41492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x66, 0x64}, // channel = 5, Tf = 2432MHz 41592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x66, 0x64}, // channel = 6, Tf = 2437MHz 41692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x66, 0x64}, // channel = 7, Tf = 2442MHz 41792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x66, 0x64}, // channel = 8, Tf = 2447MHz 41892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x66, 0x64}, // channel = 9, Tf = 2452MHz 41992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x66, 0x64}, // channel = 10, Tf = 2457MHz 42092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x66, 0x64}, // channel = 11, Tf = 2462MHz 42192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x66, 0x64}, // channel = 12, Tf = 2467MHz 42292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x66, 0x64}, // channel = 13, Tf = 2472MHz 42392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0xCC, 0xC4} // channel = 14, Tf = 2484MHz 42492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 42592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond///}}RobertYu 42692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 42792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 42892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond//{{RobertYu:20060502, TWIF 1.14, LO Current for 11b mode 42992b96797118e5836294a6d42a5a8e10b86f50e3fForest BondDWORD dwVT3226D0LoCurrentTable[CB_MAX_CHANNEL_24G] = { 43092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0135C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 1, Tf = 2412MHz 43192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0135C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 2, Tf = 2417MHz 43292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0235C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 3, Tf = 2422MHz 43392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0235C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 4, Tf = 2427MHz 43492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0235C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 5, Tf = 2432MHz 43592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0335C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 6, Tf = 2437MHz 43692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0335C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 7, Tf = 2442MHz 43792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0335C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 8, Tf = 2447MHz 43892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0335C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 9, Tf = 2452MHz 43992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0335C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 10, Tf = 2457MHz 44092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0335C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 11, Tf = 2462MHz 44192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0335C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 12, Tf = 2467MHz 44292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0335C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW, // channel = 13, Tf = 2472MHz 44392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0135C600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW // channel = 14, Tf = 2484MHz 44492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond}; 44592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond//}} 44692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 44792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 44892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond//{{RobertYu:20060609 44992b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyVT3342A0_InitTable[CB_VT3342_INIT_SEQ][3] = { // 11b/g mode 45092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xFF, 0x80}, //update for mode// 45192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x08, 0x81}, 45292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0xC6, 0x02}, 45392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xC5, 0x13}, // channel6 45492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0xEE, 0xE4}, // channel6 45592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x71, 0xA5}, 45692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x75, 0x46}, 45792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x40, 0x27}, 45892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x54, 0x08}, 45992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x01, 0x69}, 46092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x00, 0xAA}, 46192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x08, 0xCB}, 46292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x70, 0x0C} 46392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 46492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 46592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond //11b/g mode: 0x03, 0xFF, 0x80, 46692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond //11a mode: 0x03, 0xFF, 0xC0, 46792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 46892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // channel44, 5220MHz 0x00C402 46992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // channel56, 5280MHz 0x00C402 for disable Frac 47092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // other channels 0x00C602 47192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 47292b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyVT3342_ChannelTable0[CB_MAX_CHANNEL][3] = { 47392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x05, 0x03}, // channel = 1, Tf = 2412MHz 47492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x03}, // channel = 2, Tf = 2417MHz 47592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xC5, 0x03}, // channel = 3, Tf = 2422MHz 47692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x65, 0x03}, // channel = 4, Tf = 2427MHz 47792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 5, Tf = 2432MHz 47892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xC5, 0x13}, // channel = 6, Tf = 2437MHz 47992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x05, 0x13}, // channel = 7, Tf = 2442MHz 48092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 8, Tf = 2447MHz 48192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xC5, 0x13}, // channel = 9, Tf = 2452MHz 48292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x65, 0x13}, // channel = 10, Tf = 2457MHz 48392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x23}, // channel = 11, Tf = 2462MHz 48492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0xC5, 0x23}, // channel = 12, Tf = 2467MHz 48592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x05, 0x23}, // channel = 13, Tf = 2472MHz 48692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0xD5, 0x23}, // channel = 14, Tf = 2484MHz 48792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 48892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 4.9G => Ch 183, 184, 185, 187, 188, 189, 192, 196 (Value:15 ~ 22) 48992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 183, Tf = 4915MHz (15), TBD 49092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 184, Tf = 4920MHz (16), TBD 49192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 185, Tf = 4925MHz (17), TBD 49292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 187, Tf = 4935MHz (18), TBD 49392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 188, Tf = 4940MHz (19), TBD 49492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 189, Tf = 4945MHz (20), TBD 49592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 192, Tf = 4960MHz (21), TBD 49692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 196, Tf = 4980MHz (22), TBD 49792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 49892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 5G => Ch 7, 8, 9, 11, 12, 16, 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64, 49992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 (Value 23 ~ 56) 50092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 7, Tf = 5035MHz (23), TBD 50192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 8, Tf = 5040MHz (24), TBD 50292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 9, Tf = 5045MHz (25), TBD 50392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 11, Tf = 5055MHz (26), TBD 50492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 12, Tf = 5060MHz (27), TBD 50592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 16, Tf = 5080MHz (28), TBD 50692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x15, 0x13}, // channel = 34, Tf = 5170MHz (29), TBD 50792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x55, 0x63}, // channel = 36, Tf = 5180MHz (30) 50892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x55, 0x63}, // channel = 38, Tf = 5190MHz (31), TBD 50992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x63}, // channel = 40, Tf = 5200MHz (32) 51092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x63}, // channel = 42, Tf = 5210MHz (33), TBD 51192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x05, 0x73}, // channel = 44, Tf = 5220MHz (34) 51292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x05, 0x73}, // channel = 46, Tf = 5230MHz (35), TBD 51392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x55, 0x73}, // channel = 48, Tf = 5240MHz (36) 51492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x73}, // channel = 52, Tf = 5260MHz (37) 51592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x05, 0x83}, // channel = 56, Tf = 5280MHz (38) 51692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x55, 0x83}, // channel = 60, Tf = 5300MHz (39) 51792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x83}, // channel = 64, Tf = 5320MHz (40) 51892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 51992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x83}, // channel = 100, Tf = 5500MHz (41), TBD 52092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x83}, // channel = 104, Tf = 5520MHz (42), TBD 52192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x83}, // channel = 108, Tf = 5540MHz (43), TBD 52292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x83}, // channel = 112, Tf = 5560MHz (44), TBD 52392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x83}, // channel = 116, Tf = 5580MHz (45), TBD 52492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x83}, // channel = 120, Tf = 5600MHz (46), TBD 52592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x83}, // channel = 124, Tf = 5620MHz (47), TBD 52692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x83}, // channel = 128, Tf = 5640MHz (48), TBD 52792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x83}, // channel = 132, Tf = 5660MHz (49), TBD 52892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x83}, // channel = 136, Tf = 5680MHz (50), TBD 52992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA5, 0x83}, // channel = 140, Tf = 5700MHz (51), TBD 53092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 53192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x05, 0xF3}, // channel = 149, Tf = 5745MHz (52) 53292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x56, 0x03}, // channel = 153, Tf = 5765MHz (53) 53392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xA6, 0x03}, // channel = 157, Tf = 5785MHz (54) 53492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x06, 0x03}, // channel = 161, Tf = 5805MHz (55) 53592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x06, 0x03} // channel = 165, Tf = 5825MHz (56), TBD 53692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 53792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 53892b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyVT3342_ChannelTable1[CB_MAX_CHANNEL][3] = { 53992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x99, 0x94}, // channel = 1, Tf = 2412MHz 54092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x44, 0x44}, // channel = 2, Tf = 2417MHz 54192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xEE, 0xE4}, // channel = 3, Tf = 2422MHz 54292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x99, 0x94}, // channel = 4, Tf = 2427MHz 54392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 5, Tf = 2432MHz 54492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0xEE, 0xE4}, // channel = 6, Tf = 2437MHz 54592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x99, 0x94}, // channel = 7, Tf = 2442MHz 54692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0x44, 0x44}, // channel = 8, Tf = 2447MHz 54792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xEE, 0xE4}, // channel = 9, Tf = 2452MHz 54892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x99, 0x94}, // channel = 10, Tf = 2457MHz 54992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 11, Tf = 2462MHz 55092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0xEE, 0xE4}, // channel = 12, Tf = 2467MHz 55192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x99, 0x94}, // channel = 13, Tf = 2472MHz 55292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x33, 0x34}, // channel = 14, Tf = 2484MHz 55392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 55492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 4.9G => Ch 183, 184, 185, 187, 188, 189, 192, 196 (Value:15 ~ 22) 55592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 183, Tf = 4915MHz (15), TBD 55692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 184, Tf = 4920MHz (16), TBD 55792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 185, Tf = 4925MHz (17), TBD 55892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 187, Tf = 4935MHz (18), TBD 55992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 188, Tf = 4940MHz (19), TBD 56092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 189, Tf = 4945MHz (20), TBD 56192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 192, Tf = 4960MHz (21), TBD 56292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 196, Tf = 4980MHz (22), TBD 56392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 56492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 5G => Ch 7, 8, 9, 11, 12, 16, 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64, 56592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 (Value 23 ~ 56) 56692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 7, Tf = 5035MHz (23), TBD 56792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 8, Tf = 5040MHz (24), TBD 56892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 9, Tf = 5045MHz (25), TBD 56992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 11, Tf = 5055MHz (26), TBD 57092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 12, Tf = 5060MHz (27), TBD 57192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 16, Tf = 5080MHz (28), TBD 57292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x44, 0x44}, // channel = 34, Tf = 5170MHz (29), TBD 57392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x55, 0x54}, // channel = 36, Tf = 5180MHz (30) 57492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x55, 0x54}, // channel = 38, Tf = 5190MHz (31), TBD 57592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 40, Tf = 5200MHz (32) 57692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 42, Tf = 5210MHz (33), TBD 57792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x04}, // channel = 44, Tf = 5220MHz (34) 57892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x04}, // channel = 46, Tf = 5230MHz (35), TBD 57992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x55, 0x54}, // channel = 48, Tf = 5240MHz (36) 58092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 52, Tf = 5260MHz (37) 58192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x00, 0x04}, // channel = 56, Tf = 5280MHz (38) 58292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0x55, 0x54}, // channel = 60, Tf = 5300MHz (39) 58392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 64, Tf = 5320MHz (40) 58492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 100, Tf = 5500MHz (41), TBD 58592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 104, Tf = 5520MHz (42), TBD 58692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 108, Tf = 5540MHz (43), TBD 58792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 112, Tf = 5560MHz (44), TBD 58892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 116, Tf = 5580MHz (45), TBD 58992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 120, Tf = 5600MHz (46), TBD 59092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 124, Tf = 5620MHz (47), TBD 59192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 128, Tf = 5640MHz (48), TBD 59292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 132, Tf = 5660MHz (49), TBD 59392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 136, Tf = 5680MHz (50), TBD 59492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x02, 0xAA, 0xA4}, // channel = 140, Tf = 5700MHz (51), TBD 59592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x00, 0x04}, // channel = 149, Tf = 5745MHz (52) 59692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x00, 0x55, 0x54}, // channel = 153, Tf = 5765MHz (53) 59792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x01, 0xAA, 0xA4}, // channel = 157, Tf = 5785MHz (54) 59892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x00, 0x04}, // channel = 161, Tf = 5805MHz (55) 59992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond {0x03, 0x00, 0x04} // channel = 165, Tf = 5825MHz (56), TBD 60092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 60192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 60292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 60392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond/*+ 60492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 60592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Power Table 60692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 60792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond-*/ 60892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 60992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bondconst DWORD dwAL2230PowerTable[AL2230_PWR_IDX_LEN] = { 61092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04040900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 61192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04041900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 61292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04042900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 61392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04043900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 61492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04044900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 61592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04045900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 61692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04046900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 61792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04047900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 61892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04048900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 61992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04049900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 62092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0404A900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 62192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0404B900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 62292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0404C900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 62392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0404D900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 62492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0404E900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 62592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0404F900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 62692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04050900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 62792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04051900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 62892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04052900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 62992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04053900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 63092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04054900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 63192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04055900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 63292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04056900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 63392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04057900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 63492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04058900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 63592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04059900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 63692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0405A900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 63792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0405B900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 63892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0405C900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 63992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0405D900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 64092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0405E900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 64192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0405F900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 64292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04060900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 64392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04061900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 64492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04062900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 64592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04063900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 64692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04064900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 64792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04065900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 64892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04066900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 64992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04067900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 65092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04068900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 65192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04069900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 65292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0406A900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 65392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0406B900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 65492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0406C900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 65592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0406D900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 65692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0406E900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 65792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0406F900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 65892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04070900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 65992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04071900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 66092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04072900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 66192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04073900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 66292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04074900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 66392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04075900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 66492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04076900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 66592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04077900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 66692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04078900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 66792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x04079900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 66892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0407A900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 66992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0407B900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 67092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0407C900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 67192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0407D900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 67292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0407E900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW, 67392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0x0407F900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW 67492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }; 67592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 67692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond/*--------------------- Static Functions --------------------------*/ 67792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 67892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond/*--------------------- Export Variables --------------------------*/ 67992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 68092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond//{{ RobertYu:20050103, Channel 11a Number To Index 68192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond// 4.9G => Ch 183, 184, 185, 187, 188, 189, 192, 196 (Value:15 ~ 22) 68292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond// 5G => Ch 7, 8, 9, 11, 12, 16, 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64, 68392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond// 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 (Value 23 ~ 56) 68492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 68592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bondconst BYTE RFaby11aChannelIndex[200] = { 68692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 1 2 3 4 5 6 7 8 9 10 68792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 00, 00, 00, 00, 23, 24, 25, 00, // 10 68892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 26, 27, 00, 00, 00, 28, 00, 00, 00, 00, // 20 68992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, // 30 69092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 00, 29, 00, 30, 00, 31, 00, 32, // 40 69192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 33, 00, 34, 00, 35, 00, 36, 00, 00, // 50 69292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 37, 00, 00, 00, 38, 00, 00, 00, 39, // 60 69392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 00, 40, 00, 00, 00, 00, 00, 00, // 70 69492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, // 80 69592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, // 90 69692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 00, 00, 00, 00, 00, 00, 00, 41, //100 69792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 69892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 00, 42, 00, 00, 00, 43, 00, 00, //110 69992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 44, 00, 00, 00, 45, 00, 00, 00, 46, //120 70092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 00, 47, 00, 00, 00, 48, 00, 00, //130 70192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 49, 00, 00, 00, 50, 00, 00, 00, 51, //140 70292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 00, 00, 00, 00, 00, 00, 52, 00, //150 70392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 53, 00, 00, 00, 54, 00, 00, 00, //160 70492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 55, 00, 00, 00, 56, 00, 00, 00, 00, 00, //170 70592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, //180 70692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 00, 15, 16, 17, 00, 18, 19, 20, 00, //190 70792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 00, 21, 00, 00, 00, 22, 00, 00, 00, 00 //200 70892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond}; 70992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond//}} RobertYu 71092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 71192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond/*--------------------- Export Functions --------------------------*/ 71292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 71392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond/* 71492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Description: Write to IF/RF, by embeded programming 71592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 71692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Parameters: 71792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * In: 71892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * dwData - data to write 71992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Out: 72092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * none 72192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 72292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Return Value: TRUE if succeeded; FALSE if failed. 72392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 72492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond */ 72592b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBOOL IFRFbWriteEmbeded (PSDevice pDevice, DWORD dwData) 72692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond{ 72792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond BYTE pbyData[4]; 72892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 72992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyData[0] = (BYTE)dwData; 73092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyData[1] = (BYTE)(dwData>>8); 73192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyData[2] = (BYTE)(dwData>>16); 73292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyData[3] = (BYTE)(dwData>>24); 73392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond CONTROLnsRequestOut(pDevice, 73492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond MESSAGE_TYPE_WRITE_IFRF, 73592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0, 73692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0, 73792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 4, 73892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyData 73992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond ); 74092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 74192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 74292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond return TRUE; 74392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond} 74492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 74592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 74692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond/* 74792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Description: Set Tx power 74892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 74992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Parameters: 75092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * In: 75192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * dwIoBase - I/O base address 75292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * dwRFPowerTable - RF Tx Power Setting 75392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Out: 75492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * none 75592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 75692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Return Value: TRUE if succeeded; FALSE if failed. 75792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 75892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond */ 75992b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBOOL RFbSetPower ( 760592ccfebb3d7ae6d2fa367b97f080790befa3c6cAndres More PSDevice pDevice, 761cc856e61ee4ffb150ff352e3d6940978a2f819e8Andres More unsigned int uRATE, 762cc856e61ee4ffb150ff352e3d6940978a2f819e8Andres More unsigned int uCH 76392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond ) 76492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond{ 76592b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBOOL bResult = TRUE; 76692b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE byPwr = pDevice->byCCKPwr; 76792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 76892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (pDevice->dwDiagRefCount != 0) { 76992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond return TRUE; 77092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 77192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 77292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond switch (uRATE) { 77392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RATE_1M: 77492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RATE_2M: 77592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RATE_5M: 77692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RATE_11M: 77792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond byPwr = pDevice->abyCCKPwrTbl[uCH-1]; 77892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 77992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RATE_6M: 78092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RATE_9M: 78192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RATE_18M: 78292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RATE_24M: 78392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RATE_36M: 78492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RATE_48M: 78592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RATE_54M: 78692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (uCH > CB_MAX_CHANNEL_24G) { 78792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond byPwr = pDevice->abyOFDMAPwrTbl[uCH-15]; 78892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } else { 78992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond byPwr = pDevice->abyOFDMPwrTbl[uCH-1]; 79092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 79192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 79292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 79392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 79492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult = RFbRawSetPower(pDevice, byPwr, uRATE); 79592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 79692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond return bResult; 79792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond} 79892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 79992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 80092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond/* 80192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Description: Set Tx power 80292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 80392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Parameters: 80492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * In: 80592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * dwIoBase - I/O base address 80692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * dwRFPowerTable - RF Tx Power Setting 80792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Out: 80892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * none 80992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 81092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Return Value: TRUE if succeeded; FALSE if failed. 81192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 81292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond */ 81392b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBOOL RFbRawSetPower ( 814592ccfebb3d7ae6d2fa367b97f080790befa3c6cAndres More PSDevice pDevice, 815592ccfebb3d7ae6d2fa367b97f080790befa3c6cAndres More BYTE byPwr, 816cc856e61ee4ffb150ff352e3d6940978a2f819e8Andres More unsigned int uRATE 81792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond ) 81892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond{ 81992b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBOOL bResult = TRUE; 82092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 82192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (pDevice->byCurPwr == byPwr) 82292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond return TRUE; 82392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 82492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pDevice->byCurPwr = byPwr; 82592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 82692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond switch (pDevice->byRFType) { 82792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 82892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_AL2230 : 82992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (pDevice->byCurPwr >= AL2230_PWR_IDX_LEN) 83092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond return FALSE; 83192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, dwAL2230PowerTable[pDevice->byCurPwr]); 83292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (uRATE <= RATE_11M) 83392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x0001B400+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW); 83492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond else 83592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x0005A400+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW); 83692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 83792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 83892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_AL2230S : 83992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (pDevice->byCurPwr >= AL2230_PWR_IDX_LEN) 84092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond return FALSE; 84192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, dwAL2230PowerTable[pDevice->byCurPwr]); 84292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (uRATE <= RATE_11M) { 84392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x040C1400+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW); 84492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x00299B00+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW); 84592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond }else { 84692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x0005A400+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW); 84792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x00099B00+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW); 84892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 84992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 85092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 85192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 85292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_AIROHA7230: 85392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond { 85492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond DWORD dwMax7230Pwr; 85592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 85692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (uRATE <= RATE_11M) { //RobertYu:20060426, for better 11b mask 85792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x111BB900+(BY_AL7230_REG_LEN<<3)+IFREGCTL_REGW); 85892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 85992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond else { 86092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x221BB900+(BY_AL7230_REG_LEN<<3)+IFREGCTL_REGW); 86192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 86292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 86392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (pDevice->byCurPwr > AL7230_PWR_IDX_LEN) return FALSE; 86492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 86592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // 0x080F1B00 for 3 wire control TxGain(D10) and 0x31 as TX Gain value 86692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond dwMax7230Pwr = 0x080C0B00 | ( (pDevice->byCurPwr) << 12 ) | 86792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond (BY_AL7230_REG_LEN << 3 ) | IFREGCTL_REGW; 86892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 86992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, dwMax7230Pwr); 87092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 87192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 87292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 87392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 87492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_VT3226: //RobertYu:20051111, VT3226C0 and before 87592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond { 87692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond DWORD dwVT3226Pwr; 87792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 87892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (pDevice->byCurPwr >= VT3226_PWR_IDX_LEN) 87992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond return FALSE; 88092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond dwVT3226Pwr = ((0x3F-pDevice->byCurPwr) << 20 ) | ( 0x17 << 8 ) /* Reg7 */ | 88192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond (BY_VT3226_REG_LEN << 3 ) | IFREGCTL_REGW; 88292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, dwVT3226Pwr); 88392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 88492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 88592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 88692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_VT3226D0: //RobertYu:20051228 88792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond { 88892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond DWORD dwVT3226Pwr; 88992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 89092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (pDevice->byCurPwr >= VT3226_PWR_IDX_LEN) 89192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond return FALSE; 89292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 89392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (uRATE <= RATE_11M) { 89492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 89592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond dwVT3226Pwr = ((0x3F-pDevice->byCurPwr) << 20 ) | ( 0xE07 << 8 ) /* Reg7 */ | //RobertYu:20060420, TWIF 1.10 89692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond (BY_VT3226_REG_LEN << 3 ) | IFREGCTL_REGW; 89792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, dwVT3226Pwr); 89892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 89992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x03C6A200+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW); 90092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (pDevice->sMgmtObj.eScanState != WMAC_NO_SCANNING) { 90192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond // scanning, the channel number is pDevice->uScanChannel 90292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"@@@@ RFbRawSetPower> 11B mode uCurrChannel[%d]\n", pDevice->sMgmtObj.uScanChannel); 90392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, dwVT3226D0LoCurrentTable[pDevice->sMgmtObj.uScanChannel-1]); //RobertYu:20060420, sometimes didn't change channel just set power with different rate 90492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } else { 90592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"@@@@ RFbRawSetPower> 11B mode uCurrChannel[%d]\n", pDevice->sMgmtObj.uCurrChannel); 90692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, dwVT3226D0LoCurrentTable[pDevice->sMgmtObj.uCurrChannel-1]); //RobertYu:20060420, sometimes didn't change channel just set power with different rate 90792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 90892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 90992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x015C0800+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW); //RobertYu:20060420, ok now, new switching power (mini-pci can have bigger power consumption) 91092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } else { 91192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"@@@@ RFbRawSetPower> 11G mode\n"); 91292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond dwVT3226Pwr = ((0x3F-pDevice->byCurPwr) << 20 ) | ( 0x7 << 8 ) /* Reg7 */ | //RobertYu:20060420, TWIF 1.10 91392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond (BY_VT3226_REG_LEN << 3 ) | IFREGCTL_REGW; 91492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, dwVT3226Pwr); 91592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x00C6A200+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW); //RobertYu:20060327 91692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x016BC600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW); //RobertYu:20060111 91792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x00900800+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW); //RobertYu:20060111 91892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 91992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 92092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 92192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 92292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond //{{RobertYu:20060609 92392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_VT3342A0: 92492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond { 92592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond DWORD dwVT3342Pwr; 92692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 92792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if (pDevice->byCurPwr >= VT3342_PWR_IDX_LEN) 92892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond return FALSE; 92992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 93092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond dwVT3342Pwr = ((0x3F-pDevice->byCurPwr) << 20 ) | ( 0x27 << 8 ) /* Reg7 */ | 93192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond (BY_VT3342_REG_LEN << 3 ) | IFREGCTL_REGW; 93292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, dwVT3342Pwr); 93392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 93492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 93592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 93692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond default : 93792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 93892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 93992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond return bResult; 94092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond} 94192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 94292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond/*+ 94392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 94492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Routine Description: 94592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Translate RSSI to dBm 94692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 94792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Parameters: 94892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * In: 94992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * pDevice - The adapter to be translated 95092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * byCurrRSSI - RSSI to be translated 95192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Out: 95292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * pdwdbm - Translated dbm number 95392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 95492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * Return Value: none 95592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond * 95692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond-*/ 9578611a29ab967bc197494db19d31994d1b5a26fdcAndres Morevoid 95892b96797118e5836294a6d42a5a8e10b86f50e3fForest BondRFvRSSITodBm ( 959592ccfebb3d7ae6d2fa367b97f080790befa3c6cAndres More PSDevice pDevice, 960592ccfebb3d7ae6d2fa367b97f080790befa3c6cAndres More BYTE byCurrRSSI, 961193a823caaf0e2a79a447014be00a6b70ed216a2Jim Lieb long * pldBm 96292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond ) 96392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond{ 96492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond BYTE byIdx = (((byCurrRSSI & 0xC0) >> 6) & 0x03); 965213d2e9322ed509c2f80b07d7feb4427ebcd7b0bAndres More signed long b = (byCurrRSSI & 0x3F); 966213d2e9322ed509c2f80b07d7feb4427ebcd7b0bAndres More signed long a = 0; 96792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond BYTE abyAIROHARF[4] = {0, 18, 0, 40}; 96892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 96992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond switch (pDevice->byRFType) { 97092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_AL2230: 97192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_AL2230S: 97292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_AIROHA7230: 97392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_VT3226: //RobertYu:20051111 97492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_VT3226D0: 97592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_VT3342A0: //RobertYu:20060609 97692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond a = abyAIROHARF[byIdx]; 97792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 97892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond default: 97992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 98092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 98192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 98292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond *pldBm = -1 * (a + b * 2); 98392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond} 98492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 98592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 98692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 9878611a29ab967bc197494db19d31994d1b5a26fdcAndres Morevoid 98892b96797118e5836294a6d42a5a8e10b86f50e3fForest BondRFbRFTableDownload ( 989592ccfebb3d7ae6d2fa367b97f080790befa3c6cAndres More PSDevice pDevice 99092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond ) 99192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond{ 99292b96797118e5836294a6d42a5a8e10b86f50e3fForest BondWORD wLength1 = 0,wLength2 = 0 ,wLength3 = 0; 99392b96797118e5836294a6d42a5a8e10b86f50e3fForest BondPBYTE pbyAddr1 = NULL,pbyAddr2 = NULL,pbyAddr3 = NULL; 99492b96797118e5836294a6d42a5a8e10b86f50e3fForest BondWORD wLength,wValue; 99592b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBYTE abyArray[256]; 99692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 99792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond switch ( pDevice->byRFType ) { 99892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_AL2230: 99992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_AL2230S: 100092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength1 = CB_AL2230_INIT_SEQ * 3; 100192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength2 = CB_MAX_CHANNEL_24G * 3; 100292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength3 = CB_MAX_CHANNEL_24G * 3; 100392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr1 = &(abyAL2230InitTable[0][0]); 100492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr2 = &(abyAL2230ChannelTable0[0][0]); 100592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr3 = &(abyAL2230ChannelTable1[0][0]); 100692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 100792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_AIROHA7230: 100892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength1 = CB_AL7230_INIT_SEQ * 3; 100992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength2 = CB_MAX_CHANNEL * 3; 101092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength3 = CB_MAX_CHANNEL * 3; 101192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr1 = &(abyAL7230InitTable[0][0]); 101292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr2 = &(abyAL7230ChannelTable0[0][0]); 101392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr3 = &(abyAL7230ChannelTable1[0][0]); 101492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 101592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_VT3226: //RobertYu:20051111 101692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength1 = CB_VT3226_INIT_SEQ * 3; 101792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength2 = CB_MAX_CHANNEL_24G * 3; 101892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength3 = CB_MAX_CHANNEL_24G * 3; 101992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr1 = &(abyVT3226_InitTable[0][0]); 102092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr2 = &(abyVT3226_ChannelTable0[0][0]); 102192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr3 = &(abyVT3226_ChannelTable1[0][0]); 102292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 102392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_VT3226D0: //RobertYu:20051114 102492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength1 = CB_VT3226_INIT_SEQ * 3; 102592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength2 = CB_MAX_CHANNEL_24G * 3; 102692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength3 = CB_MAX_CHANNEL_24G * 3; 102792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr1 = &(abyVT3226D0_InitTable[0][0]); 102892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr2 = &(abyVT3226_ChannelTable0[0][0]); 102992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr3 = &(abyVT3226_ChannelTable1[0][0]); 103092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 103192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond case RF_VT3342A0: //RobertYu:20060609 103292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength1 = CB_VT3342_INIT_SEQ * 3; 103392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength2 = CB_MAX_CHANNEL * 3; 103492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength3 = CB_MAX_CHANNEL * 3; 103592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr1 = &(abyVT3342A0_InitTable[0][0]); 103692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr2 = &(abyVT3342_ChannelTable0[0][0]); 103792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr3 = &(abyVT3342_ChannelTable1[0][0]); 103892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond break; 103992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 104092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 104192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond //Init Table 104292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 104392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond memcpy(abyArray, pbyAddr1, wLength1); 104492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond CONTROLnsRequestOut(pDevice, 104592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond MESSAGE_TYPE_WRITE, 104692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0, 104792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond MESSAGE_REQUEST_RF_INIT, 104892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength1, 104992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond abyArray 105092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond ); 105192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond //Channle Table 0 105292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wValue = 0; 105392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond while ( wLength2 > 0 ) { 105492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 105592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if ( wLength2 >= 64 ) { 105692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength = 64; 105792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } else { 105892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength = wLength2; 105992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 106092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond memcpy(abyArray, pbyAddr2, wLength); 106192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond CONTROLnsRequestOut(pDevice, 106292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond MESSAGE_TYPE_WRITE, 106392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wValue, 106492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond MESSAGE_REQUEST_RF_CH0, 106592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength, 106692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond abyArray); 106792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 106892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength2 -= wLength; 106992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wValue += wLength; 107092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr2 += wLength; 107192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 107292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond //Channel table 1 107392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wValue = 0; 107492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond while ( wLength3 > 0 ) { 107592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 107692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if ( wLength3 >= 64 ) { 107792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength = 64; 107892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } else { 107992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength = wLength3; 108092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 108192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond memcpy(abyArray, pbyAddr3, wLength); 108292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond CONTROLnsRequestOut(pDevice, 108392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond MESSAGE_TYPE_WRITE, 108492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wValue, 108592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond MESSAGE_REQUEST_RF_CH1, 108692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength, 108792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond abyArray); 108892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 108992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength3 -= wLength; 109092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wValue += wLength; 109192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr3 += wLength; 109292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 109392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 109492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond //7230 needs 2 InitTable and 3 Channel Table 109592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if ( pDevice->byRFType == RF_AIROHA7230 ) { 109692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength1 = CB_AL7230_INIT_SEQ * 3; 109792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength2 = CB_MAX_CHANNEL * 3; 109892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr1 = &(abyAL7230InitTableAMode[0][0]); 109992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr2 = &(abyAL7230ChannelTable2[0][0]); 110092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond memcpy(abyArray, pbyAddr1, wLength1); 110192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond //Init Table 2 110292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond CONTROLnsRequestOut(pDevice, 110392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond MESSAGE_TYPE_WRITE, 110492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 0, 110592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond MESSAGE_REQUEST_RF_INIT2, 110692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength1, 110792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond abyArray); 110892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 110992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond //Channle Table 0 111092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wValue = 0; 111192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond while ( wLength2 > 0 ) { 111292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 111392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if ( wLength2 >= 64 ) { 111492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength = 64; 111592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } else { 111692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength = wLength2; 111792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 111892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond memcpy(abyArray, pbyAddr2, wLength); 111992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond CONTROLnsRequestOut(pDevice, 112092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond MESSAGE_TYPE_WRITE, 112192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wValue, 112292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond MESSAGE_REQUEST_RF_CH2, 112392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength, 112492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond abyArray); 112592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 112692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wLength2 -= wLength; 112792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond wValue += wLength; 112892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond pbyAddr2 += wLength; 112992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 113092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond } 113192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 113292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond} 113392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 113492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond// RobertYu:20060412, TWIF1.11 adjust LO Current for 11b mode 113592b96797118e5836294a6d42a5a8e10b86f50e3fForest BondBOOL s_bVT3226D0_11bLoCurrentAdjust( 1136592ccfebb3d7ae6d2fa367b97f080790befa3c6cAndres More PSDevice pDevice, 1137592ccfebb3d7ae6d2fa367b97f080790befa3c6cAndres More BYTE byChannel, 1138592ccfebb3d7ae6d2fa367b97f080790befa3c6cAndres More BOOL b11bMode) 113992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond{ 114092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond BOOL bResult; 114192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 114292b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult = TRUE; 114392b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond if( b11bMode ) 114492b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, dwVT3226D0LoCurrentTable[byChannel-1]); 114592b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond else 114692b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond bResult &= IFRFbWriteEmbeded(pDevice, 0x016BC600+(BY_VT3226_REG_LEN<<3)+IFREGCTL_REGW); //RobertYu:20060412 114792b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 114892b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond return bResult; 114992b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond} 115092b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 115192b96797118e5836294a6d42a5a8e10b86f50e3fForest Bond 1152