|
@@ -4032,6 +4032,11 @@ static int hdd_extscan_passpoint_fill_network_list(
|
|
|
|
|
|
expected_networks = req_msg->num_networks;
|
|
|
index = 0;
|
|
|
+
|
|
|
+ if (!tb[QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY]) {
|
|
|
+ hdd_err("attr network array failed");
|
|
|
+ return -EINVAL;
|
|
|
+ }
|
|
|
nla_for_each_nested(networks,
|
|
|
tb[QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY],
|
|
|
rem1) {
|