• 大小: 4.97MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-11-17
  • 语言: 其他
  • 标签: rtl872  linux  

资源简介

驱动适用于z3735国产平板: sudo make sudo make install

资源截图

代码片段和文件信息

/******************************************************************************
 *
 * 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  2017-03-04 10:27  egg_wifi-master\
     目录           0  2017-03-04 10:27  egg_wifi-master\Documents\
     文件       24129  2017-03-04 10:27  egg_wifi-master\Documents\HowTo_debug_BT_coexistence.pdf
     文件       42942  2017-03-04 10:27  egg_wifi-master\Documents\HowTo_enable_driver_to_support_80211d.pdf
     文件       16932  2017-03-04 10:27  egg_wifi-master\Documents\HowTo_enable_driver_to_support_WIFI_certification_test.pdf
     文件      154940  2017-03-04 10:27  egg_wifi-master\Documents\HowTo_enable_the_power_saving_functionality.pdf
     文件       31414  2017-03-04 10:27  egg_wifi-master\Documents\HowTo_port_wireless_driver_to_Google_ChromiumOS.pdf
     文件       25717  2017-03-04 10:27  egg_wifi-master\Documents\HowTo_read_external_TX_power_related_file.pdf
     文件      128554  2017-03-04 10:27  egg_wifi-master\Documents\Miracast_for_Realtek_WiFi.pdf
     文件       16779  2017-03-04 10:27  egg_wifi-master\Documents\Quick_Start_Guide_for_Bridge.pdf
     文件       68813  2017-03-04 10:27  egg_wifi-master\Documents\Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf
     文件       31933  2017-03-04 10:27  egg_wifi-master\Documents\Quick_Start_Guide_for_SoftAP.pdf
     文件       36189  2017-03-04 10:27  egg_wifi-master\Documents\Quick_Start_Guide_for_Station_Mode.pdf
     文件       61898  2017-03-04 10:27  egg_wifi-master\Documents\Quick_Start_Guide_for_WOW.pdf
     文件      128897  2017-03-04 10:27  egg_wifi-master\Documents\RTK_P2P_WFD_Programming_guide.pdf
     文件      167766  2017-03-04 10:27  egg_wifi-master\Documents\Realtek_WiFi_concurrent_mode_Introduction.pdf
     文件       29988  2017-03-04 10:27  egg_wifi-master\Documents\SoftAP_Mode_features.pdf
     文件       13447  2017-03-04 10:27  egg_wifi-master\Documents\Wireless_tools_porting_guide.pdf
     文件        4190  2017-03-04 10:27  egg_wifi-master\Documents\linux_dhcp_server_notes.txt
     文件       41564  2017-03-04 10:27  egg_wifi-master\Documents\wpa_cli_with_wpa_supplicant.pdf
     文件        1371  2017-03-04 10:27  egg_wifi-master\README.md
     文件         253  2017-03-04 10:27  egg_wifi-master\dnsmasq.conf
     文件         228  2017-03-04 10:27  egg_wifi-master\hostapd.conf
     目录           0  2017-03-04 10:27  egg_wifi-master\r8723bs\
     文件         360  2017-03-04 10:27  egg_wifi-master\r8723bs\Kconfig
     文件       41824  2017-03-04 10:27  egg_wifi-master\r8723bs\Makefile
     目录           0  2017-03-04 10:27  egg_wifi-master\r8723bs\core\
     目录           0  2017-03-04 10:27  egg_wifi-master\r8723bs\core\efuse\
     文件       35204  2017-03-04 10:27  egg_wifi-master\r8723bs\core\efuse\rtw_efuse.c
     文件       97064  2017-03-04 10:27  egg_wifi-master\r8723bs\core\rtw_ap.c
     文件       28656  2017-03-04 10:27  egg_wifi-master\r8723bs\core\rtw_beamforming.c
............此处省略974个文件信息

评论

共有 条评论