|
@@ -8999,6 +8999,11 @@ int hdd_pktlog_enable_disable(struct hdd_context *hdd_ctx, bool enable,
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
+ if (enable == true)
|
|
|
+ hdd_ctx->is_pktlog_enabled = 1;
|
|
|
+ else
|
|
|
+ hdd_ctx->is_pktlog_enabled = 0;
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
#endif /* REMOVE_PKT_LOG */
|
|
@@ -9582,7 +9587,15 @@ static int hdd_features_init(struct hdd_context *hdd_ctx, struct hdd_adapter *ad
|
|
|
goto deregister_frames;
|
|
|
}
|
|
|
|
|
|
- if (cds_is_packet_log_enabled())
|
|
|
+ /**
|
|
|
+ * In case of SSR/PDR, if pktlog was enabled manually before
|
|
|
+ * SSR/PDR, Then enabled it again automatically after Wlan
|
|
|
+ * device up.
|
|
|
+ */
|
|
|
+ if (cds_is_driver_recovering()) {
|
|
|
+ if (hdd_ctx->is_pktlog_enabled)
|
|
|
+ hdd_pktlog_enable_disable(hdd_ctx, true, 0, 0);
|
|
|
+ } else if (cds_is_packet_log_enabled())
|
|
|
hdd_pktlog_enable_disable(hdd_ctx, true, 0, 0);
|
|
|
|
|
|
hddtxlimit.txPower2g = hdd_ctx->config->TxPower2g;
|