aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorGautam Kumar Shukla <gautams@broadcom.com>2014-12-23 10:55:19 -0500
committerJohannes Berg <johannes.berg@intel.com>2015-01-06 06:10:24 -0500
commitd75bb06b61cb69ee6223d791d3bb230e68623b20 (patch)
treea395b7335718bcafbd87275bb148169ed708666c /net/wireless
parent1803f594cbf9bb2e662ac945038113d0d0cc5e89 (diff)
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. Cc: Avinash Patil <patila@marvell.com> Signed-off-by: Gautam (Gautam Kumar) Shukla <gautams@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 702920134b34..689e1a8fd60a 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -1706,6 +1706,11 @@ static int nl80211_send_wiphy(struct cfg80211_registered_device *rdev,
1706 nla_put_flag(msg, NL80211_ATTR_WIPHY_SELF_MANAGED_REG)) 1706 nla_put_flag(msg, NL80211_ATTR_WIPHY_SELF_MANAGED_REG))
1707 goto nla_put_failure; 1707 goto nla_put_failure;
1708 1708
1709 if (nla_put(msg, NL80211_ATTR_EXT_FEATURES,
1710 sizeof(rdev->wiphy.ext_features),
1711 rdev->wiphy.ext_features))
1712 goto nla_put_failure;
1713
1709 /* done */ 1714 /* done */
1710 state->split_start = 0; 1715 state->split_start = 0;
1711 break; 1716 break;