Search Linux Wireless

Re: [PATCH wireless-next v8 06/10] wifi: mac80211: add support to accumulate removed link statistics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2025-05-15 at 23:17 +0530, Sarika Sharma wrote:
> 
> Looks like we can flatten them. In existing code as well we have 
> flattened and use, during sta_set_sinfo()
> 
>          "if (!(sinfo->filled & BIT_ULL(NL80211_STA_INFO_TX_PACKETS))) {
>                  sinfo->tx_packets = 0;
>                  for (ac = 0; ac < IEEE80211_NUM_ACS; ac++)
>                          sinfo->tx_packets += 
> sta->deflink.tx_stats.packets[ac];
>                  sinfo->filled |= BIT_ULL(NL80211_STA_INFO_TX_PACKETS);
>          } "
> 

Indeed, weird, why do we even bother counting them per AC?

johannes





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux