qcacld-3.0: Extract disconnect reason code from notif_params

Currently the driver extracts the reason code from notif instead
of notif_params. This results in wrong reason code being sent
to upper layers.

Extract disconnect reason code from notif_params when disconnect
event is received.

Change-Id: I808feecbb74a0a6c78fa31ca78b35c7318e5e9cb
CRs-Fixed: 2623415
This commit is contained in:
Pragaspathi Thilagaraj 2020-02-17 18:11:38 +05:30 • committed by nshrivas
commit 8876115a93

View file

@ -5938,14 +5938,14 @@ int wma_roam_event_callback(WMA_HANDLE handle, uint8_t *event_buf,
break;
case WMI_ROAM_REASON_DEAUTH:
WMA_LOGD("%s: Received disconnect roam event reason:%d",
__func__, wmi_event->notif);
__func__, wmi_event->notif_params);
if (wmi_event->notif_params1)
frame = param_buf->deauth_disassoc_frame;
wma_handle->pe_disconnect_cb(wma_handle->mac_context,
wmi_event->vdev_id,
frame, wmi_event->notif_params1,
wmi_event->notif);
wmi_event->notif_params);
roam_synch_data = qdf_mem_malloc(sizeof(*roam_synch_data));
if (!roam_synch_data)
return -ENOMEM;