当前位置:首页>Linux>Linux wlan 周期性维护终端管理框架详解

Linux wlan 周期性维护终端管理框架详解

  • 2026-03-18 20:30:34
Linux wlan 周期性维护终端管理框架详解

前言

如果前面分享出来的《双链表操作》、《哈希到哈希表…》没有理解,或许难以理解以“哈希表+链表”的桶结构

  • 哈希桶结构
  • 链表结构

    无线连接的设备的存储正是靠“哈希表+链表”的桶结构组成。

我们为什么要跟踪学习设备列表维护呢?

  • 它展示了如何设计一个周期性维护的核心框架——入口检查、加锁遍历、子功能调用、状态聚合、批量处理、定时器重置,形成了一个完整且可扩展的维护循环
  • 可以以框架性的思维理解kernel与driver交互逻辑,而非散乱的知识点乱飞

情景

  • 当我们使用 shell 来查看 cat proc/wlan0/sta_info查看我们的AP连接的无线终端时,到底会经历怎样的过程?
  • 当然,结果我可以给出来,如下:

    上面的框架给出来了,那我们如何来更新这样的列表呢?那么我们就可以进行后面的详细分析

开始之前,我么那必须了解几个关键的结构体

  1. struct sta_info:代表一个关联的无线终端(Station),指针指向了这个终端

  2. struct sta_priv:是终端管理器的核心结构体,负责组织和管理所有终端(sta_info)
  3. struct net_device 是 Linux 内核网络子系统中最重要的核心结构体,代表一个网络设备接口,如wlan0
  4. 代表一个无线网络接口的驱动实例
  5. MLME(MAC Layer Management Entity,MAC层管理实体)的管理结构体,负责无线网络的管理功能

终端的管理及初始化

下面是驱动初始化及维护设备列表的全流程

  1. PCI驱动结构体定义:设备的探测函数rtw_dev_probe(必经之路)
  2. PCI驱动的探测函数,是驱动初始化的核心入口
  3. PCI设备对象初始化,负责分配和初始化设备级别的数据结构dvobj_priv,并完成PCI设备的基本配置
  4. 设备对象初始化的基础函数,负责分配和初始化dvobj_priv结构体的所有基础成员
  5. 动态检查定时器的处理函数,每2秒执行一次,是整个驱动周期性维护的入口

  6. 接口级别的动态检查定时器处理函数,每个网络接口(adapter)都有自己的定时器,负责该接口的周期性维护
  7. 是一个周期性超时检查的核心函数,每2秒执行一次,负责维护所有关联终端的状态、收集统计信息、进行各种特性检查
  8. 如此繁杂的函数,在此时,我们要学习的框架,而非细则。所以我们把这个函数简化:

    如下是此函数的备注与解析(重点)
