Lines Matching refs:ret
43 wifi_error ret; in wifi_extended_dtim_config_set() local
63 ret = wifiConfigCommand->create(); in wifi_extended_dtim_config_set()
64 if (ret != WIFI_SUCCESS) { in wifi_extended_dtim_config_set()
66 "Error:%d", ret); in wifi_extended_dtim_config_set()
71 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_extended_dtim_config_set()
72 if (ret != WIFI_SUCCESS) { in wifi_extended_dtim_config_set()
74 "Error:%d", ret); in wifi_extended_dtim_config_set()
82 "VENDOR_DATA. Error:%d", ret); in wifi_extended_dtim_config_set()
86 ret = wifiConfigCommand->put_u32( in wifi_extended_dtim_config_set()
88 if (ret != WIFI_SUCCESS) { in wifi_extended_dtim_config_set()
90 "Error:%d", ret); in wifi_extended_dtim_config_set()
97 ret = wifiConfigCommand->requestEvent(); in wifi_extended_dtim_config_set()
98 if (ret != WIFI_SUCCESS) { in wifi_extended_dtim_config_set()
99 ALOGE("wifi_extended_dtim_config_set(): requestEvent Error:%d", ret); in wifi_extended_dtim_config_set()
105 return ret; in wifi_extended_dtim_config_set()
121 wifi_error ret; in wifi_set_country_code() local
144 ret = wifiConfigCommand->create_generic(NL80211_CMD_REQ_SET_REG); in wifi_set_country_code()
145 if (ret != WIFI_SUCCESS) { in wifi_set_country_code()
146 ALOGE("wifi_set_country_code: failed to create NL msg. Error:%d", ret); in wifi_set_country_code()
150 ret = wifiConfigCommand->put_string(NL80211_ATTR_REG_ALPHA2, country_code); in wifi_set_country_code()
151 if (ret != WIFI_SUCCESS) { in wifi_set_country_code()
152 ALOGE("wifi_set_country_code: put country code failed. Error:%d", ret); in wifi_set_country_code()
158 ret = wifiConfigCommand->put_u32(NL80211_ATTR_USER_REG_HINT_TYPE, in wifi_set_country_code()
160 if (ret != WIFI_SUCCESS) { in wifi_set_country_code()
162 ret); in wifi_set_country_code()
170 ret = wifiConfigCommand->requestEvent(); in wifi_set_country_code()
171 if (ret != WIFI_SUCCESS) { in wifi_set_country_code()
172 ALOGE("wifi_set_country_code(): requestEvent Error:%d", ret); in wifi_set_country_code()
179 return ret; in wifi_set_country_code()
187 wifi_error ret; in wifi_set_beacon_wifi_iface_stats_averaging_factor() local
205 ret = wifiConfigCommand->create(); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
206 if (ret != WIFI_SUCCESS) { in wifi_set_beacon_wifi_iface_stats_averaging_factor()
208 "create NL msg. Error:%d", ret); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
213 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
214 if (ret != WIFI_SUCCESS) { in wifi_set_beacon_wifi_iface_stats_averaging_factor()
216 "set iface id. Error:%d", ret); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
224 "attr_start for VENDOR_DATA. Error:%d", ret); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
231 "put vendor data. Error:%d", ret); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
238 ret = wifiConfigCommand->requestEvent(); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
239 if (ret != WIFI_SUCCESS) { in wifi_set_beacon_wifi_iface_stats_averaging_factor()
241 "requestEvent Error:%d", ret); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
247 return ret; in wifi_set_beacon_wifi_iface_stats_averaging_factor()
254 wifi_error ret; in wifi_set_guard_time() local
273 ret = wifiConfigCommand->create(); in wifi_set_guard_time()
274 if (ret != WIFI_SUCCESS) { in wifi_set_guard_time()
275 ALOGE("wifi_set_guard_time: failed to create NL msg. Error:%d", ret); in wifi_set_guard_time()
280 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_set_guard_time()
281 if (ret != WIFI_SUCCESS) { in wifi_set_guard_time()
282 ALOGE("wifi_set_guard_time: failed to set iface id. Error:%d", ret); in wifi_set_guard_time()
290 "Error:%d", ret); in wifi_set_guard_time()
303 ret = wifiConfigCommand->requestEvent(); in wifi_set_guard_time()
304 if (ret != WIFI_SUCCESS) { in wifi_set_guard_time()
305 ALOGE("wifi_set_guard_time(): requestEvent Error:%d", ret); in wifi_set_guard_time()
311 return ret; in wifi_set_guard_time()
317 wifi_error ret; in wifi_select_tx_power_scenario() local
337 ret = wifiConfigCommand->create(); in wifi_select_tx_power_scenario()
338 if (ret != WIFI_SUCCESS) { in wifi_select_tx_power_scenario()
339 ALOGE("wifi_select_tx_power_scenario: failed to create NL msg. Error:%d", ret); in wifi_select_tx_power_scenario()
344 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_select_tx_power_scenario()
345 if (ret != WIFI_SUCCESS) { in wifi_select_tx_power_scenario()
346 ALOGE("wifi_select_tx_power_scenario: failed to set iface id. Error:%d", ret); in wifi_select_tx_power_scenario()
354 "Error:%d", ret); in wifi_select_tx_power_scenario()
379 ret = WIFI_ERROR_INVALID_ARGS; in wifi_select_tx_power_scenario()
391 ret = wifiConfigCommand->requestEvent(); in wifi_select_tx_power_scenario()
392 if (ret != WIFI_SUCCESS) { in wifi_select_tx_power_scenario()
393 ALOGE("wifi_select_tx_power_scenario(): requestEvent Error:%d", ret); in wifi_select_tx_power_scenario()
399 return ret; in wifi_select_tx_power_scenario()
404 wifi_error ret; in wifi_reset_tx_power_scenario() local
421 ret = wifiConfigCommand->create(); in wifi_reset_tx_power_scenario()
422 if (ret != WIFI_SUCCESS) { in wifi_reset_tx_power_scenario()
423 ALOGE("wifi_reset_tx_power_scenario: failed to create NL msg. Error:%d", ret); in wifi_reset_tx_power_scenario()
428 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_reset_tx_power_scenario()
429 if (ret != WIFI_SUCCESS) { in wifi_reset_tx_power_scenario()
430 ALOGE("wifi_reset_tx_power_scenario: failed to set iface id. Error:%d", ret); in wifi_reset_tx_power_scenario()
438 "Error:%d", ret); in wifi_reset_tx_power_scenario()
449 ret = wifiConfigCommand->requestEvent(); in wifi_reset_tx_power_scenario()
450 if (ret != WIFI_SUCCESS) { in wifi_reset_tx_power_scenario()
451 ALOGE("wifi_reset_tx_power_scenario(): requestEvent Error:%d", ret); in wifi_reset_tx_power_scenario()
457 return ret; in wifi_reset_tx_power_scenario()
462 wifi_error ret; in wifi_set_latency_mode() local
490 ret = wifiConfigCommand->create(); in wifi_set_latency_mode()
491 if (ret != WIFI_SUCCESS) { in wifi_set_latency_mode()
492 ALOGE("wifi_set_latency_mode: failed to create NL msg. Error:%d", ret); in wifi_set_latency_mode()
497 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_set_latency_mode()
498 if (ret != WIFI_SUCCESS) { in wifi_set_latency_mode()
499 ALOGE("wifi_set_latency_mode: failed to set iface id. Error:%d", ret); in wifi_set_latency_mode()
506 ret = WIFI_ERROR_UNKNOWN; in wifi_set_latency_mode()
508 "Error:%d", ret); in wifi_set_latency_mode()
523 ret = WIFI_ERROR_UNKNOWN; in wifi_set_latency_mode()
531 ret = WIFI_ERROR_UNKNOWN; in wifi_set_latency_mode()
538 ret = wifiConfigCommand->requestEvent(); in wifi_set_latency_mode()
539 if (ret != WIFI_SUCCESS) { in wifi_set_latency_mode()
540 ALOGE("wifi_set_latency_mode: requestEvent Error:%d", ret); in wifi_set_latency_mode()
546 return ret; in wifi_set_latency_mode()
567 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); in create() local
568 if (ret != WIFI_SUCCESS) in create()
569 return ret; in create()
572 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_ID, mVendor_id); in create()
573 if (ret != WIFI_SUCCESS) in create()
574 return ret; in create()
576 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_SUBCMD, mSubcmd); in create()
578 return ret; in create()
584 wifi_error ret = mMsg.create(cmdId, 0, 0); in create_generic() local
585 return ret; in create_generic()
599 int *ret = (int *)arg; in error_handler_wifi_config() local
601 *ret = err->error; in error_handler_wifi_config()
602 ALOGE("%s: Error code:%d (%s)", __FUNCTION__, *ret, strerror(-(*ret))); in error_handler_wifi_config()
609 int *ret = (int *)arg; in ack_handler_wifi_config() local
613 *ret = 0; in ack_handler_wifi_config()
620 int *ret = (int *)arg; in finish_handler_wifi_config() local
624 *ret = 0; in finish_handler_wifi_config()