diff options
author | Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> | 2012-07-02 02:32:32 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-02 09:11:10 -0400 |
commit | 3a0c52a6d82cc41da965284412608c74aece34e4 (patch) | |
tree | 4238ce4e3ed8ca7fde647491f48de7d3633a53e3 /net/wireless/core.c | |
parent | d9b3b28b93812715dcee8e4eed8cb8d0707a45f8 (diff) |
cfg80211: add 802.11ad (60gHz band) support
Add enumerations for both cfg80211 and nl80211.
This expands wiphy.bands etc. arrays.
Extend channel <-> frequency translation to cover 60g band
and modify the rate check logic since there are no legacy
mandatory rates (only MCS is used.)
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/core.c')
-rw-r--r-- | net/wireless/core.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index ca2b95f24846..e13365f1fa63 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c | |||
@@ -468,8 +468,14 @@ int wiphy_register(struct wiphy *wiphy) | |||
468 | continue; | 468 | continue; |
469 | 469 | ||
470 | sband->band = band; | 470 | sband->band = band; |
471 | 471 | if (WARN_ON(!sband->n_channels)) | |
472 | if (WARN_ON(!sband->n_channels || !sband->n_bitrates)) | 472 | return -EINVAL; |
473 | /* | ||
474 | * on 60gHz band, there are no legacy rates, so | ||
475 | * n_bitrates is 0 | ||
476 | */ | ||
477 | if (WARN_ON(band != IEEE80211_BAND_60GHZ && | ||
478 | !sband->n_bitrates)) | ||
473 | return -EINVAL; | 479 | return -EINVAL; |
474 | 480 | ||
475 | /* | 481 | /* |