diff options
| author | Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com> | 2014-06-13 11:40:17 +0900 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-06-17 20:00:13 -0700 |
| commit | fc11df0c73517b4cbc5c758c33270534a8a5b7fd (patch) | |
| tree | 567c5ea807d8aa1b68965b2fdab3695d9e7e1de8 | |
| parent | b5f7ee439c2b27ffdc9cbab1540294102ca4478c (diff) | |
qcacld/wma: Dump header of Rx packet waking up host
It will be useful to know the Rx packets causing host
wakeup from wow.
Change-Id: I83ffc0416376115bf80a8ffd281cfef5e32d3a31
CRs-Fixed: 679243
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index 6f0f8b3e6645..5cf851e2d444 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -13423,6 +13423,7 @@ static int wma_wow_wakeup_host_event(void *handle, u_int8_t *event, struct wma_txrx_node *node; #endif u_int32_t wake_lock_duration = 0; + u_int32_t wow_buf_pkt_len = 0; param_buf = (WMI_WOW_WAKEUP_HOST_EVENTID_param_tlvs *) event; if (!param_buf) { @@ -13497,6 +13498,15 @@ static int wma_wow_wakeup_host_event(void *handle, u_int8_t *event, case WOW_REASON_HTT_EVENT: break; + case WOW_REASON_PATTERN_MATCH_FOUND: + WMA_LOGD("Wake up for Rx packet, dump starting from ethernet hdr"); + /* First 4-bytes of wow_packet_buffer is the length */ + vos_mem_copy((u_int8_t *) &wow_buf_pkt_len, + param_buf->wow_packet_buffer, 4); + vos_trace_hex_dump(VOS_MODULE_ID_WDA, VOS_TRACE_LEVEL_DEBUG, + param_buf->wow_packet_buffer + 4, + wow_buf_pkt_len); + break; default: break; |
