• 大小: 2.36MB
    文件类型: .gz
    金币: 2
    下载: 0 次
    发布日期: 2024-02-05
  • 语言: 其他
  • 标签: 全志  

资源简介

1B在全志r16平台tinav2.5系统下调通RTL8188FU 2018/5/11 14:49 版本:V1.0 开发板:客户提供 SDK:tina v2.5 1、01原始编译全志r16平台tinav2.5系统: rootroot@cm88:~$ cd /home/wwt rootroot@cm88:/home/wwt$ rootroot@cm88:/home/wwt$ md5sum tinav2.5_orig_r16repack_20171214_1114.tar.gz aa13de7313f393ca25375d9802a65da8 tinav2.5_orig_r16repack_20171214_1114.tar.gz rootroot@cm88:/home/wwt$ tar zxvf tinav2.5_orig_r16repack_20171214_1114.tar.gz rootroot@cm88:/home/wwt$ cd tinav2.5/ rootroot@cm88:/home/wwt/tinav2.5$ rootroot@cm88:/home/wwt/tinav2.5$ 7za x com_tinav2.5通用修改2没有外层目录_干掉AXP223的温度检测20180326_1023.7z -r -o./ rootroot@cm88:/home/wwt/tinav2.5$ source build/envsetup.sh (请严重注意:lunch之后的选项是环境依赖的,请选择astar_parrot-tina前的实际数值!) rootroot@cm88:/home/wwt/tinav2.5$ lunch 32. astar_parrot-tina Which would you like?32 rootroot@cm88:/home/wwt/tinav2.5$ make -j12 rootroot@cm88:/home/wwt/tinav2.5$ pack -d rootroot@cm88:/home/wwt/tinav2.5$ 2、 rootroot@cm88:/home/wwt/tinav2.5$ rootroot@cm88:/home/wwt/tinav2.5$ cd lichee/linux-3.4/drivers/net/wireless/ rootroot@cm88:/home/wwt/tinav2.5/lichee/linux-3.4/drivers/net/wireless$ rootroot@cm88:/home/wwt/tinav2.5/lichee/linux-3.4/drivers/net/wireless$ tar zxvf rtl8188FU_linux_v5.2.11.1_22924.20170703.tar.gz rootroot@cm88:/home/wwt/tinav2.5/lichee/linux-3.4/drivers/net/wireless$ rootroot@cm88:/home/wwt/tinav2.5/lichee/linux-3.4/drivers/net/wireless$ mv rtl8188FU_linux_v5.2.11.1_22924.20170703 rtl8188fu 维权之R16平台配置Makefile: W:\tinav2.5\lichee\linux-3.4\drivers\net\wireless\rtl8188fu\Makefile ########################## WIFI IC ############################ CONFIG_MULTIDRV = n (可选增加) CONFIG_RTL8192C = n CONFIG_RTL8192D = n CONFIG_RTL8723A = n CONFIG_RTL8188E = n CONFIG_RTL8812A = n CONFIG_RTL8821A = n CONFIG_RTL8192E = n CONFIG_RTL8723B = n CONFIG_RTL8814A = n CONFIG_RTL8723C = n CONFIG_RTL8188F = y CONFIG_RTL8822B = n CONFIG_RTL8723D = n CONFIG_RTL8821C = n ###################### Platform Related ####################### (务必修改,否则就是X86架构了) CONFIG_PLATFORM_I386_PC = n C

资源截图

代码片段和文件信息

/******************************************************************************
 *
 * 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_))

评论

共有 条评论