Re: [RFC 7/9] nl80211/cfg80211: add DFS feature flag
From: Luis R. Rodriguez <hidden>
Date: 2012-02-09 23:11:40
On Thu, Feb 2, 2012 at 8:08 AM, Goldenshtein, Victor [off-list ref] wrote:
On Tue, Jan 31, 2012 at 7:52 AM, Johannes Berg [off-list ref] wrote:quoted
On 1/26/2012 4:38 AM, Victor Goldenshtein wrote:quoted
+static int nl80211_put_feature_flags(struct wiphy *wiphy, + struct sk_buff *msg) +{ + if (wiphy->flags& WIPHY_FLAG_SUPPORTS_DFS) + wiphy->features |= NL80211_FEATURE_DFS; + + + NLA_PUT_U32(msg, NL80211_ATTR_FEATURE_FLAGS, wiphy->features); + + return 0; +nla_put_failure: + return -ENOBUFS; +}I think you misunderstood the new feature flags -- they're supposed to be set by the driver directly, not indirectly via wiphy->flags.yep, I guess you're right.
While a it, consider adding one for the requirement of sending the channel switch announcement within mac80211, not the driver. In that case, although a DFS feature may be available in the driver, DFS should not be enabled on the driver through nl80211 unless that feature gets implemented in mac80211. Luis