aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mac80211_hwsim.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-10-27 15:53:58 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-30 16:49:19 -0400
commitd130eb498c75095297debbca596b19fcdc823924 (patch)
treec4c49e80e62c56e87072419f7d158709d5d77647 /drivers/net/wireless/mac80211_hwsim.c
parent1d9c185d67e61737562befdc6b0c4f19b6a85be6 (diff)
mac80211_hwsim: don't register CCK rates on 5ghz
This buglet confused me a lot just now ... Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 38cfd79e0590..d2b2e5e739b7 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -1045,19 +1045,20 @@ static int __init init_mac80211_hwsim(void)
1045 sband->channels = data->channels_2ghz; 1045 sband->channels = data->channels_2ghz;
1046 sband->n_channels = 1046 sband->n_channels =
1047 ARRAY_SIZE(hwsim_channels_2ghz); 1047 ARRAY_SIZE(hwsim_channels_2ghz);
1048 sband->bitrates = data->rates;
1049 sband->n_bitrates = ARRAY_SIZE(hwsim_rates);
1048 break; 1050 break;
1049 case IEEE80211_BAND_5GHZ: 1051 case IEEE80211_BAND_5GHZ:
1050 sband->channels = data->channels_5ghz; 1052 sband->channels = data->channels_5ghz;
1051 sband->n_channels = 1053 sband->n_channels =
1052 ARRAY_SIZE(hwsim_channels_5ghz); 1054 ARRAY_SIZE(hwsim_channels_5ghz);
1055 sband->bitrates = data->rates + 4;
1056 sband->n_bitrates = ARRAY_SIZE(hwsim_rates) - 4;
1053 break; 1057 break;
1054 default: 1058 default:
1055 break; 1059 break;
1056 } 1060 }
1057 1061
1058 sband->bitrates = data->rates;
1059 sband->n_bitrates = ARRAY_SIZE(hwsim_rates);
1060
1061 sband->ht_cap.ht_supported = true; 1062 sband->ht_cap.ht_supported = true;
1062 sband->ht_cap.cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | 1063 sband->ht_cap.cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
1063 IEEE80211_HT_CAP_GRN_FLD | 1064 IEEE80211_HT_CAP_GRN_FLD |