Lines Matching refs:result
395 ssize_t result = TEMP_FAILURE_RETRY(read(info->cleanup_socks[0], buf, sizeof(buf))); in wifi_cleanup() local
397 result, errno, strerror(errno)); in wifi_cleanup()
478 int result = TEMP_FAILURE_RETRY(poll(pfd, 2, timeout)); in wifi_event_loop() local
479 if (result < 0) { in wifi_event_loop()
677 int result = request.create(GOOGLE_OUI, subcmd); in createRequest() local
678 if (result < 0) { in createRequest()
679 return result; in createRequest()
683 result = request.put(ANDR_WIFI_ATTRIBUTE_PNO_RANDOM_MAC_OUI, scan_oui, DOT11_OUI_LEN); in createRequest()
684 if (result < 0) { in createRequest()
685 return result; in createRequest()
696 int result = createRequest(request, WIFI_SUBCMD_SET_PNO_RANDOM_MAC_OUI, mOui); in start() local
697 if (result != WIFI_SUCCESS) { in start()
698 ALOGE("failed to create request; result = %d", result); in start()
699 return result; in start()
702 result = requestResponse(request); in start()
703 if (result != WIFI_SUCCESS) { in start()
704 ALOGE("failed to set scanning mac OUI; result = %d", result); in start()
707 return result; in start()
788 int result = request.create(GOOGLE_OUI, WIFI_SUBCMD_SET_RSSI_MONITOR); in createRequest() local
789 if (result < 0) { in createRequest()
790 return result; in createRequest()
794 result = request.put_u32(RSSI_MONITOR_ATTRIBUTE_MAX_RSSI, (enable ? mMax_rssi: 0)); in createRequest()
795 if (result < 0) { in createRequest()
796 return result; in createRequest()
799 result = request.put_u32(RSSI_MONITOR_ATTRIBUTE_MIN_RSSI, (enable? mMin_rssi: 0)); in createRequest()
800 if (result < 0) { in createRequest()
801 return result; in createRequest()
803 result = request.put_u32(RSSI_MONITOR_ATTRIBUTE_START, enable); in createRequest()
804 if (result < 0) { in createRequest()
805 return result; in createRequest()
808 return result; in createRequest()
813 int result = createRequest(request, 1); in start() local
814 if (result < 0) { in start()
815 return result; in start()
817 result = requestResponse(request); in start()
818 if (result < 0) { in start()
819 ALOGI("Failed to set RSSI Monitor, result = %d", result); in start()
820 return result; in start()
826 if (result < 0) { in start()
828 return result; in start()
831 return result; in start()
837 int result = createRequest(request, 0); in cancel() local
838 if (result != WIFI_SUCCESS) { in cancel()
839 ALOGE("failed to create request; result = %d", result); in cancel()
841 result = requestResponse(request); in cancel()
842 if (result != WIFI_SUCCESS) { in cancel()
843 ALOGE("failed to stop RSSI monitoring = %d", result); in cancel()
932 int result = request.create(GOOGLE_OUI, APF_SUBCMD_SET_FILTER); in createSetPktFilterRequest() local
933 if (result < 0) { in createSetPktFilterRequest()
934 return result; in createSetPktFilterRequest()
938 result = request.put_u32(APF_ATTRIBUTE_PROGRAM_LEN, mProgramLen); in createSetPktFilterRequest()
939 if (result < 0) { in createSetPktFilterRequest()
940 return result; in createSetPktFilterRequest()
943 result = request.put(APF_ATTRIBUTE_PROGRAM, program, mProgramLen); in createSetPktFilterRequest()
944 if (result < 0) { in createSetPktFilterRequest()
945 return result; in createSetPktFilterRequest()
949 return result; in createSetPktFilterRequest()
953 int result = request.create(GOOGLE_OUI, APF_SUBCMD_GET_CAPABILITIES); in createGetPktFilterCapabilitesRequest() local
954 if (result < 0) { in createGetPktFilterCapabilitesRequest()
955 return result; in createGetPktFilterCapabilitesRequest()
960 return result; in createGetPktFilterCapabilitesRequest()
965 int result = createRequest(request); in start() local
966 if (result < 0) { in start()
967 return result; in start()
969 result = requestResponse(request); in start()
970 if (result < 0) { in start()
971 ALOGI("Request Response failed for APF, result = %d", result); in start()
972 return result; in start()
975 return result; in start()
1296 wifi_error result = wifi_register_cmd(handle, id, cmd); in wifi_start_rssi_monitoring() local
1297 if (result != WIFI_SUCCESS) { in wifi_start_rssi_monitoring()
1299 return result; in wifi_start_rssi_monitoring()
1301 result = (wifi_error)cmd->start(); in wifi_start_rssi_monitoring()
1302 if (result != WIFI_SUCCESS) { in wifi_start_rssi_monitoring()
1305 return result; in wifi_start_rssi_monitoring()
1307 return result; in wifi_start_rssi_monitoring()
1335 wifi_error result = (wifi_error)cmd->start(); in wifi_get_packet_filter_capabilities() local
1336 if (result == WIFI_SUCCESS) { in wifi_get_packet_filter_capabilities()
1340 return result; in wifi_get_packet_filter_capabilities()
1349 wifi_error result = (wifi_error)cmd->start(); in wifi_set_packet_filter() local
1351 return result; in wifi_set_packet_filter()