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