|
@@ -3737,8 +3737,8 @@ hdd_extscan_passpoint_fill_network(struct nlattr *network,
|
|
|
hdd_err("attr realm failed");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
- len = nla_strlcpy(nw->realm, tb[id],
|
|
|
- WMI_PASSPOINT_REALM_LEN);
|
|
|
+ len = wlan_cfg80211_nla_strscpy(nw->realm, tb[id],
|
|
|
+ WMI_PASSPOINT_REALM_LEN);
|
|
|
/* Don't send partial realm to firmware */
|
|
|
if (len >= WMI_PASSPOINT_REALM_LEN) {
|
|
|
hdd_err("user passed invalid realm, len:%zu", len);
|