History

cfg80211: add extensible feature flag attribute

With the wiphy::features flag being used up this patch adds a new field wiphy::ext_features. Considering extensibility this new field is declared as a byte array. This extensible flag is exposed to user-space by NL80211_ATTR_EXT_FEATURES.

Gautam Kumar Shukla committed 11 years ago

Commit d75bb061 parent 1803f593 files · +66 −0Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+22−0
@@ -1713,6 +1713,13 @@ enum nl80211_commands { · 1712 unmodified lines
17131713 * obtained from it is coming from the device's wiphy and not the global
17141714 * cfg80211 regdomain.
17151715 *
1716+ * @NL80211_ATTR_EXT_FEATURES: extended feature flags contained in a byte
1717+ * array. The feature flags are identified by their bit index (see &enum
1718+ * nl80211_ext_feature_index). The bit index is ordered starting at the
1719+ * least-significant bit of the first byte in the array, ie. bit index 0
1720+ * is located at bit 0 of byte 0. bit index 25 would be located at bit 1
1721+ * of byte 3 (u8 array).
1722+ *
17161723 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
17171724 * @NL80211_ATTR_MAX: highest attribute number currently defined
17181725 * @__NL80211_ATTR_AFTER_LAST: internal use
@@ -2072,6 +2079,8 @@ enum nl80211_attrs { · 353 unmodified lines
20722079
20732080 NL80211_ATTR_WIPHY_SELF_MANAGED_REG,
20742081
2082+ NL80211_ATTR_EXT_FEATURES,
2083+
20752084 /* add attributes here, update the policy in nl80211.c */
20762085
20772086 __NL80211_ATTR_AFTER_LAST,
@@ -4223,6 +4232,19 @@ enum nl80211_feature_flags { · 2145 unmodified lines
42234232 NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 1 << 31,
42244233 };
42254234
4235+/**
4236+ * enum nl80211_ext_feature_index - bit index of extended features.
4237+ *
4238+ * @NUM_NL80211_EXT_FEATURES: number of extended features.
4239+ * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
4240+ */
4241+enum nl80211_ext_feature_index {
4242+
4243+ /* add new features before the definition below */
4244+ NUM_NL80211_EXT_FEATURES,
4245+ MAX_NL80211_EXT_FEATURES = NUM_NL80211_EXT_FEATURES - 1
4246+};
4247+
42264248 /**
42274249 * enum nl80211_probe_resp_offload_support_attr - optional supported
42284250 * protocols for probe-response offloading by the driver/FW.