aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/rndis_wlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c
index d0b1fb15c709..ed310f84f28b 100644
--- a/drivers/net/wireless/rndis_wlan.c
+++ b/drivers/net/wireless/rndis_wlan.c
@@ -1108,7 +1108,7 @@ static int rndis_iw_get_range(struct net_device *dev,
1108 /* fill in 802.11g rates */ 1108 /* fill in 802.11g rates */
1109 if (has_80211g_rates) { 1109 if (has_80211g_rates) {
1110 num = range->num_bitrates; 1110 num = range->num_bitrates;
1111 for (i = 0; i < sizeof(rates_80211g); i++) { 1111 for (i = 0; i < ARRAY_SIZE(rates_80211g); i++) {
1112 for (j = 0; j < num; j++) { 1112 for (j = 0; j < num; j++) {
1113 if (range->bitrate[j] == 1113 if (range->bitrate[j] ==
1114 rates_80211g[i] * 1000000) 1114 rates_80211g[i] * 1000000)