资源简介
linux 360wifi3代驱动带有ap和sta模式,ap已经可以使用,sta还没有试过
代码片段和文件信息
/****************************************************************************
* Ralink Tech Inc.
* 4F No. 2 Technology 5th Rd.
* Science-based Industrial Park
* Hsin-chu Taiwan R.O.C.
* (c) Copyright 2002 Ralink Technology Inc.
*
* All rights reserved. Ralink‘s source code is an unpublished work and the
* use of a copyright notice does not imply otherwise. This source code
* contains confidential trade secret material of Ralink Tech. Any attemp
* or participation in deciphering decoding reverse engineering or in any
* way altering the source code is stricitly prohibited unless the prior
* written consent of Ralink Technology Inc. is obtained.
****************************************************************************
Module Name:
soft_ap.c
Abstract:
Access Point specific routines and MAC table maintenance routines
Revision History:
Who When What
-------- ---------- ----------------------------------------------
John Chang 08-04-2003 created for 11g soft-AP
*/
#include “rt_config.h“
char const *pEventText[EVENT_MAX_EVENT_TYPE] = {
“restart access point“
“successfully associated“
“has disassociated“
“has been aged-out and disassociated“
“active countermeasures“
“has disassociated with invalid PSK password“};
UCHAR get_apidx_by_addr(RTMP_ADAPTER *pAd UCHAR *addr)
{
UCHAR apidx;
for (apidx=0; apidxApCfg.BssidNum; apidx++)
{
if (RTMPEqualMemory(addr pAd->ApCfg.MBSSID[apidx].wdev.bssid MAC_ADDR_LEN))
break;
}
return apidx;
}
// TODO: shiang-usw need to revise this to asic specific functions!
INT set_wdev_if_addr(RTMP_ADAPTER *pAd struct wifi_dev *wdev INT opmode)
{
INT idx = wdev->func_idx;
if (opmode == OPMODE_AP)
{
COPY_MAC_ADDR(wdev->if_addr pAd->CurrentAddress);
//+++Add by Carter for MT7603
#if defined(RTMP_MAC) || defined(RLT_MAC)
if (pAd->chipCap.hif_type == HIF_RTMP || pAd->chipCap.hif_type == HIF_RLT)
{
if (pAd->chipCap.MBSSIDMode >= MBSSID_MODE1)
{
UCHAR MacMask = 0;
if ((pAd->ApCfg.BssidNum + MAX_APCLI_NUM + MAX_MESH_NUM) <= 2)
MacMask = 0xFE;
else if ((pAd->ApCfg.BssidNum + MAX_APCLI_NUM + MAX_MESH_NUM) <= 4)
MacMask = 0xFC;
else if ((pAd->ApCfg.BssidNum + MAX_APCLI_NUM + MAX_MESH_NUM) <= 8)
MacMask = 0xF8;
else if ((pAd->ApCfg.BssidNum + MAX_APCLI_NUM + MAX_MESH_NUM) <= 16)
MacMask = 0xF0;
if (idx > 0)
{
wdev->if_addr[0] |= 0x2;
if (pAd->chipCap.MBSSIDMode == MBSSID_MODE1)
{
/*
Refer to HW definition -
Bit1 of MAC address Byte0 is local administration bit
and should be set to 1 in extended multiple BSSIDs‘
Bit3~ of MAC address Byte0 is extended multiple BSSID index.
*/
#ifdef ENHANCE_NEW_MBSSID_MODE
wdev->if_addr[0] &= ((MacMask << 2) + 3);
#endif /* ENHANCE_NEW_MBSSID_MODE */
wdev->if_addr[0] += ((wdev->func_idx - 1) << 2);
}
#ifdef ENHANCE_NEW_MBSSID_MODE
else
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 77288 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap.c
文件 3957 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\apcli_li
文件 80870 2017-05-15 12:54 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_assoc.c
文件 22720 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_auth.c
文件 43805 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_autoChSel.c
文件 535479 2017-05-15 16:51 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_cfg.c
文件 50671 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_connect.c
文件 103370 2017-05-15 12:29 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_data.c
文件 936 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_dls.c
文件 3068 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_ftkd.c
文件 14984 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_ids.c
文件 10582 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_mbss.c
文件 5156 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_mbss_inf.c
文件 17165 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_mlme.c
文件 8060 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_nps.c
文件 23218 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_qload.c
文件 20858 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_repeater.c
文件 1179 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_sanity.c
文件 56347 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_sync.c
文件 1058 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_wds_inf.c
文件 36522 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ap\ap_wpa.c
文件 27600 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ate\ate_agent.c
文件 7787 2017-05-15 09:39 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ate\include\ate.h
文件 4478 2017-05-15 09:39 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ate\include\ate_agent.h
文件 2239 2017-05-15 09:39 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ate\include\qa_agent.h
文件 20634 2017-05-15 09:39 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ate\include\rt_ate.h
文件 5608 2017-05-15 09:39 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ate\include\rt_qa.h
文件 30067 2017-05-15 09:39 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ate\mt_mac\mt_ate.c
文件 48031 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\ate\qa_agent.c
文件 54538 2017-05-15 09:33 MT7603U_DPA_LinuxSTA_3.0.0.4_20140825\DPA\chips\.mt7603.o.cmd
............此处省略718个文件信息
- 上一篇:pos刷卡小票
- 下一篇:现代通信原理樊昌信课后习题答案--人民邮电出版社--第二章
评论
共有 条评论