voidexpire_timeout_chk(_adapter *padapter)
{//这是一个周期性超时检查的核心函数,每2秒执行一次,负责维护所有关联终端的状态、收集统计信息、进行各种特性检查
_list *phead,*plist;// 链表头指针和遍历指针
u8 updated = _FALSE;// 更新标志,记录是否有终端状态变化需要通知上层
structsta_info*psta =NULL;// 当前遍历到的终端结构体指针
structsta_priv*pstapriv =&padapter->stapriv;// 获取终端管理私有数据
u8 low_rssi_sta_num =0;
int low_rssi_sta_list[NUM_STA]={0};
#ifdefCONFIG_RTW_CROSSBAND_REPEATER_SUPPORT
_adapter *vxd_padapter =NULL,*tmp_padapter =NULL;
structsta_info*crossband_psta =NULL;
u16 clm_result;
u16 ch_utilization;
#endif
structdvobj_priv*dvobj =adapter_to_dvobj(padapter);// 获取设备对象
structrtw_phl_com_t*phl_com =GET_HAL_DATA(dvobj);// 获取PHY层通用数据
#ifdefCONFIG_WFA_OFDMA_Logo_Test
structru_grp_table*rugrptable =&phl_com->rugrptable[padapter->phl_role->id];
structru_common_ctrl ru_ctrl =&rugrptable->ru_ctrl;
#endif#ifdef CONFIG_24G_256QAMu8 vht_2g_sta_num =0;int i;int vht_2g_sta_offset;int vht_2g_sta_list[NUM_STA]={0};#endif / CONFIG_24G_256QAM */
padapter->up_time +=2;// 系统运行时间增加2秒

#ifdefCONFIG_VW_REFINE
padapter->small_pkt =0;
padapter->big_pkt =0;
#endif
#ifdefCONFIG_OCTOSCOPE_REFINE// Octoscope优化(条件编译)
padapter->octoscope_big_pkt =0;
padapter->octoscope_medium_pkt =0;
padapter->octoscope_small_pkt =0;
#endif
#ifdefCONFIG_RTW_CROSSBAND_REPEATER_SUPPORT
if(is_primary_adapter(padapter)){
rtw_crossband_update_status(padapter);
}
#endif
reset_accumulated_tp(padapter);// 重置累积吞吐量统计

/*----------------------- 遍历关联链表,检查所有终端 -----------------------*/
/*check every assoc station status*/
_rtw_spinlock_bh(&pstapriv->asoc_list_lock);// 加锁保护关联链表(防止并发修改)
phead =&pstapriv->asoc_list;// 获取链表头
plist =get_next(phead);// 获取第一个实际节点
// 遍历整个关联链表
while((rtw_end_of_queue_search(phead, plist))== _FALSE){
// 通过链表节点获取包含它的sta_info结构体
psta =LIST_CONTAINOR(plist,structsta_info, asoc_list);
plist =get_next(plist);// 预取下一个节点(防止删除当前节点后丢失)
psta->link_time +=2;/* link time add 2 secs */// 终端连接时间增加2秒

#ifdefCONFIG_24G_256QAM // 检查终端是否可能支持2.4G VHT(通过接收速率判断)
if(padapter->registrypriv.wifi_mib.vht_proprietary & VHT_2G_CHK_RX_RATE &&
!psta->phl_sta->vht_2g_supported &&// 尚未标记为支持
is_supported_24g(padapter->registrypriv.band_type)&&// 网卡支持2.4G频段
is_supported_ht(psta->phl_sta->wmode)&&// sta支持HT模式
!is_supported_vht(psta->phl_sta->wmode)){// 尚未支持VHT
u16 rate = psta->cur_rx_data_rate;// 获取当前接收速率
if(rate >= RTW_DATA_RATE_VHT_NSS1_MCS0 && rate <= RTW_DATA_RATE_VHT_NSS4_MCS9){
psta->phl_sta->vht_2g_supported =1;// 标记为支持2.4G VHT
if(padapter->registrypriv.wifi_mib.vht_proprietary & VHT_2G_UPT_RA)
rtw_phl_ra_update(dvobj->phl, psta->phl_sta);// 更新速率自适应算法
}
}
// 收集需要调查VHT 2.4G支持的终端
if(padapter->registrypriv.wifi_mib.vht_proprietary & VHT_2G_SURVEY &&
   psta->vht_2g_chk_cnt <5&&// 检查次数小于5次
!psta->phl_sta->vht_2g_supported){// 尚未支持
vht_2g_sta_offset =rtw_stainfo_offset(pstapriv, psta);// 获取终端偏移量
if(stainfo_offset_valid(vht_2g_sta_offset))// 如果偏移量有效
vht_2g_sta_list[vht_2g_sta_num++]= vht_2g_sta_offset;// 加入待调查列表
}

#endif/* CONFIG_24G_256QAM */
#ifdefCONFIG_ATMEL_RC_PATCH
RTW_INFO("%s:%d  psta=%p, %02x,%02x||%02x,%02x  \n\n", func,  LINE,
psta, pstapriv->atmel_rc_pattern[0], pstapriv->atmel_rc_pattern[5], psta->phl_sta->mac_addr[0], psta->phl_sta->mac_addr[5]);
if(_rtw_memcmp((void*)pstapriv->atmel_rc_pattern,(void*)(psta->phl_sta->mac_addr), ETH_ALEN)== _TRUE)
continue;
if(psta->flag_atmel_rc)
continue;
RTW_INFO("%s: debug line:%d\n", func, LINE);
#endif
#ifdefCONFIG_AUTO_AP_MODE
if(psta->isrc)// 如果是中继客户端,跳过(不进行过期检查)
continue;
#endif
/*----------------------- 核心维护操作 -----------------------*/
/* CONFIG_VW_REFINE */
collect_sta_traffic_statistics(padapter, psta);// 收集终端流量统计信息
//VCS_update(padapter, psta);
if(!padapter->registrypriv.wifi_mib.rssi_ru_dump)
display_sta_dump(padapter, psta);// 显示终端基本信息

#ifdefCONFIG_WFA_OFDMA_Logo_Test
else
display_sta_ofdma_info_dump(padapter, psta);// 显示OFDMA信息
#endif
#ifdefCONFIG_SNR_RPT
rtw_reset_snr_statistics(psta);// 重置SNR统计(信噪比)
#endif
accumulate_whole_tp(padapter, psta);// 累计总吞吐量

#ifdefTX_BEAMFORMING
rtw_bf_chk_per_sta(padapter, psta);// 检查每个终端的波束成形状态
#endif
#ifdefCONFIG_WLAN_MANAGER
rtw_netlink_send_sta_rpt_msg(padapter, psta);// 通过netlink发送终端报告消息
#endif
#ifdefCONFIG_RTW_MULTI_AP
if(padapter->registrypriv.wifi_mib.multiap_report_rcpi_threshold !=0){// 如果设置了多AP RCPI报告阈值
core_map_ap_sta_rssi_trigger(padapter, psta);// 检查RSSI触发条件
}
#endif
#ifdefWIFI_LOGO_HE_4_52_1
wifi_HE_logo_4_52_1_chk(padapter, psta);// WiFi HE标志测试(4.52.1)
#endif
}//wifi循环结束
_rtw_spinunlock_bh(&pstapriv->asoc_list_lock);// 解锁关联链表

#ifdefCONFIG_24G_256QAM/----------------------- 后处理:VHT 2.4G调查 -----------------------/
if(padapter->registrypriv.wifi_mib.vht_proprietary & VHT_2G_SURVEY){
for(=0; i < vht_2g_sta_num; i++){
psta =rtw_get_stainfo_by_offset(pstapriv, vht_2g_sta_list[i]);
rtw_vht_2g_survey(padapter, psta);
}
}
#endif/* CONFIG_24G_256QAM */
#ifdefCONFIG_PHL_TX_STATS_CORE/----------------------- 设备级TX统计 -----------------------/
rtw_phl_acc_device_tx_statistics(padapter->dvobj->phl,
padapter->xmitpriv.tx_bytes, padapter->xmitpriv.tx_uc_pkts, padapter->tp_total_tx);
#endif
/----------------------- 总吞吐量显示 -----------------------/
if((padapter->registrypriv.wifi_mib.totaltp_dump)&&
(padapter->up_time % padapter->registrypriv.wifi_mib.totaltp_dump ==0)){
RTW_PRINT("(TotalTP %d)(T:%d, R:%d)\n",// 打印总收发吞吐量
(padapter->tp_total_trx >>10),
(padapter->tp_total_tx >>10),
(padapter->tp_total_rx >>10));
}
#ifdefCONFIG_TX_DEFER/----------------------- 发送延迟调度 -----------------------/
{
structxmit_priv*pxmitpriv =&padapter->xmitpriv;
if(padapter->registrypriv.wifi_mib.defer_tx_sched){
if(pxmitpriv->defer_tx_flag){
rtw_phl_tx_req_notify(padapter->dvobj->phl);
ATOMIC_SET(&pxmitpriv->defer_tx_cnt,0);
}

if((padapter->tp_total_tx >>10)> padapter->registrypriv.wifi_mib.defer_tx_tp){
pxmitpriv->defer_tx_flag =1;
_set_timer(&pxmitpriv->tx_defer_timer,500);
}else{
ATOMIC_SET(&pxmitpriv->defer_tx_cnt,0);
pxmitpriv->defer_tx_flag =0;
_cancel_timer_ex(&pxmitpriv->tx_defer_timer);
}
}else{
pxmitpriv->defer_tx_flag =0;
}
}

#endif
/----------------------- 队列存活检查 -----------------------/
updated |=chk_auth_queue_sta_alive(padapter);// 检查认证队列中的终端是否存活
updated |=chk_assoc_queue_sta_alive(padapter);// 检查关联队列中的终端是否存活
/*----------------------- 更新关联客户端信息 -----------------------*/
if(updated)
associated_clients_update(padapter, updated, STA_INFO_UPDATE_ALL);// 更新所有信息
else
associated_clients_update(padapter,1, STA_INFO_UPDATE_PROTECTION_MODE);// 只更新保护模式

#ifdefCONFIG_ADPTVTY_CONTROL/----------------------- 自适应控制 -----------------------/
adaptivity_dynamic_control(padapter);// 自适应动态控制(可能用于干扰避免)
#endif/* CONFIG_ADPTVTY_CONTROL */
#ifdefRTW_SUPPORT_BANDWIDTH_SWITCH/----------------------- 带宽切换检查 -----------------------/
if(check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE)== _TRUE &&is_primary_adapter(padapter)&&(dvobj->bws_enable &0x1))// 如果是AP模式、主适配器、且启用了带宽切换
rtw_check_Bandwidth(padapter);// 检查是否需要切换带宽(20/40/80MHz)
#endif
}

