qcacld-3.0: Send NDI del rsp in NAN_DATA_DISCONNECTED_STATE state
NDI delete response is sent to userspace only when NDI is in NAN_DATA_NDI_DELETING_STATE state. But NDI could be in NAN_DATA_DISCONNECTED_STATE state if cleanup happens through NDP_END_ALL path. Driver doesn't send response to userspace in this case. Send the response to userspace in NAN_DATA_DISCONNECTED_STATE also as the application might be waiting for NDI delete status. Also, use set/get APIs and avoid accessing NDI state directly. Change-Id: I81a6b19a77144c76dde145f126c45b2ca67ff093 CRs-Fixed: 2679581
This commit is contained in:
@@ -2369,14 +2369,17 @@ void os_if_nan_ndi_session_end(struct wlan_objmgr_vdev *vdev)
|
||||
struct sk_buff *vendor_event;
|
||||
struct wlan_objmgr_pdev *pdev = wlan_vdev_get_pdev(vdev);
|
||||
struct pdev_osif_priv *os_priv = wlan_pdev_get_ospriv(pdev);
|
||||
enum nan_datapath_state state;
|
||||
|
||||
/*
|
||||
* The virtual adapters are stopped and closed even during
|
||||
* driver unload or stop, the service layer is not required
|
||||
* to be informed in that case (response is not expected)
|
||||
*/
|
||||
if (NAN_DATA_NDI_DELETING_STATE != ucfg_nan_get_ndi_state(vdev)) {
|
||||
osif_err("NDI interface deleted");
|
||||
state = ucfg_nan_get_ndi_state(vdev);
|
||||
if (state != NAN_DATA_NDI_DELETING_STATE &&
|
||||
state != NAN_DATA_DISCONNECTED_STATE) {
|
||||
osif_err("NDI interface deleted: state: %u", state);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user