diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 22:40:44 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-08 10:06:24 +0100 |
commit | 66cd794e3c30b8af3b6befe42a378557efb3114a (patch) | |
tree | 634b463fb269ac3142f2e297350c685e03a20163 /include/net/cfg80211.h | |
parent | a4956dca0764569640374ae1afb8be54a23201b8 (diff) | |
download | linux-66cd794e3c30b8af3b6befe42a378557efb3114a.tar.gz linux-66cd794e3c30b8af3b6befe42a378557efb3114a.tar.bz2 linux-66cd794e3c30b8af3b6befe42a378557efb3114a.zip |
nl80211: add HT/VHT capabilities to AP parameters
For the benefit of drivers that rebuild IEs in firmware, parse the
IEs for HT/VHT capabilities and the respective membership selector
in the (extended) supported rates. This avoids duplicating the same
code into all drivers that need this information.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 870549480e9b..5cfd2806a078 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -748,6 +748,10 @@ struct cfg80211_bitrate_mask { * @pbss: If set, start as a PCP instead of AP. Relevant for DMG * networks. * @beacon_rate: bitrate to be used for beacons + * @ht_cap: HT capabilities (or %NULL if HT isn't enabled) + * @vht_cap: VHT capabilities (or %NULL if VHT isn't enabled) + * @ht_required: stations must support HT + * @vht_required: stations must support VHT */ struct cfg80211_ap_settings { struct cfg80211_chan_def chandef; @@ -768,6 +772,10 @@ struct cfg80211_ap_settings { const struct cfg80211_acl_data *acl; bool pbss; struct cfg80211_bitrate_mask beacon_rate; + + const struct ieee80211_ht_cap *ht_cap; + const struct ieee80211_vht_cap *vht_cap; + bool ht_required, vht_required; }; /** |