到现在好像都还没有突出我们跟踪这个周期性维护设备列表的学习重点,现在我们就从更新信息上挑一部分来理解如何更新的

首先给出一个问题

  • 从PHY(物理层)获取数据的逻辑是什么?
  1. 那就以变换比较频繁的流量统计函数为例

    这是一个终端流量统计收集的核心函数,负责从PHY层获取各种统计信息,计算吞吐量、重传率,并进行链路质量监控

  2. 如下是此函数的重点解析

    对以上参数进行性对比分析:

    只有清楚了参数的作用,才可以理解后面的算法统计

  3. 从PHY层获取该终端的发送报告,并计算出所有队列的的计数

  4. 计算重传率

  5. 错误校验:防止因计数器回绕导致last值大于当前值

  6. 计算当前周期内的增量,可以计算吞吐量,计算吞吐量:公式:字节 * 8(转bit) / 2(2秒周期) / 1024(转K)

  7. 更新last记录为当前值(为下一个周期准备)

  8. 获取所有队列发送统计,并更新到sta_info

  9. 更新终端速率、带宽到sta_info结构体中

    如下是代码:

voidcollect_sta_traffic_statistics(_adapter *adapter,structsta_info*sta)
{//这是一个终端流量统计收集的核心函数,负责从PHY层获取各种统计信息,计算吞吐量、重传率,并进行链路质量监控
u64 curr_tx_bytes =0, curr_rx_bytes =0;
u32 curr_tx_mbytes =0, curr_rx_mbytes =0;
u64 curr_rx_pkts =0, curr_rx_retry_pkts =0;
u32 tx_ok_cnt[PHL_AC_QUEUE_TOTAL];// 各队列发送成功计数
u32 tx_fail_cnt[PHL_AC_QUEUE_TOTAL];//各队列发送失败计数
u32 tx_ra_retry_cnt[PHL_AC_QUEUE_TOTAL];//各队列速率自适应重传计数,关注的是速率选择的准确性
u32 tx_ra_ok_cnt[PHL_AC_QUEUE_TOTAL];// 各队列速率自适应成功计数,关注的是速率选择的准确性
u32 tx_ok_cnt_total =0;//所有队列发送成功总数
u32 tx_fail_cnt_total =0;//所有队列发送失败总数
u32 tx_ra_retry_total_cnt =0;//所有队列速率自适应重传总数
u32 tx_ra_ok_total_cnt =0;//所有队列速率自适应成功总数
u8 i;
#ifdefCTC_WIFI_DIAG
u32 maxTxFailCnt =300;// MAX Tx fail packet count
u32 minTxFailCnt =30;// MIN Tx fail packet count; this value should be less than maxTxFailCnt.
u32 txFailSecThr =3;// threshold of Tx Fail Time (in second)
#endif

/*----------------------- 初始化统计数组 -----------------------*/
_rtw_memset(&tx_ok_cnt,0,sizeof(u32)*PHL_AC_QUEUE_TOTAL);// 清零发送成功数组
_rtw_memset(&tx_fail_cnt,0,sizeof(u32)*PHL_AC_QUEUE_TOTAL);// 清零发送成功数组
_rtw_memset(&tx_ra_retry_cnt,0,sizeof(u32)*PHL_AC_QUEUE_TOTAL);// 清零重传数组
_rtw_memset(&tx_ra_ok_cnt,0,sizeof(u32)*PHL_AC_QUEUE_TOTAL);// 清零成功数组

if(sta &&!is_broadcast_mac_addr(sta->phl_sta->mac_addr)){//只对有效且非广播终端处理 
rtw_phl_get_tx_ra_retry_rpt(adapter->dvobj->phl, sta->phl_sta,// 从PHY层获取该终端的发送重传报告
   tx_ra_retry_cnt, PHL_AC_QUEUE_TOTAL,1);
rtw_phl_get_tx_ra_ok_rpt(adapter->dvobj->phl, sta->phl_sta,// 从PHY层获取该终端的发送成功报告
tx_ra_ok_cnt, PHL_AC_QUEUE_TOTAL,1);
for(=0; i < PHL_AC_QUEUE_TOTAL; i++){// 累加所有队列的重传和成功计数
tx_ra_retry_total_cnt += tx_ra_retry_cnt[i];
tx_ra_ok_total_cnt += tx_ra_ok_cnt[i];
}
if(tx_ra_ok_total_cnt + tx_ra_retry_total_cnt)//计算重传率
sta->sta_stats.tx_retry_ratio =(tx_ra_retry_total_cnt *100)/(tx_ra_ok_total_cnt + tx_ra_retry_total_cnt);
else
sta->sta_stats.tx_retry_ratio =0;// 没有数据时重传率为0
// 防止因计数器回绕导致last值大于当前值
if(sta->sta_stats.last_tx_bytes > sta->sta_stats.tx_bytes)
sta->sta_stats.last_tx_bytes =  sta->sta_stats.tx_bytes;
if(sta->sta_stats.last_rx_bytes > sta->sta_stats.rx_bytes)
sta->sta_stats.last_rx_bytes = sta->sta_stats.rx_bytes;
if(sta->sta_stats.last_rx_bc_bytes > sta->sta_stats.rx_bc_bytes)
sta->sta_stats.last_rx_bc_bytes = sta->sta_stats.rx_bc_bytes;
if(sta->sta_stats.last_rx_mc_bytes > sta->sta_stats.rx_mc_bytes)
sta->sta_stats.last_rx_mc_bytes = sta->sta_stats.rx_mc_bytes;
if(sta->sta_stats.last_rx_data_pkts > sta->sta_stats.rx_data_pkts)
sta->sta_stats.last_rx_data_pkts = sta->sta_stats.rx_data_pkts;
if(sta->sta_stats.last_tx_pkts > sta->sta_stats.tx_pkts)
sta->sta_stats.last_tx_pkts = sta->sta_stats.tx_pkts;
if(sta->sta_stats.last_rx_data_retry_pkts > sta->sta_stats.rx_data_retry_pkts)
sta->sta_stats.last_rx_data_retry_pkts = sta->sta_stats.rx_data_retry_pkts;

//计算当前周期内的增量
curr_tx_bytes = sta->sta_stats.tx_bytes - sta->sta_stats.last_tx_bytes;
curr_rx_bytes = sta->sta_stats.rx_bytes - sta->sta_stats.last_rx_bytes;

// 当前周期包数
sta->sta_stats.rx_data_pkts_cur = sta->sta_stats.rx_data_pkts - sta->sta_stats.last_rx_data_pkts;
sta->sta_stats.tx_data_pkts_cur = sta->sta_stats.tx_pkts - sta->sta_stats.last_tx_pkts;
sta->sta_stats.rx_data_retry_pkts_cur = sta->sta_stats.rx_data_retry_pkts - sta->sta_stats.last_rx_data_retry_pkts;
sta->sta_stats.tx_data_retry_pkts_cur = tx_ra_retry_total_cnt;// 当前重传数直接从报告获取

//计算吞吐量:公式:字节 * 8(转bit) / 2(2秒周期) / 1024(转K)
sta->sta_stats.tx_tp_kbits =(curr_tx_bytes *8/2)>>10;/*Kbps*/
sta->sta_stats.rx_tp_kbits =(curr_rx_bytes *8/2)>>10;/*Kbps*/

//计算平滑吞吐量
sta->sta_stats.smooth_tx_tp_kbits =(sta->sta_stats.smooth_tx_tp_kbits *6/10)+(sta->sta_stats.tx_tp_kbits *4/10);/*Kbps*/
sta->sta_stats.smooth_rx_tp_kbits =(sta->sta_stats.smooth_rx_tp_kbits *6/10)+(sta->sta_stats.rx_tp_kbits *4/10);/*Kbps*/

#ifdefCONFIG_AMSDU_HW_TIMER// AMSDU硬件定时器专用的平滑包率
sta->sta_stats.smooth_tx_data_pkts_pps =(sta->sta_stats.smooth_tx_data_pkts_pps *3/10)+(sta->sta_stats.tx_data_pkts_cur *7/10);/Kbps/
#endif
//计算PHY层移动平均吞吐量:转换为MBps:字节/2(2秒周期)/ 1024/1024(转MB) = 字节/2 >> 20
curr_tx_mbytes =(curr_tx_bytes /2)>>20;/MBps/
curr_rx_mbytes =(curr_rx_bytes /2)>>20;/MBps/
// PHY层移动平均 
sta->phl_sta->stats.tx_moving_average_tp =
(sta->phl_sta->stats.tx_moving_average_tp /10)+(curr_tx_mbytes *9/10);/*MBps*/

sta->phl_sta->stats.rx_moving_average_tp =
(sta->phl_sta->stats.rx_moving_average_tp /10)+(curr_rx_mbytes *9/10);/*MBps*/

//更新last记录为当前值(为下一个周期准备)
sta->sta_stats.last_tx_bytes = sta->sta_stats.tx_bytes;
sta->sta_stats.last_rx_bytes = sta->sta_stats.rx_bytes;
sta->sta_stats.last_rx_bc_bytes = sta->sta_stats.rx_bc_bytes;
sta->sta_stats.last_rx_mc_bytes = sta->sta_stats.rx_mc_bytes;
sta->sta_stats.last_rx_data_pkts = sta->sta_stats.rx_data_pkts;
sta->sta_stats.last_tx_pkts = sta->sta_stats.tx_pkts;
sta->sta_stats.last_rx_data_retry_pkts = sta->sta_stats.rx_data_retry_pkts;
sta->sta_stats.last_tx_data_retry_pkts = sta->sta_stats.tx_data_retry_pkts;

//累计重传统计 
sta->sta_stats.tx_data_retry_pkts += tx_ra_retry_total_cnt;
adapter->xmitpriv.tx_data_retry += tx_ra_retry_total_cnt;
#ifdefCONFIG_VW_REFINE
adapter->vw_retry_cnt[sta->phl_sta->macid]= sta->sta_stats.tx_data_retry_pkts;
#endif/* CONFIG_VW_REFINE */

//获取发送成功/失败统计
rtw_phl_get_tx_ok_rpt(adapter->dvobj->phl, sta->phl_sta, tx_ok_cnt, PHL_AC_QUEUE_TOTAL);
rtw_phl_get_tx_fail_rpt(adapter->dvobj->phl, sta->phl_sta, tx_fail_cnt, PHL_AC_QUEUE_TOTAL);
for(=0; i < PHL_AC_QUEUE_TOTAL; i++){
tx_ok_cnt_total += tx_ok_cnt[i];
tx_fail_cnt_total += tx_fail_cnt[i];
}

//快速断开检查 
fast_check_sta_disconnect(adapter, sta);// 根据最近统计快速判断是否需要断开终端

#ifdefCTC_WIFI_DIAG//连续发送失败检测
if(tx_ok_cnt_total !=0){// 有成功发送
sta->sta_stats.tx_conti_fail =0;
sta->sta_stats.tx_conti_fail_cnt =0;
sta->sta_stats.tx_last_good_time = adapter->up_time;
sta->sta_stats.leave =0;
}elseif(tx_fail_cnt_total !=0){// 没有成功但有失败
sta->sta_stats.tx_conti_fail++;
sta->sta_stats.tx_conti_fail_cnt += tx_fail_cnt_total;
ctcwifi_assoc_err(adapter, sta->phl_sta->mac_addr,"WiFi frames losing [tx_fail increases]\n");
RTW_INFO("detect: txfail=%d, tx_conti_fail_cnt=%d\n", tx_fail_cnt_total, sta->sta_stats.tx_conti_fail_cnt);

if(((sta->sta_stats.tx_conti_fail_cnt >= maxTxFailCnt)||// 判断是否达到断开阈值
// 超过相对阈值且时间足够
(sta->sta_stats.tx_conti_fail_cnt >= minTxFailCnt && adapter->up_time >=(sta->sta_stats.tx_last_good_time + txFailSecThr)))&&
(sta->sta_stats.tx_conti_fail >=3)){// 连续失败次数至少3次

// 打印详细信息
RTW_INFO("** tx_conti_fail_cnt=%d (min=%d,max=%d)\n", sta->sta_stats.tx_conti_fail_cnt, minTxFailCnt, maxTxFailCnt);
RTW_INFO("** tx_last_good_time=%d, up_time=%d (Thr:%d)\n",(int)sta->sta_stats.tx_last_good_time,(int)adapter->up_time, txFailSecThr );
RTW_INFO("AP is going to del_sta %02X:%02X:%02X:%02X:%02X:%02X\n", sta->phl_sta->mac_addr[0], sta->phl_sta->mac_addr[1],sta->phl_sta->mac_addr[2], sta->phl_sta->mac_addr[3], sta->phl_sta->mac_addr[4], sta->phl_sta->mac_addr[5]);
ctcwifi_assoc_err(adapter, sta->phl_sta->mac_addr,"WiFi frames losing [STA is considered as disappeared]\n");

// 重置计数器
sta->sta_stats.tx_conti_fail =0;
sta->sta_stats.tx_conti_fail_cnt =0;
sta->sta_stats.tx_last_good_time = adapter->up_time;

// 标记终端为"离开",设置3秒后过期
if(sta->sta_stats.leave ==0){
sta->sta_stats.leave =1;
sta->expire_to =3;
}
}
}

#endif
//更新成功/失败累计统计
sta->sta_stats.last_tx_ok_cnt = sta->sta_stats.tx_ok_cnt;
sta->sta_stats.last_tx_fail_cnt = sta->sta_stats.tx_fail_cnt;
sta->sta_stats.tx_ok_cnt += tx_ok_cnt_total;
sta->sta_stats.tx_fail_cnt += tx_fail_cnt_total;
#ifdefCONFIG_PHL_TX_STATS_CORE//同步TX统计到PHL层
rtw_phl_sync_tx_statistics(sta->phl_sta,
sta->sta_stats.last_tx_bytes, sta->sta_stats.last_tx_bytes, sta->sta_stats.tx_tp_kbits);
#endif
_check_sta_continuous_icverr(adapter, sta);
//更新终端速率、带宽到sta_info结构体中
_update_sta_tx_status(adapter, sta);
//终端动态控制
sta_dynamic_control(adapter, sta);
}

}

应用层来获取终端信息的驱动流程

  1. 访问命令

  2. 驱动注册的open函数

  3. proc文件系统的打开操作函数


  4. 重点操作

    如下是流程框图:

  5. 终端信息输出到log平台

  6. 终端输出信息与之对应:

    如下是代码:

for(=0; i < NUM_STA; i++){
phead =&(pstapriv->sta_hash[i]);
plist =get_next(phead);
while((rtw_end_of_queue_search(phead, plist))== _FALSE){
psta =LIST_CONTAINOR(plist,structsta_info, hash_list);
plist =get_next(plist);
memset(mac,0,sizeof(mac));
if(psta->phl_sta)
{
snprintf(mac,sizeof(mac), MAC_FMT,MAC_ARG(psta->phl_sta->mac_addr));
if(strncmp(mac, self_mac,sizeof(mac))&&strncmp(mac, bmc_mac,sizeof(mac)))
{
#if(WFO_SYNC_STA_ST==1)
if(wfo_sync_sta_st_fp&&p&&p->st)wfo_sync_sta_st_fp(psta, p->st, staNum);
#endif/* WFO_SYNC_STA_ST */
staNum++;
if(do_proc)_write_sta_info(m, psta, staNum,0);
}
}
}
}

PS:纸上得来终觉浅,绝知此事要躬行

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-27 11:25:43 HTTP/2.0 GET : https://f.mffb.com.cn/a/480546.html
  2. 运行时间 : 0.173546s [ 吞吐率:5.76req/s ] 内存消耗:5,126.12kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=5cc9e7469270257e8e3d71bb2055ec7b
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000484s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000709s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000291s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.007317s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000610s ]
  6. SELECT * FROM `set` [ RunTime:0.002887s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000578s ]
  8. SELECT * FROM `article` WHERE `id` = 480546 LIMIT 1 [ RunTime:0.001143s ]
  9. UPDATE `article` SET `lasttime` = 1774581943 WHERE `id` = 480546 [ RunTime:0.005258s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.000320s ]
  11. SELECT * FROM `article` WHERE `id` < 480546 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000622s ]
  12. SELECT * FROM `article` WHERE `id` > 480546 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000385s ]
  13. SELECT * FROM `article` WHERE `id` < 480546 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.000934s ]
  14. SELECT * FROM `article` WHERE `id` < 480546 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.008939s ]
  15. SELECT * FROM `article` WHERE `id` < 480546 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.005675s ]
0.175165s