Lines Matching refs:outputTlv

220     NanTlv outputTlv;  in getNanPublishReplied()  local
230 (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { in getNanPublishReplied()
231 switch (outputTlv.type) { in getNanPublishReplied()
233 if (outputTlv.length > sizeof(event->addr)) { in getNanPublishReplied()
234 outputTlv.length = sizeof(event->addr); in getNanPublishReplied()
236 memcpy(event->addr, outputTlv.value, outputTlv.length); in getNanPublishReplied()
239 if (outputTlv.length > sizeof(event->rssi_value)) { in getNanPublishReplied()
240 outputTlv.length = sizeof(event->rssi_value); in getNanPublishReplied()
242 memcpy(&event->rssi_value, outputTlv.value, in getNanPublishReplied()
243 outputTlv.length); in getNanPublishReplied()
251 memset(&outputTlv, 0, sizeof(outputTlv)); in getNanPublishReplied()
286 NanTlv outputTlv; in getNanMatch() local
299 (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { in getNanMatch()
301 __func__, remainingLen, readLen, outputTlv.type, in getNanMatch()
302 outputTlv.length); in getNanMatch()
303 switch (outputTlv.type) { in getNanMatch()
305 if (outputTlv.length > NAN_MAX_SERVICE_NAME_LEN) { in getNanMatch()
306 outputTlv.length = NAN_MAX_SERVICE_NAME_LEN; in getNanMatch()
308 event->service_specific_info_len = outputTlv.length; in getNanMatch()
309 memcpy(event->service_specific_info, outputTlv.value, in getNanMatch()
310 outputTlv.length); in getNanMatch()
313 if (outputTlv.length > NAN_MAX_MATCH_FILTER_LEN) { in getNanMatch()
314 outputTlv.length = NAN_MAX_MATCH_FILTER_LEN; in getNanMatch()
316 event->sdf_match_filter_len = outputTlv.length; in getNanMatch()
317 memcpy(event->sdf_match_filter, outputTlv.value, in getNanMatch()
318 outputTlv.length); in getNanMatch()
321 if (outputTlv.length > sizeof(event->addr)) { in getNanMatch()
322 outputTlv.length = sizeof(event->addr); in getNanMatch()
324 memcpy(event->addr, outputTlv.value, outputTlv.length); in getNanMatch()
327 if (outputTlv.length > sizeof(event->rssi_value)) { in getNanMatch()
328 outputTlv.length = sizeof(event->rssi_value); in getNanMatch()
330 memcpy(&event->rssi_value, outputTlv.value, in getNanMatch()
331 outputTlv.length); in getNanMatch()
334 if (outputTlv.length != sizeof(u32)) { in getNanMatch()
336 "Incorrect size:%d expecting %zu", outputTlv.length, in getNanMatch()
342 getNanReceivePostConnectivityCapabilityVal(outputTlv.value, in getNanMatch()
349 ret = getNanReceivePostDiscoveryVal(outputTlv.value, in getNanMatch()
350 outputTlv.length, in getNanMatch()
362 ret = getNanFurtherAvailabilityMap(outputTlv.value, in getNanMatch()
363 outputTlv.length, in getNanMatch()
371 if (outputTlv.length > sizeof(event->cluster_attribute)) { in getNanMatch()
372 outputTlv.length = sizeof(event->cluster_attribute); in getNanMatch()
375 outputTlv.value, outputTlv.length); in getNanMatch()
376 event->cluster_attribute_len = outputTlv.length; in getNanMatch()
379 if (outputTlv.length > sizeof(event->peer_cipher_type)) { in getNanMatch()
380 outputTlv.length = sizeof(event->peer_cipher_type); in getNanMatch()
382 memcpy(&event->peer_cipher_type, outputTlv.value, in getNanMatch()
383 outputTlv.length); in getNanMatch()
386 if (outputTlv.length > sizeof(event->scid)) { in getNanMatch()
387 outputTlv.length = sizeof(event->scid); in getNanMatch()
389 event->scid_len = outputTlv.length; in getNanMatch()
390 memcpy(event->scid, outputTlv.value, outputTlv.length); in getNanMatch()
393 if (outputTlv.length != sizeof(u32)) { in getNanMatch()
395 "Incorrect size:%d expecting %zu", outputTlv.length, in getNanMatch()
399 getNanReceiveSdeaCtrlParams(outputTlv.value, in getNanMatch()
403 if (outputTlv.length > sizeof(event->range_info)) { in getNanMatch()
404 outputTlv.length = sizeof(event->range_info); in getNanMatch()
406 memcpy(&event->range_info, outputTlv.value, outputTlv.length); in getNanMatch()
409 if (outputTlv.length > NAN_MAX_SDEA_SERVICE_SPECIFIC_INFO_LEN) { in getNanMatch()
410 outputTlv.length = NAN_MAX_SDEA_SERVICE_SPECIFIC_INFO_LEN; in getNanMatch()
412 event->sdea_service_specific_info_len = outputTlv.length; in getNanMatch()
413 memcpy(event->sdea_service_specific_info, outputTlv.value, in getNanMatch()
414 outputTlv.length); in getNanMatch()
422 memset(&outputTlv, 0, sizeof(outputTlv)); in getNanMatch()
470 NanTlv outputTlv; in getNanFollowup() local
482 (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { in getNanFollowup()
484 __func__, remainingLen, readLen, outputTlv.type, in getNanFollowup()
485 outputTlv.length); in getNanFollowup()
486 switch (outputTlv.type) { in getNanFollowup()
489 if (outputTlv.length > NAN_MAX_SERVICE_SPECIFIC_INFO_LEN) { in getNanFollowup()
490 outputTlv.length = NAN_MAX_SERVICE_SPECIFIC_INFO_LEN; in getNanFollowup()
492 event->service_specific_info_len = outputTlv.length; in getNanFollowup()
493 memcpy(event->service_specific_info, outputTlv.value, in getNanFollowup()
494 outputTlv.length); in getNanFollowup()
497 if (outputTlv.length > sizeof(event->addr)) { in getNanFollowup()
498 outputTlv.length = sizeof(event->addr); in getNanFollowup()
500 memcpy(event->addr, outputTlv.value, outputTlv.length); in getNanFollowup()
503 if (outputTlv.length > NAN_MAX_SDEA_SERVICE_SPECIFIC_INFO_LEN) { in getNanFollowup()
504 outputTlv.length = NAN_MAX_SDEA_SERVICE_SPECIFIC_INFO_LEN; in getNanFollowup()
506 event->sdea_service_specific_info_len = outputTlv.length; in getNanFollowup()
507 memcpy(event->sdea_service_specific_info, outputTlv.value, in getNanFollowup()
508 outputTlv.length); in getNanFollowup()
516 memset(&outputTlv, 0, sizeof(outputTlv)); in getNanFollowup()
533 NanTlv outputTlv; in getNanDiscEngEvent() local
546 (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { in getNanDiscEngEvent()
548 __func__, remainingLen, readLen, outputTlv.type, in getNanDiscEngEvent()
549 outputTlv.length); in getNanDiscEngEvent()
550 switch (outputTlv.type) { in getNanDiscEngEvent()
552 if (outputTlv.length > NAN_MAC_ADDR_LEN) { in getNanDiscEngEvent()
555 outputTlv.length = NAN_MAC_ADDR_LEN; in getNanDiscEngEvent()
557 memcpy(event->data.mac_addr.addr, outputTlv.value, in getNanDiscEngEvent()
558 outputTlv.length); in getNanDiscEngEvent()
562 if (outputTlv.length > NAN_MAC_ADDR_LEN) { in getNanDiscEngEvent()
565 outputTlv.length = NAN_MAC_ADDR_LEN; in getNanDiscEngEvent()
567 memcpy(event->data.cluster.addr, outputTlv.value, in getNanDiscEngEvent()
568 outputTlv.length); in getNanDiscEngEvent()
572 if (outputTlv.length > NAN_MAC_ADDR_LEN) { in getNanDiscEngEvent()
575 outputTlv.length = NAN_MAC_ADDR_LEN; in getNanDiscEngEvent()
577 memcpy(event->data.cluster.addr, outputTlv.value, in getNanDiscEngEvent()
578 outputTlv.length); in getNanDiscEngEvent()
582 ALOGV("Unhandled TLV type:%d", outputTlv.type); in getNanDiscEngEvent()
587 memset(&outputTlv,0, sizeof(outputTlv)); in getNanDiscEngEvent()
619 NanTlv outputTlv; in getNanTca() local
633 (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { in getNanTca()
635 __func__, remainingLen, readLen, outputTlv.type, in getNanTca()
636 outputTlv.length); in getNanTca()
637 switch (outputTlv.type) { in getNanTca()
639 if (outputTlv.length != 2 * sizeof(u32)) { in getNanTca()
641 __func__, outputTlv.length, 2 * sizeof(u32)); in getNanTca()
644 event->rising_direction_evt_flag = outputTlv.value[0] & 0x01; in getNanTca()
645 event->falling_direction_evt_flag = (outputTlv.value[0] & 0x02) >> 1; in getNanTca()
646 memcpy(&(event->data.cluster.cluster_size), &outputTlv.value[4], in getNanTca()
651 ALOGV("Unhandled TLV type:%d", outputTlv.type); in getNanTca()
656 memset(&outputTlv,0, sizeof(outputTlv)); in getNanTca()
673 NanTlv outputTlv; in getNanBeaconSdfPayload() local
686 (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { in getNanBeaconSdfPayload()
688 __func__, remainingLen, readLen, outputTlv.type, in getNanBeaconSdfPayload()
689 outputTlv.length); in getNanBeaconSdfPayload()
690 switch (outputTlv.type) { in getNanBeaconSdfPayload()
692 if (outputTlv.length > sizeof(event->addr)) { in getNanBeaconSdfPayload()
693 outputTlv.length = sizeof(event->addr); in getNanBeaconSdfPayload()
695 memcpy(event->addr, outputTlv.value, in getNanBeaconSdfPayload()
696 outputTlv.length); in getNanBeaconSdfPayload()
702 if (outputTlv.length < sizeof(u32)) { in getNanBeaconSdfPayload()
704 "Incorrect length:%d", outputTlv.length); in getNanBeaconSdfPayload()
708 recvVsaattr->vsa_received_on = (outputTlv.value[0] >> 1) & 0x07; in getNanBeaconSdfPayload()
709 memcpy(&recvVsaattr->vendor_oui, &outputTlv.value[1], in getNanBeaconSdfPayload()
711 recvVsaattr->attr_len = outputTlv.length - 4; in getNanBeaconSdfPayload()
716 memcpy(recvVsaattr->vsa, &outputTlv.value[4], in getNanBeaconSdfPayload()
724 event->data.frame_len = outputTlv.length; in getNanBeaconSdfPayload()
728 memcpy(&event->data.frame_data, &outputTlv.value[0], in getNanBeaconSdfPayload()
733 ALOGV("Unhandled TLV Type:%d", outputTlv.type); in getNanBeaconSdfPayload()
738 memset(&outputTlv,0, sizeof(outputTlv)); in getNanBeaconSdfPayload()
797 NanTlv outputTlv; in getNanReceivePostDiscoveryVal() local
809 (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { in getNanReceivePostDiscoveryVal()
811 __func__, remainingLen, readLen, outputTlv.type, in getNanReceivePostDiscoveryVal()
812 outputTlv.length); in getNanReceivePostDiscoveryVal()
813 switch (outputTlv.type) { in getNanReceivePostDiscoveryVal()
815 if (outputTlv.length > sizeof(pRxDisc->addr)) { in getNanReceivePostDiscoveryVal()
816 outputTlv.length = sizeof(pRxDisc->addr); in getNanReceivePostDiscoveryVal()
818 memcpy(pRxDisc->addr, outputTlv.value, outputTlv.length); in getNanReceivePostDiscoveryVal()
821 if (outputTlv.length > sizeof(pRxDisc->mesh_id)) { in getNanReceivePostDiscoveryVal()
822 outputTlv.length = sizeof(pRxDisc->mesh_id); in getNanReceivePostDiscoveryVal()
824 memcpy(pRxDisc->mesh_id, outputTlv.value, outputTlv.length); in getNanReceivePostDiscoveryVal()
825 pRxDisc->mesh_id_len = outputTlv.length; in getNanReceivePostDiscoveryVal()
828 if (outputTlv.length > sizeof(pRxDisc->infrastructure_ssid_val)) { in getNanReceivePostDiscoveryVal()
829 outputTlv.length = sizeof(pRxDisc->infrastructure_ssid_val); in getNanReceivePostDiscoveryVal()
831 memcpy(pRxDisc->infrastructure_ssid_val, outputTlv.value, in getNanReceivePostDiscoveryVal()
832 outputTlv.length); in getNanReceivePostDiscoveryVal()
833 pRxDisc->infrastructure_ssid_len = outputTlv.length; in getNanReceivePostDiscoveryVal()
835 ALOGV("Unhandled TLV Type:%d", outputTlv.type); in getNanReceivePostDiscoveryVal()
840 memset(&outputTlv,0, sizeof(outputTlv)); in getNanReceivePostDiscoveryVal()
1283 NanTlv outputTlv; in getNanRangeRequestReceivedInd() local
1296 (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { in getNanRangeRequestReceivedInd()
1298 __func__, remainingLen, readLen, outputTlv.type, in getNanRangeRequestReceivedInd()
1299 outputTlv.length); in getNanRangeRequestReceivedInd()
1300 switch (outputTlv.type) { in getNanRangeRequestReceivedInd()
1303 if (outputTlv.length > sizeof(fwRangeReqRecvd)) { in getNanRangeRequestReceivedInd()
1304 outputTlv.length = sizeof(fwRangeReqRecvd); in getNanRangeRequestReceivedInd()
1306 memcpy(&fwRangeReqRecvd, outputTlv.value, outputTlv.length); in getNanRangeRequestReceivedInd()
1311 ALOGV("Unhandled TLV type:%d", outputTlv.type); in getNanRangeRequestReceivedInd()
1316 memset(&outputTlv,0, sizeof(outputTlv)); in getNanRangeRequestReceivedInd()
1332 NanTlv outputTlv; in getNanRangeReportInd() local
1345 (0 != (readLen = NANTLV_ReadTlv(pInputTlv, &outputTlv)))) { in getNanRangeReportInd()
1347 __func__, remainingLen, readLen, outputTlv.type, in getNanRangeReportInd()
1348 outputTlv.length); in getNanRangeReportInd()
1349 switch (outputTlv.type) { in getNanRangeReportInd()
1351 if (outputTlv.length > NAN_MAC_ADDR_LEN) { in getNanRangeReportInd()
1352 outputTlv.length = NAN_MAC_ADDR_LEN; in getNanRangeReportInd()
1354 memcpy(event->range_req_intf_addr, outputTlv.value, outputTlv.length); in getNanRangeReportInd()
1359 if (outputTlv.length > sizeof(NanFWRangeReportParams)) { in getNanRangeReportInd()
1360 outputTlv.length = sizeof(NanFWRangeReportParams); in getNanRangeReportInd()
1362 memcpy(&range_params, outputTlv.value, outputTlv.length); in getNanRangeReportInd()
1368 ALOGV("Unhandled TLV type:%d", outputTlv.type); in getNanRangeReportInd()
1373 memset(&outputTlv,0, sizeof(outputTlv)); in getNanRangeReportInd()