Skip to content

Commit a7c7fbf

Browse files
Purushottam Kushwahajmberg-intel
authored andcommitted
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>
1 parent c13ed53 commit a7c7fbf

File tree

2 files changed

+302
-233
lines changed

2 files changed

+302
-233
lines changed

include/net/cfg80211.h

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,18 @@ struct cfg80211_acl_data {
676676
struct mac_address mac_addrs[];
677677
};
678678

679+
/*
680+
* cfg80211_bitrate_mask - masks for bitrate control
681+
*/
682+
struct 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+
679691
/**
680692
* struct cfg80211_ap_settings - AP configuration
681693
*
@@ -700,6 +712,7 @@ struct cfg80211_acl_data {
700712
* MAC address based access control
701713
* @pbss: If set, start as a PCP instead of AP. Relevant for DMG
702714
* networks.
715+
* @beacon_rate: masks for setting user configured beacon tx rate.
703716
*/
704717
struct cfg80211_ap_settings {
705718
struct cfg80211_chan_def chandef;
@@ -719,6 +732,7 @@ struct cfg80211_ap_settings {
719732
bool p2p_opp_ps;
720733
const struct cfg80211_acl_data *acl;
721734
bool pbss;
735+
struct cfg80211_bitrate_mask beacon_rate;
722736
};
723737

724738
/**
@@ -2010,17 +2024,6 @@ enum wiphy_params_flags {
20102024
WIPHY_PARAM_DYN_ACK = 1 << 5,
20112025
};
20122026

2013-
/*
2014-
* cfg80211_bitrate_mask - masks for bitrate control
2015-
*/
2016-
struct 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-
};
20242027
/**
20252028
* struct cfg80211_pmksa - PMK Security Association
20262029
*

0 commit comments

Comments
 (0)