summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/SERVICES/WMA/wma.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index d76850401b2a..b9bd2d84317d 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -21003,7 +21003,7 @@ static int wma_wow_wakeup_host_event(void *handle, u_int8_t *event,
break;
#endif
case WOW_REASON_NAN_DATA:
- WMA_LOGD(FL("Host woken up for NAN data path event from FW"));
+ WMA_LOGD(FL("Host woken up for NAN data event from FW"));
if (param_buf->wow_packet_buffer) {
wow_buf_pkt_len =
*(uint32_t *)param_buf->wow_packet_buffer;
@@ -22408,6 +22408,9 @@ suspend_all_iface:
* 2) Is any one of vdev in connected state (in STA mode) ?
* 3) Is PNO in progress in any one of vdev ?
* 4) Is Extscan in progress in any one of vdev ?
+ * 5) Is any vdev in NAN data mode? BSS is already started at the
+ * the time of device creation. It is ready to accept data
+ * requests.
*/
for (i = 0; i < wma->max_bssid; i++) {
if ((wma_is_vdev_in_ap_mode(wma, i)
@@ -22421,6 +22424,11 @@ suspend_all_iface:
i);
enable_wow = true;
}
+ if (WMA_IS_VDEV_IN_NDI_MODE(wma->interfaces, i)) {
+ WMA_LOGD("vdev %d is in NAN data mode, enabling wow",
+ i);
+ enable_wow = true;
+ }
}
for (i = 0; i < wma->max_bssid; i++) {
if (wma->interfaces[i].conn_state)