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>
This commit is contained in:
parent
d9b3b28b93
commit
3a0c52a6d8
6 changed files with 42 additions and 11 deletions
|
@ -468,8 +468,14 @@ int wiphy_register(struct wiphy *wiphy)
|
|||
continue;
|
||||
|
||||
sband->band = band;
|
||||
|
||||
if (WARN_ON(!sband->n_channels || !sband->n_bitrates))
|
||||
if (WARN_ON(!sband->n_channels))
|
||||
return -EINVAL;
|
||||
/*
|
||||
* on 60gHz band, there are no legacy rates, so
|
||||
* n_bitrates is 0
|
||||
*/
|
||||
if (WARN_ON(band != IEEE80211_BAND_60GHZ &&
|
||||
!sband->n_bitrates))
|
||||
return -EINVAL;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue