History

cfg80211: add checks for beacon rate, extend to mesh

The previous commit added support for specifying the beacon rate for AP mode. Add features checks to this, and extend it to also support the rate configuration for mesh networks. For IBSS it's not as simple due to joining etc., so that's not yet supported.

Johannes Berg committed 10 years ago

Commit 8564e381 parent a7c7fbf3 files · +54 −13Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+16−1
@@ -1343,7 +1343,13 @@ enum nl80211_commands { · 1342 unmodified lines
13431343 * enum nl80211_band value is used as the index (nla_type() of the nested
13441344 * data. If a band is not included, it will be configured to allow all
13451345 * rates based on negotiated supported rates information. This attribute
1346− * is used with %NL80211_CMD_SET_TX_BITRATE_MASK.
1346+ * is used with %NL80211_CMD_SET_TX_BITRATE_MASK and with starting AP,
1347+ * and joining mesh networks (not IBSS yet). In the later case, it must
1348+ * specify just a single bitrate, which is to be used for the beacon.
1349+ * The driver must also specify support for this with the extended
1350+ * features NL80211_EXT_FEATURE_BEACON_RATE_LEGACY,
1351+ * NL80211_EXT_FEATURE_BEACON_RATE_HT and
1352+ * NL80211_EXT_FEATURE_BEACON_RATE_VHT.
13471353 *
13481354 * @NL80211_ATTR_FRAME_MATCH: A binary attribute which typically must contain
13491355 * at least one byte, currently used with @NL80211_CMD_REGISTER_FRAME.
@@ -4551,6 +4557,12 @@ enum nl80211_feature_flags { · 3201 unmodified lines
45514557 * (if available).
45524558 * @NL80211_EXT_FEATURE_SET_SCAN_DWELL: This driver supports configuration of
45534559 * channel dwell time.
4560+ * @NL80211_EXT_FEATURE_BEACON_RATE_LEGACY: Driver supports beacon rate
4561+ * configuration (AP/mesh), supporting a legacy (non HT/VHT) rate.
4562+ * @NL80211_EXT_FEATURE_BEACON_RATE_HT: Driver supports beacon rate
4563+ * configuration (AP/mesh) with HT rates.
4564+ * @NL80211_EXT_FEATURE_BEACON_RATE_VHT: Driver supports beacon rate
4565+ * configuration (AP/mesh) with VHT rates.
45544566 *
45554567 * @NUM_NL80211_EXT_FEATURES: number of extended features.
45564568 * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
@@ -4562,6 +4574,9 @@ enum nl80211_ext_feature_index { · 5 unmodified lines
45624574 NL80211_EXT_FEATURE_SCAN_START_TIME,
45634575 NL80211_EXT_FEATURE_BSS_PARENT_TSF,
45644576 NL80211_EXT_FEATURE_SET_SCAN_DWELL,
4577+ NL80211_EXT_FEATURE_BEACON_RATE_LEGACY,
4578+ NL80211_EXT_FEATURE_BEACON_RATE_HT,
4579+ NL80211_EXT_FEATURE_BEACON_RATE_VHT,
45654580
45664581 /* add new features before the definition below */
45674582 NUM_NL80211_EXT_FEATURES,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t