资源简介

4.12-4.15内核版本适用的rtl8821cu驱动,8811cu也适用

资源截图

代码片段和文件信息

/******************************************************************************
 *
 * 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 
#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);

_rtw_spinlock_init(&pmlmepriv->bcn_update_lock);

/* pmlmeext->bstart_bss = _FALSE; */

}

void free_mlme_ap_info(_adapter *padapter)
{
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);

stop_ap_mode(padapter);
_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;

#if 0


/* update TIM IE */
/* if(pstapriv->tim_bitmap) */
#endif
if (_TRUE) {
u8 *p *dst_ie *premainder_ie = NULL *pbackup_remainder_ie = NULL;
u16 tim_bitmap_le;
uint offset tmp_len tim_ielen tim_ie_offset remainder_ielen;

tim_bitmap_le = cpu_to_le16(pstapriv->tim_bitmap);

p = rtw_get_ie(pie + _FIXED_IE_LENGTH_ _TIM_IE_ &tim_ielen pnetwork_mlmeext->IELength - _FIXED_IE_LENGTH_);
if (p != NULL && tim_ielen > 0) {
tim_ielen += 2;

premainder_ie = p + tim_ielen;

tim_ie_offset = (sint)(p - pie);

remainder_ielen = pnetwork_mlmeext->IELength - tim_ie_offset - tim_ielen;

/*append TIM IE from dst_ie offset*/
dst_ie = p;
} else {
tim_ielen = 0;

/*calculate head_len*/
offset = _FIXED_IE_LENGTH_;

/* get ssid_ie len */
p = rtw_get_ie(pie + _BEACON_IE_OFFSET_ _SSID_IE_ &tmp_len (pnetwork_mlmeext->IELength - _BEACON_IE_OFFSET_));
if (p != NULL)
offset += tmp_len + 2;

/*get supported rates len*/
p = rtw_get_ie(pie + _BEACON_IE_OFFSET_ _SUPPORTEDRATES_IE_ &tmp_len (pnetwork_mlmeext->IELength - _BEACON_IE_OFFSET_))

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-09 11:57  rtl8821CU-master\
     文件          80  2018-10-09 11:57  rtl8821CU-master\.gitignore
     文件         106  2018-10-09 11:57  rtl8821CU-master\.travis.yml
     文件         110  2018-10-09 11:57  rtl8821CU-master\Kconfig
     文件       18092  2018-10-09 11:57  rtl8821CU-master\LICENSE
     文件       61592  2018-10-09 11:57  rtl8821CU-master\Makefile
     文件        1747  2018-10-09 11:57  rtl8821CU-master\README.md
     文件          64  2018-10-09 11:57  rtl8821CU-master\clean
     目录           0  2018-10-09 11:57  rtl8821CU-master\core\
     目录           0  2018-10-09 11:57  rtl8821CU-master\core\efuse\
     文件       78261  2018-10-09 11:57  rtl8821CU-master\core\efuse\rtw_efuse.c
     文件      121598  2018-10-09 11:57  rtl8821CU-master\core\rtw_ap.c
     文件       89780  2018-10-09 11:57  rtl8821CU-master\core\rtw_beamforming.c
     文件       46437  2018-10-09 11:57  rtl8821CU-master\core\rtw_br_ext.c
     文件       51167  2018-10-09 11:57  rtl8821CU-master\core\rtw_bt_mp.c
     文件       48952  2018-10-09 11:57  rtl8821CU-master\core\rtw_btcoex.c
     文件        1396  2018-10-09 11:57  rtl8821CU-master\core\rtw_btcoex_wifionly.c
     文件      128655  2018-10-09 11:57  rtl8821CU-master\core\rtw_cmd.c
     文件      161979  2018-10-09 11:57  rtl8821CU-master\core\rtw_debug.c
     文件        8496  2018-10-09 11:57  rtl8821CU-master\core\rtw_eeprom.c
     文件       69787  2018-10-09 11:57  rtl8821CU-master\core\rtw_ieee80211.c
     文件       19501  2018-10-09 11:57  rtl8821CU-master\core\rtw_io.c
     文件        5987  2018-10-09 11:57  rtl8821CU-master\core\rtw_ioctl_query.c
     文件       30284  2018-10-09 11:57  rtl8821CU-master\core\rtw_ioctl_rtl.c
     文件       31501  2018-10-09 11:57  rtl8821CU-master\core\rtw_ioctl_set.c
     文件       11119  2018-10-09 11:57  rtl8821CU-master\core\rtw_iol.c
     文件        2766  2018-10-09 11:57  rtl8821CU-master\core\rtw_mem.c
     文件       35985  2018-10-09 11:57  rtl8821CU-master\core\rtw_mi.c
     文件      140045  2018-10-09 11:57  rtl8821CU-master\core\rtw_mlme.c
     文件      487360  2018-10-09 11:57  rtl8821CU-master\core\rtw_mlme_ext.c
     文件       96289  2018-10-09 11:57  rtl8821CU-master\core\rtw_mp.c
............此处省略555个文件信息

评论

共有 条评论