|
@@ -135,6 +135,12 @@ static const struct nla_policy wlan_hdd_extscan_config_policy
|
|
|
|
|
|
static const struct nla_policy
|
|
|
wlan_hdd_pno_config_policy[QCA_WLAN_VENDOR_ATTR_PNO_MAX + 1] = {
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM] = {
|
|
|
+ .type = NLA_U32
|
|
|
+ },
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID] = {
|
|
|
+ .type = NLA_U32
|
|
|
+ },
|
|
|
[QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS] = {
|
|
|
.type = NLA_U32
|
|
|
},
|
|
@@ -148,6 +154,27 @@ wlan_hdd_pno_config_policy[QCA_WLAN_VENDOR_ATTR_PNO_MAX + 1] = {
|
|
|
[QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT] = {
|
|
|
.type = NLA_U8
|
|
|
},
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI] = {
|
|
|
+ .type = NLA_U32
|
|
|
+ },
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI] = {
|
|
|
+ .type = NLA_U32
|
|
|
+ },
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX] = {
|
|
|
+ .type = NLA_U32
|
|
|
+ },
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS] = {
|
|
|
+ .type = NLA_U32
|
|
|
+ },
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS] = {
|
|
|
+ .type = NLA_U32
|
|
|
+ },
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS] = {
|
|
|
+ .type = NLA_U32
|
|
|
+ },
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS] = {
|
|
|
+ .type = NLA_U32
|
|
|
+ },
|
|
|
};
|
|
|
|
|
|
static const struct nla_policy
|
|
@@ -3997,8 +4024,9 @@ static int hdd_extscan_passpoint_fill_network_list(
|
|
|
}
|
|
|
|
|
|
if (nla_parse(network,
|
|
|
- QCA_WLAN_VENDOR_ATTR_PNO_MAX,
|
|
|
- nla_data(networks), nla_len(networks), NULL)) {
|
|
|
+ QCA_WLAN_VENDOR_ATTR_PNO_MAX,
|
|
|
+ nla_data(networks), nla_len(networks),
|
|
|
+ wlan_hdd_pno_config_policy)) {
|
|
|
hdd_err("nla_parse failed");
|
|
|
return -EINVAL;
|
|
|
}
|
|
@@ -4096,7 +4124,7 @@ static int __wlan_hdd_cfg80211_set_passpoint_list(struct wiphy *wiphy,
|
|
|
}
|
|
|
|
|
|
if (nla_parse(tb, QCA_WLAN_VENDOR_ATTR_PNO_MAX, data, data_len,
|
|
|
- wlan_hdd_extscan_config_policy)) {
|
|
|
+ wlan_hdd_pno_config_policy)) {
|
|
|
hdd_err("Invalid ATTR");
|
|
|
return -EINVAL;
|
|
|
}
|