Lines Matching refs:ret
147 int *ret = (int *)arg; in finish_handler() local
148 *ret = 0; in finish_handler()
155 int *ret = (int *)arg; in error_handler() local
156 *ret = err->error; in error_handler()
169 wifi_error ret; in acquire_supported_features() local
179 ret = supportedFeatures.create(); in acquire_supported_features()
180 if (ret != WIFI_SUCCESS) in acquire_supported_features()
183 ret = supportedFeatures.set_iface_id(iinfo->name); in acquire_supported_features()
184 if (ret != WIFI_SUCCESS) in acquire_supported_features()
187 ret = supportedFeatures.requestResponse(); in acquire_supported_features()
188 if (ret != WIFI_SUCCESS) { in acquire_supported_features()
189 ALOGE("%s: requestResponse Error:%d",__func__, ret); in acquire_supported_features()
196 return ret; in acquire_supported_features()
201 wifi_error ret; in wifi_get_capabilities() local
227 ret = wifihalGeneric->wifiGetCapabilities(handle); in wifi_get_capabilities()
230 return ret; in wifi_get_capabilities()
236 wifi_error ret; in get_firmware_bus_max_size_supported() local
246 ret = busSizeSupported.create(); in get_firmware_bus_max_size_supported()
247 if (ret != WIFI_SUCCESS) in get_firmware_bus_max_size_supported()
250 ret = busSizeSupported.set_iface_id(iinfo->name); in get_firmware_bus_max_size_supported()
251 if (ret != WIFI_SUCCESS) in get_firmware_bus_max_size_supported()
254 ret = busSizeSupported.requestResponse(); in get_firmware_bus_max_size_supported()
255 if (ret != WIFI_SUCCESS) { in get_firmware_bus_max_size_supported()
256 ALOGE("%s: requestResponse Error:%d", __FUNCTION__, ret); in get_firmware_bus_max_size_supported()
262 return ret; in get_firmware_bus_max_size_supported()
299 int ret = nl_socket_add_membership(user_sock, 1); in wifi_init_user_sock() local
300 if (ret < 0) { in wifi_init_user_sock()
458 wifi_error ret = WIFI_SUCCESS; in wifi_initialize() local
479 ret = WIFI_ERROR_UNKNOWN; in wifi_initialize()
494 ret = WIFI_ERROR_UNKNOWN; in wifi_initialize()
508 ret = WIFI_ERROR_UNKNOWN; in wifi_initialize()
530 ret = WIFI_ERROR_OUT_OF_MEMORY; in wifi_initialize()
539 ret = WIFI_ERROR_UNKNOWN; in wifi_initialize()
556 ret = wifi_init_cld80211_sock_cb(info); in wifi_initialize()
557 if (ret != WIFI_SUCCESS) { in wifi_initialize()
588 ret = wifi_init_user_sock(info); in wifi_initialize()
589 if (ret != WIFI_SUCCESS) { in wifi_initialize()
595 ret = wifi_init_interfaces(*handle); in wifi_initialize()
596 if (ret != WIFI_SUCCESS) { in wifi_initialize()
603 ret = WIFI_ERROR_UNINITIALIZED; in wifi_initialize()
619 ret = acquire_supported_features(iface_handle, in wifi_initialize()
621 if (ret != WIFI_SUCCESS) { in wifi_initialize()
622 ALOGI("Failed to get supported feature set : %d", ret); in wifi_initialize()
626 ret = WIFI_SUCCESS; in wifi_initialize()
629 ret = wifi_get_logger_supported_feature_set(iface_handle, in wifi_initialize()
631 if (ret != WIFI_SUCCESS) in wifi_initialize()
632 ALOGE("Failed to get supported logger feature set: %d", ret); in wifi_initialize()
634 ret = get_firmware_bus_max_size_supported(iface_handle); in wifi_initialize()
635 if (ret != WIFI_SUCCESS) { in wifi_initialize()
636 ALOGE("Failed to get supported bus size, error : %d", ret); in wifi_initialize()
640 ret = wifi_logger_ring_buffers_init(info); in wifi_initialize()
641 if (ret != WIFI_SUCCESS) in wifi_initialize()
644 ret = wifi_get_capabilities(iface_handle); in wifi_initialize()
645 if (ret != WIFI_SUCCESS) in wifi_initialize()
646 ALOGE("Failed to get wifi Capabilities, error: %d", ret); in wifi_initialize()
652 ret = WIFI_ERROR_OUT_OF_MEMORY; in wifi_initialize()
664 ret = WIFI_ERROR_OUT_OF_MEMORY; in wifi_initialize()
675 ret = WIFI_ERROR_UNKNOWN; in wifi_initialize()
680 ret = initializeGscanHandlers(info); in wifi_initialize()
681 if (ret != WIFI_SUCCESS) { in wifi_initialize()
686 ret = initializeRSSIMonitorHandler(info); in wifi_initialize()
687 if (ret != WIFI_SUCCESS) { in wifi_initialize()
696 if (status != 0 || ret != WIFI_SUCCESS) { in wifi_initialize()
697 ret = WIFI_ERROR_UNKNOWN; in wifi_initialize()
701 if (ret != WIFI_SUCCESS) { in wifi_initialize()
722 return ret; in wifi_initialize()
754 int ret = nl_socket_add_membership(info->event_sock, id); in wifi_add_membership() local
755 if (ret < 0) { in wifi_add_membership()
759 return ret; in wifi_add_membership()
1007 wifi_error ret = mMsg.create(nlctrlFamily, CTRL_CMD_GETFAMILY, 0, 0); in create() local
1008 if (ret != WIFI_SUCCESS) in create()
1009 return ret; in create()
1011 ret = mMsg.put_string(CTRL_ATTR_FAMILY_NAME, mName); in create()
1012 return ret; in create()
1177 int ret = 0; in wifi_get_supported_feature_set() local
1182 ret = acquire_supported_features(iface, set); in wifi_get_supported_feature_set()
1183 if (ret != WIFI_SUCCESS) { in wifi_get_supported_feature_set()
1197 wifi_error ret; in wifi_get_concurrency_matrix() local
1218 ret = vCommand->create(); in wifi_get_concurrency_matrix()
1219 if (ret != WIFI_SUCCESS) in wifi_get_concurrency_matrix()
1222 ret = vCommand->set_iface_id(ifaceInfo->name); in wifi_get_concurrency_matrix()
1223 if (ret != WIFI_SUCCESS) in wifi_get_concurrency_matrix()
1231 ret = vCommand->put_u32( in wifi_get_concurrency_matrix()
1234 if (ret != WIFI_SUCCESS) in wifi_get_concurrency_matrix()
1244 ret = vCommand->requestResponse(); in wifi_get_concurrency_matrix()
1245 if (ret != WIFI_SUCCESS) in wifi_get_concurrency_matrix()
1246 ALOGE("%s: requestResponse() error: %d", __func__, ret); in wifi_get_concurrency_matrix()
1250 if (ret) in wifi_get_concurrency_matrix()
1252 return ret; in wifi_get_concurrency_matrix()
1258 wifi_error ret; in wifi_set_nodfs_flag() local
1273 ret = vCommand->create(); in wifi_set_nodfs_flag()
1274 if (ret != WIFI_SUCCESS) in wifi_set_nodfs_flag()
1277 ret = vCommand->set_iface_id(ifaceInfo->name); in wifi_set_nodfs_flag()
1278 if (ret != WIFI_SUCCESS) in wifi_set_nodfs_flag()
1287 ret = vCommand->put_u32(QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG, nodfs); in wifi_set_nodfs_flag()
1288 if (ret != WIFI_SUCCESS) in wifi_set_nodfs_flag()
1293 ret = vCommand->requestResponse(); in wifi_set_nodfs_flag()
1298 return ret; in wifi_set_nodfs_flag()
1309 wifi_error ret; in wifi_start_sending_offloaded_packet() local
1313 ret = initialize_vendor_cmd(iface, id, in wifi_start_sending_offloaded_packet()
1316 if (ret != WIFI_SUCCESS) { in wifi_start_sending_offloaded_packet()
1318 return ret; in wifi_start_sending_offloaded_packet()
1332 ret = vCommand->put_u32( in wifi_start_sending_offloaded_packet()
1335 if (ret != WIFI_SUCCESS) in wifi_start_sending_offloaded_packet()
1338 ret = vCommand->put_u32( in wifi_start_sending_offloaded_packet()
1341 if (ret != WIFI_SUCCESS) in wifi_start_sending_offloaded_packet()
1344 ret = vCommand->put_bytes( in wifi_start_sending_offloaded_packet()
1347 if (ret != WIFI_SUCCESS) in wifi_start_sending_offloaded_packet()
1350 ret = vCommand->put_addr( in wifi_start_sending_offloaded_packet()
1353 if (ret != WIFI_SUCCESS) in wifi_start_sending_offloaded_packet()
1356 ret = vCommand->put_addr( in wifi_start_sending_offloaded_packet()
1359 if (ret != WIFI_SUCCESS) in wifi_start_sending_offloaded_packet()
1362 ret = vCommand->put_u32( in wifi_start_sending_offloaded_packet()
1365 if (ret != WIFI_SUCCESS) in wifi_start_sending_offloaded_packet()
1370 ret = vCommand->requestResponse(); in wifi_start_sending_offloaded_packet()
1371 if (ret != WIFI_SUCCESS) in wifi_start_sending_offloaded_packet()
1376 return ret; in wifi_start_sending_offloaded_packet()
1382 wifi_error ret; in wifi_stop_sending_offloaded_packet() local
1386 ret = initialize_vendor_cmd(iface, id, in wifi_stop_sending_offloaded_packet()
1389 if (ret != WIFI_SUCCESS) { in wifi_stop_sending_offloaded_packet()
1391 return ret; in wifi_stop_sending_offloaded_packet()
1399 ret = vCommand->put_u32( in wifi_stop_sending_offloaded_packet()
1402 if (ret != WIFI_SUCCESS) in wifi_stop_sending_offloaded_packet()
1405 ret = vCommand->put_u32( in wifi_stop_sending_offloaded_packet()
1408 if (ret != WIFI_SUCCESS) in wifi_stop_sending_offloaded_packet()
1413 ret = vCommand->requestResponse(); in wifi_stop_sending_offloaded_packet()
1414 if (ret != WIFI_SUCCESS) in wifi_stop_sending_offloaded_packet()
1419 return ret; in wifi_stop_sending_offloaded_packet()
1425 wifi_error ret; in wifi_set_packet_filter() local
1440 ret = initialize_vendor_cmd(iface, get_requestid(), in wifi_set_packet_filter()
1443 if (ret != WIFI_SUCCESS) { in wifi_set_packet_filter()
1445 return ret; in wifi_set_packet_filter()
1453 ret = vCommand->put_u32(QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD, in wifi_set_packet_filter()
1455 if (ret != WIFI_SUCCESS) in wifi_set_packet_filter()
1457 ret = vCommand->put_u32(QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, in wifi_set_packet_filter()
1459 if (ret != WIFI_SUCCESS) in wifi_set_packet_filter()
1461 ret = vCommand->put_u32(QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_TOTAL_LENGTH, in wifi_set_packet_filter()
1463 if (ret != WIFI_SUCCESS) in wifi_set_packet_filter()
1465 ret = vCommand->put_u32( in wifi_set_packet_filter()
1468 if (ret != WIFI_SUCCESS) in wifi_set_packet_filter()
1472 ret = vCommand->put_bytes( in wifi_set_packet_filter()
1477 if (ret!= WIFI_SUCCESS) { in wifi_set_packet_filter()
1485 ret = vCommand->requestResponse(); in wifi_set_packet_filter()
1486 if (ret != WIFI_SUCCESS) { in wifi_set_packet_filter()
1487 ALOGE("%s: requestResponse Error:%d",__func__, ret); in wifi_set_packet_filter()
1503 return ret; in wifi_set_packet_filter()
1509 wifi_error ret; in wifi_get_packet_filter_capabilities() local
1530 ret = vCommand->create(); in wifi_get_packet_filter_capabilities()
1531 if (ret != WIFI_SUCCESS) in wifi_get_packet_filter_capabilities()
1534 ret = vCommand->set_iface_id(ifaceInfo->name); in wifi_get_packet_filter_capabilities()
1535 if (ret != WIFI_SUCCESS) in wifi_get_packet_filter_capabilities()
1543 ret = vCommand->put_u32(QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD, in wifi_get_packet_filter_capabilities()
1545 if (ret != WIFI_SUCCESS) in wifi_get_packet_filter_capabilities()
1550 ret = vCommand->requestResponse(); in wifi_get_packet_filter_capabilities()
1551 if (ret != WIFI_SUCCESS) { in wifi_get_packet_filter_capabilities()
1552 ALOGE("%s: requestResponse() error: %d", __FUNCTION__, ret); in wifi_get_packet_filter_capabilities()
1553 if (ret == WIFI_ERROR_NOT_SUPPORTED) { in wifi_get_packet_filter_capabilities()
1560 ret = WIFI_SUCCESS; in wifi_get_packet_filter_capabilities()
1569 return ret; in wifi_get_packet_filter_capabilities()
1576 wifi_error ret; in wifi_configure_nd_offload() local
1580 ret = initialize_vendor_cmd(iface, get_requestid(), in wifi_configure_nd_offload()
1583 if (ret != WIFI_SUCCESS) { in wifi_configure_nd_offload()
1585 return ret; in wifi_configure_nd_offload()
1595 ret = vCommand->put_u8(QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG, enable); in wifi_configure_nd_offload()
1596 if (ret != WIFI_SUCCESS) in wifi_configure_nd_offload()
1601 ret = vCommand->requestResponse(); in wifi_configure_nd_offload()
1605 return ret; in wifi_configure_nd_offload()
1636 wifi_error ret; in wifi_write_packet_filter() local
1651 ret = initialize_vendor_cmd(iface, get_requestid(), in wifi_write_packet_filter()
1654 if (ret != WIFI_SUCCESS) { in wifi_write_packet_filter()
1656 return ret; in wifi_write_packet_filter()
1664 ret = vCommand->put_u32(QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD, in wifi_write_packet_filter()
1666 if (ret != WIFI_SUCCESS) in wifi_write_packet_filter()
1668 ret = vCommand->put_u32(QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, in wifi_write_packet_filter()
1670 if (ret != WIFI_SUCCESS) in wifi_write_packet_filter()
1672 ret = vCommand->put_u32(QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_TOTAL_LENGTH, in wifi_write_packet_filter()
1674 if (ret != WIFI_SUCCESS) in wifi_write_packet_filter()
1676 ret = vCommand->put_u32( in wifi_write_packet_filter()
1679 if (ret != WIFI_SUCCESS) in wifi_write_packet_filter()
1681 ret = vCommand->put_u32( in wifi_write_packet_filter()
1684 if (ret != WIFI_SUCCESS) in wifi_write_packet_filter()
1687 ret = vCommand->put_bytes( in wifi_write_packet_filter()
1692 if (ret!= WIFI_SUCCESS) { in wifi_write_packet_filter()
1699 ret = vCommand->requestResponse(); in wifi_write_packet_filter()
1700 if (ret != WIFI_SUCCESS) { in wifi_write_packet_filter()
1701 ALOGE("%s: requestResponse Error:%d",__func__, ret); in wifi_write_packet_filter()
1716 return ret; in wifi_write_packet_filter()
1722 wifi_error ret; in wifi_enable_packet_filter() local
1729 ret = initialize_vendor_cmd(handle, get_requestid(), in wifi_enable_packet_filter()
1733 if (ret != WIFI_SUCCESS) { in wifi_enable_packet_filter()
1735 return ret; in wifi_enable_packet_filter()
1744 ret = vCommand->put_u32(QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD, in wifi_enable_packet_filter()
1746 if (ret != WIFI_SUCCESS) in wifi_enable_packet_filter()
1750 ret = vCommand->requestResponse(); in wifi_enable_packet_filter()
1752 if (ret != WIFI_SUCCESS) { in wifi_enable_packet_filter()
1753 ALOGE("%s: requestResponse() error: %d", __FUNCTION__, ret); in wifi_enable_packet_filter()
1762 return ret; in wifi_enable_packet_filter()
1787 wifi_error ret; in wifi_read_packet_filter() local
1807 ret = wifi_enable_packet_filter(handle, 0); in wifi_read_packet_filter()
1808 if (ret != WIFI_SUCCESS) { in wifi_read_packet_filter()
1810 return ret; in wifi_read_packet_filter()
1825 ret = WIFI_ERROR_OUT_OF_MEMORY; in wifi_read_packet_filter()
1830 ret = vCommand->create(); in wifi_read_packet_filter()
1831 if (ret != WIFI_SUCCESS) in wifi_read_packet_filter()
1833 ret = vCommand->set_iface_id(ifaceInfo->name); in wifi_read_packet_filter()
1834 if (ret != WIFI_SUCCESS) in wifi_read_packet_filter()
1840 ret = vCommand->put_u32(QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD, in wifi_read_packet_filter()
1842 if (ret != WIFI_SUCCESS) in wifi_read_packet_filter()
1847 ret = vCommand->put_u32(QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_TOTAL_LENGTH, in wifi_read_packet_filter()
1849 if (ret != WIFI_SUCCESS) in wifi_read_packet_filter()
1851 ret = vCommand->put_u32(QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET, in wifi_read_packet_filter()
1853 if (ret != WIFI_SUCCESS) in wifi_read_packet_filter()
1858 ret = vCommand->requestResponse(); in wifi_read_packet_filter()
1860 if (ret != WIFI_SUCCESS) { in wifi_read_packet_filter()
1862 __FUNCTION__, ret, currentLength, src_offset); in wifi_read_packet_filter()
1880 if (ret == WIFI_SUCCESS) in wifi_read_packet_filter()
1881 ret = status; in wifi_read_packet_filter()
1885 return ret; in wifi_read_packet_filter()