• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
ieee80211_s1g_sta_rate_init(struct sta_info * sta)10 void 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 }
17