qcacmn: Fix REO command issues

Fixes for issues seen while sending multiple REO commands:
- Fix bug in error return from hal_reo API.
- REO status for updates done as part of peer deletion are sometimes
  received after peer is deleted, causing crash due to invalid access
  in REO command status handler. Fixed by using temporary copies for
  rx_tid structures.
- Zero out REO command descriptors before setting up new commands.

Change-Id: I63409eb74fd91a21e0264fb2b3a62efb3a91bfe6
This commit is contained in:
Karunakar Dasineni
2017-01-11 13:57:55 -08:00
committed by qcabuildsw
vanhempi d63ad93791
commit a8c779b2d1
3 muutettua tiedostoa jossa 66 lisäystä ja 22 poistoa

Näytä tiedosto

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -58,7 +58,7 @@ QDF_STATUS dp_reo_send_cmd(struct dp_soc *soc, enum hal_reo_cmd_type type,
return QDF_STATUS_E_FAILURE;
};
if (num == QDF_STATUS_E_FAILURE) {
if (num < 0) {
qdf_print("%s: Error with sending REO command\n", __func__);
return QDF_STATUS_E_FAILURE;
}