|
@@ -836,7 +836,11 @@ void cds_flush_cache_rx_queue(void)
|
|
|
{
|
|
|
uint8_t sta_id;
|
|
|
struct ol_txrx_peer_t *peer;
|
|
|
- struct ol_txrx_pdev_t *pdev = cds_get_context(QDF_MODULE_ID_TXRX);
|
|
|
+ struct ol_txrx_pdev_t *pdev;
|
|
|
+
|
|
|
+ pdev = cds_get_context(QDF_MODULE_ID_TXRX);
|
|
|
+ if (!pdev)
|
|
|
+ return;
|
|
|
|
|
|
for (sta_id = 0; sta_id < WLAN_MAX_STA_COUNT; sta_id++) {
|
|
|
peer = ol_txrx_peer_find_by_local_id(pdev, sta_id);
|