aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPurushottam Kushwaha <pkushwah@qti.qualcomm.com>2016-09-14 08:08:44 -0400
committerJohannes Berg <johannes.berg@intel.com>2016-09-26 04:23:48 -0400
commita7c7fbff6a408d00431c705bbe3dfc5f51e3f1c4 (patch)
treeebd2c3b4a61bfaba2322c3e47378f3704a9a242b /include
parentc13ed534b8db543e4d8ead3885f4b06585a5771c (diff)
cfg80211: Add support to configure a beacon data rate
This allows an option to configure a single beacon tx rate for an AP. Signed-off-by: Purushottam Kushwaha <pkushwah@qti.qualcomm.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/cfg80211.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index bd26cc6e2d79..e0949c8bc2d1 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -676,6 +676,18 @@ struct cfg80211_acl_data {
676 struct mac_address mac_addrs[]; 676 struct mac_address mac_addrs[];
677}; 677};
678 678
679/*
680 * cfg80211_bitrate_mask - masks for bitrate control
681 */
682struct cfg80211_bitrate_mask {
683 struct {
684 u32 legacy;
685 u8 ht_mcs[IEEE80211_HT_MCS_MASK_LEN];
686 u16 vht_mcs[NL80211_VHT_NSS_MAX];
687 enum nl80211_txrate_gi gi;
688 } control[NUM_NL80211_BANDS];
689};
690
679/** 691/**
680 * struct cfg80211_ap_settings - AP configuration 692 * struct cfg80211_ap_settings - AP configuration
681 * 693 *
@@ -700,6 +712,7 @@ struct cfg80211_acl_data {
700 * MAC address based access control 712 * MAC address based access control
701 * @pbss: If set, start as a PCP instead of AP. Relevant for DMG 713 * @pbss: If set, start as a PCP instead of AP. Relevant for DMG
702 * networks. 714 * networks.
715 * @beacon_rate: masks for setting user configured beacon tx rate.
703 */ 716 */
704struct cfg80211_ap_settings { 717struct cfg80211_ap_settings {
705 struct cfg80211_chan_def chandef; 718 struct cfg80211_chan_def chandef;
@@ -719,6 +732,7 @@ struct cfg80211_ap_settings {
719 bool p2p_opp_ps; 732 bool p2p_opp_ps;
720 const struct cfg80211_acl_data *acl; 733 const struct cfg80211_acl_data *acl;
721 bool pbss; 734 bool pbss;
735 struct cfg80211_bitrate_mask beacon_rate;
722}; 736};
723 737
724/** 738/**
@@ -2010,17 +2024,6 @@ enum wiphy_params_flags {
2010 WIPHY_PARAM_DYN_ACK = 1 << 5, 2024 WIPHY_PARAM_DYN_ACK = 1 << 5,
2011}; 2025};
2012 2026
2013/*
2014 * cfg80211_bitrate_mask - masks for bitrate control
2015 */
2016struct cfg80211_bitrate_mask {
2017 struct {
2018 u32 legacy;
2019 u8 ht_mcs[IEEE80211_HT_MCS_MASK_LEN];
2020 u16 vht_mcs[NL80211_VHT_NSS_MAX];
2021 enum nl80211_txrate_gi gi;
2022 } control[NUM_NL80211_BANDS];
2023};
2024/** 2027/**
2025 * struct cfg80211_pmksa - PMK Security Association 2028 * struct cfg80211_pmksa - PMK Security Association
2026 * 2029 *