History

cfg80211: enable dynack through nl80211

Enable ACK timeout estimation algorithm (dynack) using mac80211 set_coverage_class API. Dynack is activated passing coverage class equals to -1 to lower drivers and it is automatically disabled setting valid value for coverage class. Define NL80211_ATTR_WIPHY_DYN_ACK flag attribute to enable dynack from userspace. In order to activate dynack NL80211_FEATURE_ACKTO_ESTIMATION feature flag must be set by lower drivers to indicate dynack capability.

Lorenzo Bianconi committed 12 years ago

Commit 3057dbf1 parent eaa336b3 files · +25 −0Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+12−0
@@ -1605,6 +1605,12 @@ enum nl80211_commands { · 1604 unmodified lines
1605 * association request. In addition, it must also set the RRM capability1605 * association request. In addition, it must also set the RRM capability
1606 * flag in the association request's Capability Info field.1606 * flag in the association request's Capability Info field.
1607 *1607 *
1608 * @NL80211_ATTR_WIPHY_DYN_ACK: flag attribute used to enable ACK timeout
1609 * estimation algorithm (dynack). In order to activate dynack
1610 * %NL80211_FEATURE_ACKTO_ESTIMATION feature flag must be set by lower
1611 * drivers to indicate dynack capability. Dynack is automatically disabled
1612 * setting valid value for coverage class.
1613 *
1608 * @NL80211_ATTR_MAX: highest attribute number currently defined1614 * @NL80211_ATTR_MAX: highest attribute number currently defined
1609 * @__NL80211_ATTR_AFTER_LAST: internal use1615 * @__NL80211_ATTR_AFTER_LAST: internal use
1610 */1616 */
@@ -1949,6 +1955,8 @@ enum nl80211_attrs { · 338 unmodified lines
1949 1955
1950 NL80211_ATTR_USE_RRM,1956 NL80211_ATTR_USE_RRM,
1951 1957
1958 NL80211_ATTR_WIPHY_DYN_ACK,
1959
1952 /* add attributes here, update the policy in nl80211.c */1960 /* add attributes here, update the policy in nl80211.c */
1953 1961
1954 __NL80211_ATTR_AFTER_LAST,1962 __NL80211_ATTR_AFTER_LAST,
@@ -3991,6 +3999,9 @@ enum nl80211_ap_sme_features { · 2036 unmodified lines
3991 * current tx power value into the TPC Report IE in the spectrum3999 * current tx power value into the TPC Report IE in the spectrum
3992 * management TPC Report action frame, and in the Radio Measurement Link4000 * management TPC Report action frame, and in the Radio Measurement Link
3993 * Measurement Report action frame.4001 * Measurement Report action frame.
4002 * @NL80211_FEATURE_ACKTO_ESTIMATION: This driver supports dynamic ACK timeout
4003 * estimation (dynack). %NL80211_ATTR_WIPHY_DYN_ACK flag attribute is used
4004 * to enable dynack.
3994 */4005 */
3995enum nl80211_feature_flags {4006enum nl80211_feature_flags {
3996 NL80211_FEATURE_SK_TX_STATUS = 1 << 0,4007 NL80211_FEATURE_SK_TX_STATUS = 1 << 0,
@@ -4016,6 +4027,7 @@ enum nl80211_feature_flags { · 19 unmodified lines
4016 NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1 << 20,4027 NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1 << 20,
4017 NL80211_FEATURE_QUIET = 1 << 21,4028 NL80211_FEATURE_QUIET = 1 << 21,
4018 NL80211_FEATURE_TX_POWER_INSERTION = 1 << 22,4029 NL80211_FEATURE_TX_POWER_INSERTION = 1 << 22,
4030 NL80211_FEATURE_ACKTO_ESTIMATION = 1 << 23,
4019};4031};
4020 4032
4021/**4033/**