18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * S1G handling 48c2ecf20Sopenharmony_ci * Copyright(c) 2020 Adapt-IP 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci#include <linux/ieee80211.h> 78c2ecf20Sopenharmony_ci#include <net/mac80211.h> 88c2ecf20Sopenharmony_ci#include "ieee80211_i.h" 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_civoid ieee80211_s1g_sta_rate_init(struct sta_info *sta) 118c2ecf20Sopenharmony_ci{ 128c2ecf20Sopenharmony_ci /* avoid indicating legacy bitrates for S1G STAs */ 138c2ecf20Sopenharmony_ci sta->tx_stats.last_rate.flags |= IEEE80211_TX_RC_S1G_MCS; 148c2ecf20Sopenharmony_ci sta->rx_stats.last_rate = 158c2ecf20Sopenharmony_ci STA_STATS_FIELD(TYPE, STA_STATS_RATE_TYPE_S1G); 168c2ecf20Sopenharmony_ci} 17