|
@@ -9271,7 +9271,7 @@ static int __iw_set_pno(struct net_device *dev,
|
|
|
|
|
|
vdev = wlan_objmgr_get_vdev_by_macaddr_from_pdev(hdd_ctx->pdev,
|
|
|
dev->dev_addr,
|
|
|
- WLAN_LEGACY_MAC_ID);
|
|
|
+ WLAN_OSIF_ID);
|
|
|
if (!vdev) {
|
|
|
hdd_err("vdev object is NULL");
|
|
|
return -EIO;
|
|
@@ -9282,7 +9282,8 @@ static int __iw_set_pno(struct net_device *dev,
|
|
|
data = qdf_mem_malloc(len);
|
|
|
if (!data) {
|
|
|
hdd_err("fail to allocate memory %zu", len);
|
|
|
- return -EINVAL;
|
|
|
+ ret = -EINVAL;
|
|
|
+ goto exit;
|
|
|
}
|
|
|
qdf_mem_copy(data, extra, (len-1));
|
|
|
ptr = data;
|
|
@@ -9481,7 +9482,7 @@ static int __iw_set_pno(struct net_device *dev,
|
|
|
}
|
|
|
|
|
|
exit:
|
|
|
- wlan_objmgr_vdev_release_ref(vdev, WLAN_LEGACY_MAC_ID);
|
|
|
+ wlan_objmgr_vdev_release_ref(vdev, WLAN_OSIF_ID);
|
|
|
|
|
|
qdf_mem_free(data);
|
|
|
return ret;
|