On 2018-02-19 18:44, Johannes Berg wrote:
On Tue, 2018-02-13 at 14:50 +0530, Tamizh chelvam wrote:

@@ -9903,8 +9906,10 @@ static int nl80211_set_cqm_rssi(struct genl_info *info,
                prev = thresholds[i];
        }

-       if (wdev->iftype != NL80211_IFTYPE_STATION &&
-           wdev->iftype != NL80211_IFTYPE_P2P_CLIENT)
+       if ((wdev->iftype != NL80211_IFTYPE_STATION &&
+            wdev->iftype != NL80211_IFTYPE_P2P_CLIENT &&
+            !wiphy_ext_feature_isset(&rdev->wiphy,
+                               NL80211_EXT_FEATURE_AP_STA_CQM_RSSI_CONFIG)))
                return -EOPNOTSUPP;

This enables for everything though - not sure we want that?

I'll add vif type(AP, AP_VLAN and P2P_GO) check in the next version to avoid enable this for all.

Reply via email to