Lines Matching refs:ret

46     wifi_error ret;  in nan_register_handler()  local
56 ret = nanCommand->setCallbackHandler(handlers); in nan_register_handler()
57 return ret; in nan_register_handler()
72 wifi_error ret; in nan_enable_request() local
86 ret = nanCommand->create(); in nan_enable_request()
87 if (ret != WIFI_SUCCESS) in nan_enable_request()
91 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_enable_request()
92 if (ret != WIFI_SUCCESS) in nan_enable_request()
95 ret = nanCommand->putNanEnable(id, msg); in nan_enable_request()
96 if (ret != WIFI_SUCCESS) { in nan_enable_request()
97 ALOGE("%s: putNanEnable Error:%d", __FUNCTION__, ret); in nan_enable_request()
101 ret = nanCommand->requestEvent(); in nan_enable_request()
102 if (ret != WIFI_SUCCESS) in nan_enable_request()
103 ALOGE("%s: requestEvent Error:%d", __FUNCTION__, ret); in nan_enable_request()
107 return ret; in nan_enable_request()
114 wifi_error ret; in nan_disable_request() local
128 ret = nanCommand->create(); in nan_disable_request()
129 if (ret != WIFI_SUCCESS) in nan_disable_request()
133 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_disable_request()
134 if (ret != WIFI_SUCCESS) in nan_disable_request()
137 ret = nanCommand->putNanDisable(id); in nan_disable_request()
138 if (ret != WIFI_SUCCESS) { in nan_disable_request()
139 ALOGE("%s: putNanDisable Error:%d",__FUNCTION__, ret); in nan_disable_request()
143 ret = nanCommand->requestEvent(); in nan_disable_request()
144 if (ret != WIFI_SUCCESS) in nan_disable_request()
145 ALOGE("%s: requestEvent Error:%d",__FUNCTION__, ret); in nan_disable_request()
149 return ret; in nan_disable_request()
157 wifi_error ret; in nan_publish_request() local
171 ret = nanCommand->create(); in nan_publish_request()
172 if (ret != WIFI_SUCCESS) in nan_publish_request()
176 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_publish_request()
177 if (ret != WIFI_SUCCESS) in nan_publish_request()
180 ret = nanCommand->putNanPublish(id, msg); in nan_publish_request()
181 if (ret != WIFI_SUCCESS) { in nan_publish_request()
182 ALOGE("%s: putNanPublish Error:%d",__FUNCTION__, ret); in nan_publish_request()
186 ret = nanCommand->requestEvent(); in nan_publish_request()
187 if (ret != WIFI_SUCCESS) in nan_publish_request()
188 ALOGE("%s: requestEvent Error:%d",__FUNCTION__, ret); in nan_publish_request()
192 return ret; in nan_publish_request()
200 wifi_error ret; in nan_publish_cancel_request() local
214 ret = nanCommand->create(); in nan_publish_cancel_request()
215 if (ret != WIFI_SUCCESS) in nan_publish_cancel_request()
219 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_publish_cancel_request()
220 if (ret != WIFI_SUCCESS) in nan_publish_cancel_request()
223 ret = nanCommand->putNanPublishCancel(id, msg); in nan_publish_cancel_request()
224 if (ret != WIFI_SUCCESS) { in nan_publish_cancel_request()
225 ALOGE("%s: putNanPublishCancel Error:%d", __FUNCTION__, ret); in nan_publish_cancel_request()
229 ret = nanCommand->requestEvent(); in nan_publish_cancel_request()
230 if (ret != WIFI_SUCCESS) in nan_publish_cancel_request()
231 ALOGE("%s: requestEvent Error:%d", __FUNCTION__, ret); in nan_publish_cancel_request()
235 return ret; in nan_publish_cancel_request()
243 wifi_error ret; in nan_subscribe_request() local
257 ret = nanCommand->create(); in nan_subscribe_request()
258 if (ret != WIFI_SUCCESS) in nan_subscribe_request()
262 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_subscribe_request()
263 if (ret != WIFI_SUCCESS) in nan_subscribe_request()
266 ret = nanCommand->putNanSubscribe(id, msg); in nan_subscribe_request()
267 if (ret != WIFI_SUCCESS) { in nan_subscribe_request()
268 ALOGE("%s: putNanSubscribe Error:%d", __FUNCTION__, ret); in nan_subscribe_request()
272 ret = nanCommand->requestEvent(); in nan_subscribe_request()
273 if (ret != WIFI_SUCCESS) in nan_subscribe_request()
274 ALOGE("%s: requestEvent Error:%d", __FUNCTION__, ret); in nan_subscribe_request()
278 return ret; in nan_subscribe_request()
286 wifi_error ret; in nan_subscribe_cancel_request() local
300 ret = nanCommand->create(); in nan_subscribe_cancel_request()
301 if (ret != WIFI_SUCCESS) in nan_subscribe_cancel_request()
305 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_subscribe_cancel_request()
306 if (ret != WIFI_SUCCESS) in nan_subscribe_cancel_request()
309 ret = nanCommand->putNanSubscribeCancel(id, msg); in nan_subscribe_cancel_request()
310 if (ret != WIFI_SUCCESS) { in nan_subscribe_cancel_request()
311 ALOGE("%s: putNanSubscribeCancel Error:%d", __FUNCTION__, ret); in nan_subscribe_cancel_request()
315 ret = nanCommand->requestEvent(); in nan_subscribe_cancel_request()
316 if (ret != WIFI_SUCCESS) in nan_subscribe_cancel_request()
317 ALOGE("%s: requestEvent Error:%d", __FUNCTION__, ret); in nan_subscribe_cancel_request()
321 return ret; in nan_subscribe_cancel_request()
329 wifi_error ret; in nan_transmit_followup_request() local
343 ret = nanCommand->create(); in nan_transmit_followup_request()
344 if (ret != WIFI_SUCCESS) in nan_transmit_followup_request()
348 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_transmit_followup_request()
349 if (ret != WIFI_SUCCESS) in nan_transmit_followup_request()
352 ret = nanCommand->putNanTransmitFollowup(id, msg); in nan_transmit_followup_request()
353 if (ret != WIFI_SUCCESS) { in nan_transmit_followup_request()
354 ALOGE("%s: putNanTransmitFollowup Error:%d", __FUNCTION__, ret); in nan_transmit_followup_request()
358 ret = nanCommand->requestEvent(); in nan_transmit_followup_request()
359 if (ret != WIFI_SUCCESS) in nan_transmit_followup_request()
360 ALOGE("%s: requestEvent Error:%d", __FUNCTION__, ret); in nan_transmit_followup_request()
364 return ret; in nan_transmit_followup_request()
372 wifi_error ret; in nan_stats_request() local
386 ret = nanCommand->create(); in nan_stats_request()
387 if (ret != WIFI_SUCCESS) in nan_stats_request()
391 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_stats_request()
392 if (ret != WIFI_SUCCESS) in nan_stats_request()
395 ret = nanCommand->putNanStats(id, msg); in nan_stats_request()
396 if (ret != WIFI_SUCCESS) { in nan_stats_request()
397 ALOGE("%s: putNanStats Error:%d", __FUNCTION__, ret); in nan_stats_request()
401 ret = nanCommand->requestEvent(); in nan_stats_request()
402 if (ret != WIFI_SUCCESS) in nan_stats_request()
403 ALOGE("%s: requestEvent Error:%d", __FUNCTION__, ret); in nan_stats_request()
407 return ret; in nan_stats_request()
415 wifi_error ret; in nan_config_request() local
429 ret = nanCommand->create(); in nan_config_request()
430 if (ret != WIFI_SUCCESS) in nan_config_request()
434 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_config_request()
435 if (ret != WIFI_SUCCESS) in nan_config_request()
438 ret = nanCommand->putNanConfig(id, msg); in nan_config_request()
439 if (ret != WIFI_SUCCESS) { in nan_config_request()
440 ALOGE("%s: putNanConfig Error:%d",__FUNCTION__, ret); in nan_config_request()
444 ret = nanCommand->requestEvent(); in nan_config_request()
445 if (ret != WIFI_SUCCESS) in nan_config_request()
446 ALOGE("%s: requestEvent Error:%d",__FUNCTION__, ret); in nan_config_request()
450 return ret; in nan_config_request()
458 wifi_error ret; in nan_tca_request() local
472 ret = nanCommand->create(); in nan_tca_request()
473 if (ret != WIFI_SUCCESS) in nan_tca_request()
477 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_tca_request()
478 if (ret != WIFI_SUCCESS) in nan_tca_request()
481 ret = nanCommand->putNanTCA(id, msg); in nan_tca_request()
482 if (ret != WIFI_SUCCESS) { in nan_tca_request()
483 ALOGE("%s: putNanTCA Error:%d",__FUNCTION__, ret); in nan_tca_request()
487 ret = nanCommand->requestEvent(); in nan_tca_request()
488 if (ret != WIFI_SUCCESS) in nan_tca_request()
489 ALOGE("%s: requestEvent Error:%d",__FUNCTION__, ret); in nan_tca_request()
493 return ret; in nan_tca_request()
504 wifi_error ret; in nan_beacon_sdf_payload_request() local
518 ret = nanCommand->create(); in nan_beacon_sdf_payload_request()
519 if (ret != WIFI_SUCCESS) in nan_beacon_sdf_payload_request()
523 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_beacon_sdf_payload_request()
524 if (ret != WIFI_SUCCESS) in nan_beacon_sdf_payload_request()
527 ret = nanCommand->putNanBeaconSdfPayload(id, msg); in nan_beacon_sdf_payload_request()
528 if (ret != WIFI_SUCCESS) { in nan_beacon_sdf_payload_request()
529 ALOGE("%s: putNanBeaconSdfPayload Error:%d", __FUNCTION__, ret); in nan_beacon_sdf_payload_request()
533 ret = nanCommand->requestEvent(); in nan_beacon_sdf_payload_request()
534 if (ret != WIFI_SUCCESS) in nan_beacon_sdf_payload_request()
535 ALOGE("%s: requestEvent Error:%d", __FUNCTION__, ret); in nan_beacon_sdf_payload_request()
539 return ret; in nan_beacon_sdf_payload_request()
546 wifi_error ret; in nan_get_sta_parameter() local
556 ret = nanCommand->getNanStaParameter(iface, msg); in nan_get_sta_parameter()
557 if (ret != WIFI_SUCCESS) { in nan_get_sta_parameter()
558 ALOGE("%s: getNanStaParameter Error:%d", __FUNCTION__, ret); in nan_get_sta_parameter()
563 return ret; in nan_get_sta_parameter()
570 wifi_error ret; in nan_get_capabilities() local
584 ret = nanCommand->create(); in nan_get_capabilities()
585 if (ret != WIFI_SUCCESS) in nan_get_capabilities()
589 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_get_capabilities()
590 if (ret != WIFI_SUCCESS) in nan_get_capabilities()
593 ret = nanCommand->putNanCapabilities(id); in nan_get_capabilities()
594 if (ret != WIFI_SUCCESS) { in nan_get_capabilities()
595 ALOGE("%s: putNanCapabilities Error:%d",__FUNCTION__, ret); in nan_get_capabilities()
599 ret = nanCommand->requestEvent(); in nan_get_capabilities()
600 if (ret != WIFI_SUCCESS) in nan_get_capabilities()
601 ALOGE("%s: requestEvent Error:%d",__FUNCTION__, ret); in nan_get_capabilities()
605 return ret; in nan_get_capabilities()
614 wifi_error ret; in nan_debug_command_config() local
634 ret = nanCommand->create(); in nan_debug_command_config()
635 if (ret != WIFI_SUCCESS) in nan_debug_command_config()
639 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_debug_command_config()
640 if (ret != WIFI_SUCCESS) in nan_debug_command_config()
643 ret = nanCommand->putNanDebugCommand(debug, debug_msg_length); in nan_debug_command_config()
644 if (ret != WIFI_SUCCESS) { in nan_debug_command_config()
645 ALOGE("%s: putNanDebugCommand Error:%d",__FUNCTION__, ret); in nan_debug_command_config()
649 ret = nanCommand->requestEvent(); in nan_debug_command_config()
650 if (ret != WIFI_SUCCESS) in nan_debug_command_config()
651 ALOGE("%s: requestEvent Error:%d",__FUNCTION__, ret); in nan_debug_command_config()
655 return ret; in nan_debug_command_config()
661 wifi_error ret; in nan_initialize_vendor_cmd() local
680 ret = (*nanCommand)->create(); in nan_initialize_vendor_cmd()
681 if (ret != WIFI_SUCCESS) in nan_initialize_vendor_cmd()
684 ret = (*nanCommand)->set_iface_id(ifaceInfo->name); in nan_initialize_vendor_cmd()
685 if (ret != WIFI_SUCCESS) in nan_initialize_vendor_cmd()
692 return ret; in nan_initialize_vendor_cmd()
700 wifi_error ret; in nan_data_interface_create() local
709 ret = nan_initialize_vendor_cmd(iface, in nan_data_interface_create()
711 if (ret != WIFI_SUCCESS) { in nan_data_interface_create()
713 return ret; in nan_data_interface_create()
735 ret = nanCommand->requestEvent(); in nan_data_interface_create()
736 if (ret != WIFI_SUCCESS) in nan_data_interface_create()
737 ALOGE("%s: requestEvent Error:%d", __FUNCTION__, ret); in nan_data_interface_create()
741 return ret; in nan_data_interface_create()
749 wifi_error ret; in nan_data_interface_delete() local
757 ret = nan_initialize_vendor_cmd(iface, in nan_data_interface_delete()
759 if (ret != WIFI_SUCCESS) { in nan_data_interface_delete()
761 return ret; in nan_data_interface_delete()
783 ret = nanCommand->requestEvent(); in nan_data_interface_delete()
784 if (ret != WIFI_SUCCESS) in nan_data_interface_delete()
785 ALOGE("%s: requestEvent Error:%d", __FUNCTION__, ret); in nan_data_interface_delete()
789 return ret; in nan_data_interface_delete()
797 wifi_error ret; in nan_data_request_initiator() local
804 ret = nan_initialize_vendor_cmd(iface, in nan_data_request_initiator()
806 if (ret != WIFI_SUCCESS) { in nan_data_request_initiator()
808 return ret; in nan_data_request_initiator()
918 ret = nanCommand->requestEvent(); in nan_data_request_initiator()
919 if (ret != WIFI_SUCCESS) in nan_data_request_initiator()
920 ALOGE("%s: requestEvent Error:%d", __FUNCTION__, ret); in nan_data_request_initiator()
924 return ret; in nan_data_request_initiator()
932 wifi_error ret; in nan_data_indication_response() local
939 ret = nan_initialize_vendor_cmd(iface, in nan_data_indication_response()
941 if (ret != WIFI_SUCCESS) { in nan_data_indication_response()
943 return ret; in nan_data_indication_response()
1035 ret = nanCommand->requestEvent(); in nan_data_indication_response()
1036 if (ret != WIFI_SUCCESS) in nan_data_indication_response()
1037 ALOGE("%s: requestEvent Error:%d", __FUNCTION__, ret); in nan_data_indication_response()
1041 return ret; in nan_data_indication_response()
1048 wifi_error ret; in nan_data_end() local
1056 ret = nan_initialize_vendor_cmd(iface, in nan_data_end()
1058 if (ret != WIFI_SUCCESS) { in nan_data_end()
1060 return ret; in nan_data_end()
1082 ret = nanCommand->requestEvent(); in nan_data_end()
1083 if (ret != WIFI_SUCCESS) in nan_data_end()
1084 ALOGE("%s: requestEvent Error:%d", __FUNCTION__, ret); in nan_data_end()
1088 return ret; in nan_data_end()
1171 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); in create() local
1172 if (ret != WIFI_SUCCESS) in create()
1176 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_ID, mVendor_id); in create()
1177 if (ret != WIFI_SUCCESS) in create()
1180 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_SUBCMD, mSubcmd); in create()
1183 if (ret != WIFI_SUCCESS) in create()
1185 return ret; in create()