资源简介
无线模组RTL88x2BU驱动程序,在makefile选择相关的平台,编译命令:make ARCH="arm" CROSS_COMPILE=arm-linux- KSRC=(kernel目录) modules
代码片段和文件信息
/******************************************************************************
*
* Copyright(c) 2007 - 2017 Realtek Corporation.
*
* 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.
*
*****************************************************************************/
#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);
}
/*
* Set TIM IE
* return length of total TIM IE
*/
u8 rtw_set_tim_ie(u8 dtim_cnt u8 dtim_period
const u8 *tim_bmp u8 tim_bmp_len u8 *tim_ie)
{
u8 *p = tim_ie;
u8 i n1 n2;
u8 bmp_len;
if (rtw_bmp_not_empty(tim_bmp tim_bmp_len)) {
/* find the first nonzero octet in tim_bitmap */
for (i = 0; i < tim_bmp_len; i++)
if (tim_bmp[i])
break;
n1 = i & 0xFE;
/* find the last nonzero octet in tim_bitmap except octet 0 */
for (i = tim_bmp_len - 1; i > 0; i--)
if (tim_bmp[i])
break;
n2 = i;
bmp_len = n2 - n1 + 1;
} else {
n1 = n2 = 0;
bmp_len = 1;
}
*p++ = WLAN_EID_TIM;
*p++ = 2 + 1 + bmp_len;
*p++ = dtim_cnt;
*p++ = dtim_period;
*p++ = (rtw_bmp_is_set(tim_bmp tim_bmp_len 0) ? BIT0 : 0) | n1;
_rtw_memcpy(p tim_bmp + n1 bmp_len);
#if 0
RTW_INFO(“n1:%u n2:%u bmp_offset:%u bmp_len:%u\n“ n1 n2 n1 / 2 bmp_len);
RTW_INFO_DUMP(“tim_ie: “ tim_ie + 2 2 + 1 + bmp_len);
#endif
return 2 + 2 + 1 + bmp_len;
}
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(rtw_tim_map_anyone_be_set(padapter pstapriv->tim_bitmap)) */
#endif
if (_TRUE) {
u8 *p *dst_ie *premainder_ie = NULL *pbackup_remainder_ie = NULL;
uint offset tmp_len tim_ielen tim_ie_offset remainder_ielen;
p = rtw_get_ie(pie + _FIXED_IE_LENGTH_ _TIM_IE_ &tim_ielen pnetwork_mlmeext->IELength - _FIXED_IE_LENGTH
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\
文件 422 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\.gitignore
文件 3583480 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\8812bu.ko
文件 110 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\Kconfig
文件 62635 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\Makefile
文件 1454 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\README.md
文件 64 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\clean
目录 0 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\
目录 0 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\efuse\
文件 85347 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\efuse\rtw_efuse.c
目录 0 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\mesh\
文件 99802 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\mesh\rtw_mesh.c
文件 19424 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\mesh\rtw_mesh.h
文件 46372 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\mesh\rtw_mesh_hwmp.c
文件 2155 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\mesh\rtw_mesh_hwmp.h
文件 28876 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\mesh\rtw_mesh_pathtbl.c
文件 6837 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\mesh\rtw_mesh_pathtbl.h
文件 143845 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_ap.c
文件 89971 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_beamforming.c
文件 46201 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_br_ext.c
文件 50945 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_bt_mp.c
文件 49554 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_btcoex.c
文件 1278 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_btcoex_wifionly.c
文件 133081 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_cmd.c
文件 180454 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_debug.c
文件 8260 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_eeprom.c
文件 72254 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_ieee80211.c
文件 19308 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_io.c
文件 5751 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_ioctl_query.c
文件 30130 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_ioctl_rtl.c
文件 21982 2019-07-30 18:25 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959-master\core\rtw_ioctl_set.c
............此处省略597个文件信息
- 上一篇:扫描2020年6月19日上午11.01(1).pdf
- 下一篇:动画网站模板无后台
评论
共有 条评论