diff options
| author | Deepak Dhamdhere <ddhamdhe@qca.qualcomm.com> | 2016-04-28 13:21:32 -0700 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-05-02 12:29:43 +0530 |
| commit | 6c04da68c4e7f4b57625d37cbc20dba8ed4eefd0 (patch) | |
| tree | 431a778d572084ae1829ceff3434ce14f5ceab08 | |
| parent | 515d520d939b3de7e29a810ba346da9f0e3478a7 (diff) | |
qcacld-2.0: Enable wake on wireless for NAN data device
Enable WOW_NAN_DATA_EVENT when any vdev is in NAN data mode. Similar to
SAP or IBSS modes, BSS is already started and host needs to be woken up
to accept new NAN data requests.
CRs-Fixed: 962367
Change-Id: I1a11806e82d9b77b63139c2fe694fcc19c4724c1
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 10 |
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) |
