diff options
| author | CNSS_WLAN Service <cnssbldsw@qualcomm.com> | 2017-09-21 14:44:00 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-09-21 14:44:00 -0700 |
| commit | a3697e3b75ea2746f7ca7fb8cc5c91c50c0030d6 (patch) | |
| tree | af62357f01a885d6f28a5ab9eba6042a639a6e48 | |
| parent | 6d2c1d9cd5dcf51581909d4f95538e60a9fa5c3f (diff) | |
| parent | b3e525a3d2a527894d663814814004a6839f1a28 (diff) | |
Merge "qcacmn: Fix RX dead loop for SDIO WLAN" into wlan-cmn.driver.lnx.1.0
| -rw-r--r-- | hif/src/sdio/hif_sdio_recv.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/hif/src/sdio/hif_sdio_recv.c b/hif/src/sdio/hif_sdio_recv.c index 01ac2af978f5..ac29cbb02f70 100644 --- a/hif/src/sdio/hif_sdio_recv.c +++ b/hif/src/sdio/hif_sdio_recv.c @@ -283,10 +283,6 @@ QDF_STATUS hif_dev_alloc_and_prepare_rx_packets(struct hif_sdio_device *pdev, } if (QDF_IS_STATUS_ERROR(status)) { - if (QDF_STATUS_E_RESOURCES == status) { - /* this is actually okay */ - status = QDF_STATUS_SUCCESS; - } break; } @@ -294,7 +290,9 @@ QDF_STATUS hif_dev_alloc_and_prepare_rx_packets(struct hif_sdio_device *pdev, UNLOCK_HIF_DEV_RX(pdev); - if (QDF_IS_STATUS_ERROR(status)) { + /* for NO RESOURCE error, no need to flush data queue */ + if (QDF_IS_STATUS_ERROR(status) + && (status != QDF_STATUS_E_RESOURCES)) { while (!HTC_QUEUE_EMPTY(queue)) packet = htc_packet_dequeue(queue); } |
