aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/debugfs_netdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/debugfs_netdev.c')
-rw-r--r--net/mac80211/debugfs_netdev.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c
index 37ea30e0754c..a5ba739cd2a7 100644
--- a/net/mac80211/debugfs_netdev.c
+++ b/net/mac80211/debugfs_netdev.c
@@ -169,21 +169,21 @@ static ssize_t ieee80211_if_write_##name(struct file *file, \
169 IEEE80211_IF_FILE_R(name) 169 IEEE80211_IF_FILE_R(name)
170 170
171/* common attributes */ 171/* common attributes */
172IEEE80211_IF_FILE(rc_rateidx_mask_2ghz, rc_rateidx_mask[IEEE80211_BAND_2GHZ], 172IEEE80211_IF_FILE(rc_rateidx_mask_2ghz, rc_rateidx_mask[NL80211_BAND_2GHZ],
173 HEX); 173 HEX);
174IEEE80211_IF_FILE(rc_rateidx_mask_5ghz, rc_rateidx_mask[IEEE80211_BAND_5GHZ], 174IEEE80211_IF_FILE(rc_rateidx_mask_5ghz, rc_rateidx_mask[NL80211_BAND_5GHZ],
175 HEX); 175 HEX);
176IEEE80211_IF_FILE(rc_rateidx_mcs_mask_2ghz, 176IEEE80211_IF_FILE(rc_rateidx_mcs_mask_2ghz,
177 rc_rateidx_mcs_mask[IEEE80211_BAND_2GHZ], HEXARRAY); 177 rc_rateidx_mcs_mask[NL80211_BAND_2GHZ], HEXARRAY);
178IEEE80211_IF_FILE(rc_rateidx_mcs_mask_5ghz, 178IEEE80211_IF_FILE(rc_rateidx_mcs_mask_5ghz,
179 rc_rateidx_mcs_mask[IEEE80211_BAND_5GHZ], HEXARRAY); 179 rc_rateidx_mcs_mask[NL80211_BAND_5GHZ], HEXARRAY);
180 180
181static ssize_t ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_2ghz( 181static ssize_t ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_2ghz(
182 const struct ieee80211_sub_if_data *sdata, 182 const struct ieee80211_sub_if_data *sdata,
183 char *buf, int buflen) 183 char *buf, int buflen)
184{ 184{
185 int i, len = 0; 185 int i, len = 0;
186 const u16 *mask = sdata->rc_rateidx_vht_mcs_mask[IEEE80211_BAND_2GHZ]; 186 const u16 *mask = sdata->rc_rateidx_vht_mcs_mask[NL80211_BAND_2GHZ];
187 187
188 for (i = 0; i < NL80211_VHT_NSS_MAX; i++) 188 for (i = 0; i < NL80211_VHT_NSS_MAX; i++)
189 len += scnprintf(buf + len, buflen - len, "%04x ", mask[i]); 189 len += scnprintf(buf + len, buflen - len, "%04x ", mask[i]);
@@ -199,7 +199,7 @@ static ssize_t ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_5ghz(
199 char *buf, int buflen) 199 char *buf, int buflen)
200{ 200{
201 int i, len = 0; 201 int i, len = 0;
202 const u16 *mask = sdata->rc_rateidx_vht_mcs_mask[IEEE80211_BAND_5GHZ]; 202 const u16 *mask = sdata->rc_rateidx_vht_mcs_mask[NL80211_BAND_5GHZ];
203 203
204 for (i = 0; i < NL80211_VHT_NSS_MAX; i++) 204 for (i = 0; i < NL80211_VHT_NSS_MAX; i++)
205 len += scnprintf(buf + len, buflen - len, "%04x ", mask[i]); 205 len += scnprintf(buf + len, buflen - len, "%04x ", mask[i]);