diff options
| author | Naveen Rawat <naveenrawat@codeaurora.org> | 2016-05-12 14:02:42 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-06-01 10:46:08 -0700 |
| commit | c9f0952c93b037da15073d8137bc958600b7f594 (patch) | |
| tree | f1e24765ba9e50dbb06b0d4859e05081be9381b9 | |
| parent | f099e5e180f635c72475b004e772109d60d3eeab (diff) | |
qcacld-3.1: Add WOW handler for NAN event
This is qcacld-2.0 to qcacld-3.1 propagation
Add NAN event case in WMI_WOW_WAKEUP_HOST_EVENTID handler function.
Change-Id: I9348d78bc1eebea0ad7ce9889727ea01c1528374
CRs-Fixed: 977484
| -rw-r--r-- | core/wma/src/wma_features.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index a814a42533e7..b425a8525083 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -1495,6 +1495,12 @@ int wma_nan_rsp_event_handler(void *handle, uint8_t *event_buf, WMA_LOGD("%s: NaN response event Posted to SME", __func__); return 0; } +#else +int wma_nan_rsp_event_handler(void *handle, uint8_t *event_buf, + uint32_t len) +{ + return 0; +} #endif /* WLAN_FEATURE_NAN */ /** @@ -2564,6 +2570,8 @@ static const u8 *wma_wow_wake_reason_str(A_INT32 wake_reason) return "WOW_REASON_RSSI_BREACH_EVENT"; case WOW_REASON_NLO_SCAN_COMPLETE: return "WOW_REASON_NLO_SCAN_COMPLETE"; + case WOW_REASON_NAN_EVENT: + return "WOW_REASON_NAN_EVENT"; } return "unknown"; } @@ -2946,6 +2954,12 @@ int wma_wow_wakeup_host_event(void *handle, uint8_t *event, WMA_LOGD("No wow_packet_buffer present"); } break; + case WOW_REASON_NAN_EVENT: + WMA_LOGA("Host woken up due to NAN event reason"); + wma_nan_rsp_event_handler(handle, + (uint8_t *)param_buf->wow_packet_buffer, + sizeof(WMI_NAN_EVENTID_param_tlvs)); + break; default: break; } |
