Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.10-rc4 16 lines 419 B view raw
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * S1G handling 4 * Copyright(c) 2020 Adapt-IP 5 */ 6#include <linux/ieee80211.h> 7#include <net/mac80211.h> 8#include "ieee80211_i.h" 9 10void ieee80211_s1g_sta_rate_init(struct sta_info *sta) 11{ 12 /* avoid indicating legacy bitrates for S1G STAs */ 13 sta->tx_stats.last_rate.flags |= IEEE80211_TX_RC_S1G_MCS; 14 sta->rx_stats.last_rate = 15 STA_STATS_FIELD(TYPE, STA_STATS_RATE_TYPE_S1G); 16}