Lines Matching refs:result
343 int result = request.create(GOOGLE_OUI, RTT_SUBCMD_SET_CONFIG); in createSetupRequest() local
344 if (result < 0) { in createSetupRequest()
345 return result; in createSetupRequest()
349 result = request.put_u8(RTT_ATTRIBUTE_TARGET_CNT, numRttParams); in createSetupRequest()
350 if (result < 0) { in createSetupRequest()
351 return result; in createSetupRequest()
360 result = request.put_addr(RTT_ATTRIBUTE_TARGET_MAC, rttParams[i].addr); in createSetupRequest()
361 if (result < 0) { in createSetupRequest()
362 return result; in createSetupRequest()
365 result = request.put_u8(RTT_ATTRIBUTE_TARGET_TYPE, rttParams[i].type); in createSetupRequest()
366 if (result < 0) { in createSetupRequest()
367 return result; in createSetupRequest()
370 result = request.put_u8(RTT_ATTRIBUTE_TARGET_PEER, rttParams[i].peer); in createSetupRequest()
371 if (result < 0) { in createSetupRequest()
372 return result; in createSetupRequest()
375 result = request.put(RTT_ATTRIBUTE_TARGET_CHAN, &rttParams[i].channel, in createSetupRequest()
377 if (result < 0) { in createSetupRequest()
378 return result; in createSetupRequest()
381 result = request.put_u32(RTT_ATTRIBUTE_TARGET_NUM_BURST, rttParams[i].num_burst); in createSetupRequest()
382 if (result < 0) { in createSetupRequest()
383 return result; in createSetupRequest()
386 result = request.put_u32(RTT_ATTRIBUTE_TARGET_NUM_FTM_BURST, in createSetupRequest()
388 if (result < 0) { in createSetupRequest()
389 return result; in createSetupRequest()
392 result = request.put_u32(RTT_ATTRIBUTE_TARGET_NUM_RETRY_FTM, in createSetupRequest()
394 if (result < 0) { in createSetupRequest()
395 return result; in createSetupRequest()
398 result = request.put_u32(RTT_ATTRIBUTE_TARGET_NUM_RETRY_FTMR, in createSetupRequest()
400 if (result < 0) { in createSetupRequest()
401 return result; in createSetupRequest()
404 result = request.put_u32(RTT_ATTRIBUTE_TARGET_PERIOD, in createSetupRequest()
406 if (result < 0) { in createSetupRequest()
407 return result; in createSetupRequest()
410 result = request.put_u32(RTT_ATTRIBUTE_TARGET_BURST_DURATION, in createSetupRequest()
412 if (result < 0) { in createSetupRequest()
413 return result; in createSetupRequest()
416 result = request.put_u8(RTT_ATTRIBUTE_TARGET_LCI, in createSetupRequest()
418 if (result < 0) { in createSetupRequest()
419 return result; in createSetupRequest()
422 result = request.put_u8(RTT_ATTRIBUTE_TARGET_LCR, in createSetupRequest()
424 if (result < 0) { in createSetupRequest()
425 return result; in createSetupRequest()
428 result = request.put_u8(RTT_ATTRIBUTE_TARGET_BW, in createSetupRequest()
430 if (result < 0) { in createSetupRequest()
431 return result; in createSetupRequest()
434 result = request.put_u8(RTT_ATTRIBUTE_TARGET_PREAMBLE, in createSetupRequest()
436 if (result < 0) { in createSetupRequest()
437 return result; in createSetupRequest()
448 int result = request.create(GOOGLE_OUI, RTT_SUBCMD_CANCEL_CONFIG); in createTeardownRequest() local
449 if (result < 0) { in createTeardownRequest()
450 return result; in createTeardownRequest()
456 result = request.put_addr(RTT_ATTRIBUTE_TARGET_MAC, addr[i]); in createTeardownRequest()
457 if (result < 0) { in createTeardownRequest()
458 return result; in createTeardownRequest()
462 return result; in createTeardownRequest()
467 int result = createSetupRequest(request); in start() local
468 if (result != WIFI_SUCCESS) { in start()
469 ALOGE("failed to create setup request; result = %d", result); in start()
470 return result; in start()
473 result = requestResponse(request); in start()
474 if (result != WIFI_SUCCESS) { in start()
475 ALOGE("failed to configure RTT setup; result = %d", result); in start()
476 return result; in start()
481 return result; in start()
488 int result = createTeardownRequest(request, 0, NULL); in cancel() local
489 if (result != WIFI_SUCCESS) { in cancel()
490 ALOGE("failed to create stop request; result = %d", result); in cancel()
492 result = requestResponse(request); in cancel()
493 if (result != WIFI_SUCCESS) { in cancel()
494 ALOGE("failed to stop scan; result = %d", result); in cancel()
506 int result = createTeardownRequest(request, num_devices, addr); in cancel_specific() local
507 if (result != WIFI_SUCCESS) { in cancel_specific()
508 ALOGE("failed to create stop request; result = %d", result); in cancel_specific()
510 result = requestResponse(request); in cancel_specific()
511 if (result != WIFI_SUCCESS) { in cancel_specific()
512 ALOGE("failed to stop RTT; result = %d", result); in cancel_specific()
636 wifi_error result = wifi_register_cmd(handle, id, cmd); in wifi_rtt_range_request() local
637 if (result != WIFI_SUCCESS) { in wifi_rtt_range_request()
639 return result; in wifi_rtt_range_request()
641 result = (wifi_error)cmd->start(); in wifi_rtt_range_request()
642 if (result != WIFI_SUCCESS) { in wifi_rtt_range_request()
645 return result; in wifi_rtt_range_request()
647 return result; in wifi_rtt_range_request()