• 大小: 1.85MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-11
  • 语言: 其他
  • 标签: ubuntu  TL-WN823N  

资源简介

TP-LINK的TL-WN823N不能用于linux问题(本文基于ubuntu系统)(驱动在我资源里)亲测方法可用

资源截图

代码片段和文件信息

/******************************************************************************
 *
 * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
 *                                        
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not write to the Free Software Foundation Inc.
 * 51 Franklin Street Fifth Floor Boston MA 02110 USA
 *
 *
 ******************************************************************************/
#define _RTW_AP_C_

#include 


#ifdef CONFIG_AP_MODE

extern unsigned char RTW_WPA_OUI[];
extern unsigned char  WMM_OUI[];
extern unsigned char WPS_OUI[];
extern unsigned char P2P_OUI[];
extern unsigned char WFD_OUI[];

void init_mlme_ap_info(_adapter *padapter)
{
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct sta_priv *pstapriv = &padapter->stapriv;
struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;


_rtw_spinlock_init(&pmlmepriv->bcn_update_lock);

//for ACL 
_rtw_init_queue(&pacl_list->acl_node_q);

//pmlmeext->bstart_bss = _FALSE;

start_ap_mode(padapter);
}

void free_mlme_ap_info(_adapter *padapter)
{
_irqL irqL;
struct sta_info *psta=NULL;
struct sta_priv *pstapriv = &padapter->stapriv;
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);

//stop_ap_mode(padapter);

pmlmepriv->update_bcn = _FALSE;
pmlmeext->bstart_bss = _FALSE;

rtw_sta_flush(padapter);

pmlmeinfo->state = _HW_STATE_NOlink_;

//free_assoc_sta_resources
rtw_free_all_stainfo(padapter);

//free bc/mc sta_info
psta = rtw_get_bcmc_stainfo(padapter);
_enter_critical_bh(&(pstapriv->sta_hash_lock) &irqL);
rtw_free_stainfo(padapter psta);
_exit_critical_bh(&(pstapriv->sta_hash_lock) &irqL);


_rtw_spinlock_free(&pmlmepriv->bcn_update_lock);

}

static void update_BCNTIM(_adapter *padapter)
{
struct sta_priv *pstapriv = &padapter->stapriv;
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
WLAN_BSSID_EX *pnetwork_mlmeext = &(pmlmeinfo->network);
unsigned char *pie = pnetwork_mlmeext->IEs;

//DBG_871X(“%s\n“ __FUNCTION__);

//update TIM IE
//if(pstapriv->tim_bitmap)
if(_TRUE)
{
u8 *p *dst_ie *premainder_ie=NULL *pbackup_remainder_ie=NULL;
u16 tim_

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-01-18 18:56  rtl8192eu-linux-driver-master\
     文件         110  2016-01-18 18:56  rtl8192eu-linux-driver-master\Kconfig
     文件       41233  2016-01-18 18:56  rtl8192eu-linux-driver-master\Makefile
     文件        2204  2016-01-18 18:56  rtl8192eu-linux-driver-master\README.md
     文件          64  2016-01-18 18:56  rtl8192eu-linux-driver-master\clean
     目录           0  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\
     目录           0  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\efuse\
     文件       35204  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\efuse\rtw_efuse.c
     文件       96721  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_ap.c
     文件       28656  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_beamforming.c
     文件       46523  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_br_ext.c
     文件       54027  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_bt_mp.c
     文件        7688  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_btcoex.c
     文件       92884  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_cmd.c
     文件       38755  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_debug.c
     文件       10182  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_eeprom.c
     文件       53488  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_ieee80211.c
     文件       14231  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_io.c
     文件        6988  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_ioctl_query.c
     文件       30526  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_ioctl_rtl.c
     文件       45236  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_ioctl_set.c
     文件       10938  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_iol.c
     文件      125009  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_mlme.c
     文件      420067  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_mlme_ext.c
     文件       72357  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_mp.c
     文件       90470  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_mp_ioctl.c
     文件        5954  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_odm.c
     文件      153106  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_p2p.c
     文件       65888  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_pwrctrl.c
     文件      109341  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_recv.c
     文件        2388  2016-01-18 18:56  rtl8192eu-linux-driver-master\core\rtw_rf.c
............此处省略326个文件信息

评论

共有 条评论