|
@@ -2422,6 +2422,11 @@ static int wma_wake_event_piggybacked(
|
|
|
}
|
|
|
|
|
|
pdev = cds_get_context(QDF_MODULE_ID_TXRX);
|
|
|
+ if (!pdev) {
|
|
|
+ WMA_LOGE("Invalid pdev");
|
|
|
+ return -EINVAL;
|
|
|
+ }
|
|
|
+
|
|
|
bssid = wma_get_vdev_bssid
|
|
|
(wma->interfaces[event_param->fixed_param->vdev_id].vdev);
|
|
|
if (!bssid) {
|
|
@@ -2429,6 +2434,7 @@ static int wma_wake_event_piggybacked(
|
|
|
__func__, event_param->fixed_param->vdev_id);
|
|
|
return 0;
|
|
|
}
|
|
|
+
|
|
|
peer = cdp_peer_find_by_addr(soc, pdev, bssid, &peer_id);
|
|
|
wake_reason = event_param->fixed_param->wake_reason;
|
|
|
|