qcacld-3.0: Get netdev from wdev instead of iface name

Currently driver uses iface name to get netdev when it processes
ndp responder request. There is a possibility that framework does
not know the iface name when it sends the error response.

if driver does not receive iface name it fails to get the netdev
and fails to perform the dsc operation, because of which driver
drops the ndp responder request command.

To address this issue, use wdev to get netdev instead of iface name.

Change-Id: Ie230f19dbd895f81a4730160cbc9a2de3cc3179d
CRs-Fixed: 3136089
This commit is contained in:
Ashish
2022-01-27 19:22:23 +05:30
committed by Madan Koyyalamudi
父節點 93daf4ec82
當前提交 1b0ec920c5
共有 3 個文件被更改,包括 20 次插入18 次删除

查看文件

@@ -55,12 +55,14 @@ struct ndi_find_vdev_filter {
* @data_len: length of data
* @is_ndp_allowed: Indicates whether to allow NDP creation.
* NDI creation is always allowed.
* @wdev: Wireless device structure pointer
*
* Return: status of operation
*/
int os_if_nan_process_ndp_cmd(struct wlan_objmgr_psoc *psoc,
const void *data, int data_len,
bool is_ndp_allowed);
bool is_ndp_allowed,
struct wireless_dev *wdev);
/**
* os_if_nan_register_hdd_callbacks: os_if api to register hdd callbacks