diff options
Diffstat (limited to 'net/wireless/wext-compat.c')
-rw-r--r-- | net/wireless/wext-compat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c index 05186a47878f..167f7025ac98 100644 --- a/net/wireless/wext-compat.c +++ b/net/wireless/wext-compat.c | |||
@@ -1278,7 +1278,7 @@ static int cfg80211_wext_giwrate(struct net_device *dev, | |||
1278 | if (err) | 1278 | if (err) |
1279 | return err; | 1279 | return err; |
1280 | 1280 | ||
1281 | if (!(sinfo.filled & BIT(NL80211_STA_INFO_TX_BITRATE))) | 1281 | if (!(sinfo.filled & BIT_ULL(NL80211_STA_INFO_TX_BITRATE))) |
1282 | return -EOPNOTSUPP; | 1282 | return -EOPNOTSUPP; |
1283 | 1283 | ||
1284 | rate->value = 100000 * cfg80211_calculate_bitrate(&sinfo.txrate); | 1284 | rate->value = 100000 * cfg80211_calculate_bitrate(&sinfo.txrate); |
@@ -1320,7 +1320,7 @@ static struct iw_statistics *cfg80211_wireless_stats(struct net_device *dev) | |||
1320 | 1320 | ||
1321 | switch (rdev->wiphy.signal_type) { | 1321 | switch (rdev->wiphy.signal_type) { |
1322 | case CFG80211_SIGNAL_TYPE_MBM: | 1322 | case CFG80211_SIGNAL_TYPE_MBM: |
1323 | if (sinfo.filled & BIT(NL80211_STA_INFO_SIGNAL)) { | 1323 | if (sinfo.filled & BIT_ULL(NL80211_STA_INFO_SIGNAL)) { |
1324 | int sig = sinfo.signal; | 1324 | int sig = sinfo.signal; |
1325 | wstats.qual.updated |= IW_QUAL_LEVEL_UPDATED; | 1325 | wstats.qual.updated |= IW_QUAL_LEVEL_UPDATED; |
1326 | wstats.qual.updated |= IW_QUAL_QUAL_UPDATED; | 1326 | wstats.qual.updated |= IW_QUAL_QUAL_UPDATED; |
@@ -1334,7 +1334,7 @@ static struct iw_statistics *cfg80211_wireless_stats(struct net_device *dev) | |||
1334 | break; | 1334 | break; |
1335 | } | 1335 | } |
1336 | case CFG80211_SIGNAL_TYPE_UNSPEC: | 1336 | case CFG80211_SIGNAL_TYPE_UNSPEC: |
1337 | if (sinfo.filled & BIT(NL80211_STA_INFO_SIGNAL)) { | 1337 | if (sinfo.filled & BIT_ULL(NL80211_STA_INFO_SIGNAL)) { |
1338 | wstats.qual.updated |= IW_QUAL_LEVEL_UPDATED; | 1338 | wstats.qual.updated |= IW_QUAL_LEVEL_UPDATED; |
1339 | wstats.qual.updated |= IW_QUAL_QUAL_UPDATED; | 1339 | wstats.qual.updated |= IW_QUAL_QUAL_UPDATED; |
1340 | wstats.qual.level = sinfo.signal; | 1340 | wstats.qual.level = sinfo.signal; |
@@ -1347,9 +1347,9 @@ static struct iw_statistics *cfg80211_wireless_stats(struct net_device *dev) | |||
1347 | } | 1347 | } |
1348 | 1348 | ||
1349 | wstats.qual.updated |= IW_QUAL_NOISE_INVALID; | 1349 | wstats.qual.updated |= IW_QUAL_NOISE_INVALID; |
1350 | if (sinfo.filled & BIT(NL80211_STA_INFO_RX_DROP_MISC)) | 1350 | if (sinfo.filled & BIT_ULL(NL80211_STA_INFO_RX_DROP_MISC)) |
1351 | wstats.discard.misc = sinfo.rx_dropped_misc; | 1351 | wstats.discard.misc = sinfo.rx_dropped_misc; |
1352 | if (sinfo.filled & BIT(NL80211_STA_INFO_TX_FAILED)) | 1352 | if (sinfo.filled & BIT_ULL(NL80211_STA_INFO_TX_FAILED)) |
1353 | wstats.discard.retries = sinfo.tx_failed; | 1353 | wstats.discard.retries = sinfo.tx_failed; |
1354 | 1354 | ||
1355 | return &wstats; | 1355 | return &wstats; |