Lines Matching refs:request

342     int createSetupRequest(WifiRequest& request) {  in createSetupRequest()  argument
343 int result = request.create(GOOGLE_OUI, RTT_SUBCMD_SET_CONFIG); in createSetupRequest()
348 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createSetupRequest()
349 result = request.put_u8(RTT_ATTRIBUTE_TARGET_CNT, numRttParams); in createSetupRequest()
353 nlattr *rtt_config = request.attr_start(RTT_ATTRIBUTE_TARGET_INFO); in createSetupRequest()
355 nlattr *attr2 = request.attr_start(i); in createSetupRequest()
360 result = request.put_addr(RTT_ATTRIBUTE_TARGET_MAC, rttParams[i].addr); in createSetupRequest()
365 result = request.put_u8(RTT_ATTRIBUTE_TARGET_TYPE, rttParams[i].type); in createSetupRequest()
370 result = request.put_u8(RTT_ATTRIBUTE_TARGET_PEER, rttParams[i].peer); in createSetupRequest()
375 result = request.put(RTT_ATTRIBUTE_TARGET_CHAN, &rttParams[i].channel, in createSetupRequest()
381 result = request.put_u32(RTT_ATTRIBUTE_TARGET_NUM_BURST, rttParams[i].num_burst); in createSetupRequest()
386 result = request.put_u32(RTT_ATTRIBUTE_TARGET_NUM_FTM_BURST, in createSetupRequest()
392 result = request.put_u32(RTT_ATTRIBUTE_TARGET_NUM_RETRY_FTM, in createSetupRequest()
398 result = request.put_u32(RTT_ATTRIBUTE_TARGET_NUM_RETRY_FTMR, in createSetupRequest()
404 result = request.put_u32(RTT_ATTRIBUTE_TARGET_PERIOD, in createSetupRequest()
410 result = request.put_u32(RTT_ATTRIBUTE_TARGET_BURST_DURATION, in createSetupRequest()
416 result = request.put_u8(RTT_ATTRIBUTE_TARGET_LCI, in createSetupRequest()
422 result = request.put_u8(RTT_ATTRIBUTE_TARGET_LCR, in createSetupRequest()
428 result = request.put_u8(RTT_ATTRIBUTE_TARGET_BW, in createSetupRequest()
434 result = request.put_u8(RTT_ATTRIBUTE_TARGET_PREAMBLE, in createSetupRequest()
439 request.attr_end(attr2); in createSetupRequest()
442 request.attr_end(rtt_config); in createSetupRequest()
443 request.attr_end(data); in createSetupRequest()
447 int createTeardownRequest(WifiRequest& request, unsigned num_devices, mac_addr addr[]) { in createTeardownRequest() argument
448 int result = request.create(GOOGLE_OUI, RTT_SUBCMD_CANCEL_CONFIG); in createTeardownRequest()
453 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createTeardownRequest()
454 request.put_u8(RTT_ATTRIBUTE_TARGET_CNT, num_devices); in createTeardownRequest()
456 result = request.put_addr(RTT_ATTRIBUTE_TARGET_MAC, addr[i]); in createTeardownRequest()
461 request.attr_end(data); in createTeardownRequest()
466 WifiRequest request(familyId(), ifaceId()); in start() local
467 int result = createSetupRequest(request); in start()
473 result = requestResponse(request); in start()
487 WifiRequest request(familyId(), ifaceId()); in cancel() local
488 int result = createTeardownRequest(request, 0, NULL); in cancel()
492 result = requestResponse(request); in cancel()
505 WifiRequest request(familyId(), ifaceId()); in cancel_specific() local
506 int result = createTeardownRequest(request, num_devices, addr); in cancel_specific()
510 result = requestResponse(request); in cancel_specific()