|
@@ -6947,6 +6947,11 @@ static int wlan_hdd_cfg80211_txpower_scale(struct wiphy *wiphy,
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
+static const struct nla_policy txpower_scale_decr_db_policy
|
|
|
+[QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX + 1] = {
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB] = { .type = NLA_U8 },
|
|
|
+};
|
|
|
+
|
|
|
/**
|
|
|
* __wlan_hdd_cfg80211_txpower_scale_decr_db () - txpower scaling
|
|
|
* @wiphy: Pointer to wireless phy
|
|
@@ -6978,7 +6983,7 @@ static int __wlan_hdd_cfg80211_txpower_scale_decr_db(struct wiphy *wiphy,
|
|
|
adapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
|
|
|
|
if (nla_parse(tb, QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX,
|
|
|
- data, data_len, NULL)) {
|
|
|
+ data, data_len, txpower_scale_decr_db_policy)) {
|
|
|
hdd_err("Invalid ATTR");
|
|
|
return -EINVAL;
|
|
|
}
|