WIP FPC-III support
[linux/fpc-iii.git] / net / mac80211 / s1g.c
blobc33f332b049af2cb746ec82f001bd3dd0fd5089a
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"
10 void ieee80211_s1g_sta_rate_init(struct sta_info *sta)
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);