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()
113 wifi_error ret; in wifi_set_country_code() local
135 ret = wifiConfigCommand->create_generic(NL80211_CMD_REQ_SET_REG); in wifi_set_country_code()
136 if (ret != WIFI_SUCCESS) { in wifi_set_country_code()
137 ALOGE("wifi_set_country_code: failed to create NL msg. Error:%d", ret); in wifi_set_country_code()
141 ret = wifiConfigCommand->put_string(NL80211_ATTR_REG_ALPHA2, country_code); in wifi_set_country_code()
142 if (ret != WIFI_SUCCESS) { in wifi_set_country_code()
143 ALOGE("wifi_set_country_code: put country code failed. Error:%d", ret); in wifi_set_country_code()
149 ret = wifiConfigCommand->requestEvent(); in wifi_set_country_code()
150 if (ret != WIFI_SUCCESS) { in wifi_set_country_code()
151 ALOGE("wifi_set_country_code(): requestEvent Error:%d", ret); in wifi_set_country_code()
158 return ret; in wifi_set_country_code()
166 wifi_error ret; in wifi_set_beacon_wifi_iface_stats_averaging_factor() local
184 ret = wifiConfigCommand->create(); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
185 if (ret != WIFI_SUCCESS) { in wifi_set_beacon_wifi_iface_stats_averaging_factor()
187 "create NL msg. Error:%d", ret); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
192 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
193 if (ret != WIFI_SUCCESS) { in wifi_set_beacon_wifi_iface_stats_averaging_factor()
195 "set iface id. Error:%d", ret); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
203 "attr_start for VENDOR_DATA. Error:%d", ret); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
210 "put vendor data. Error:%d", ret); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
217 ret = wifiConfigCommand->requestEvent(); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
218 if (ret != WIFI_SUCCESS) { in wifi_set_beacon_wifi_iface_stats_averaging_factor()
220 "requestEvent Error:%d", ret); in wifi_set_beacon_wifi_iface_stats_averaging_factor()
226 return ret; in wifi_set_beacon_wifi_iface_stats_averaging_factor()
233 wifi_error ret; in wifi_set_guard_time() local
252 ret = wifiConfigCommand->create(); in wifi_set_guard_time()
253 if (ret != WIFI_SUCCESS) { in wifi_set_guard_time()
254 ALOGE("wifi_set_guard_time: failed to create NL msg. Error:%d", ret); in wifi_set_guard_time()
259 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_set_guard_time()
260 if (ret != WIFI_SUCCESS) { in wifi_set_guard_time()
261 ALOGE("wifi_set_guard_time: failed to set iface id. Error:%d", ret); in wifi_set_guard_time()
269 "Error:%d", ret); in wifi_set_guard_time()
282 ret = wifiConfigCommand->requestEvent(); in wifi_set_guard_time()
283 if (ret != WIFI_SUCCESS) { in wifi_set_guard_time()
284 ALOGE("wifi_set_guard_time(): requestEvent Error:%d", ret); in wifi_set_guard_time()
290 return ret; in wifi_set_guard_time()
296 wifi_error ret; in wifi_select_tx_power_scenario() local
316 ret = wifiConfigCommand->create(); in wifi_select_tx_power_scenario()
317 if (ret != WIFI_SUCCESS) { in wifi_select_tx_power_scenario()
318 ALOGE("wifi_select_tx_power_scenario: failed to create NL msg. Error:%d", ret); in wifi_select_tx_power_scenario()
323 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_select_tx_power_scenario()
324 if (ret != WIFI_SUCCESS) { in wifi_select_tx_power_scenario()
325 ALOGE("wifi_select_tx_power_scenario: failed to set iface id. Error:%d", ret); in wifi_select_tx_power_scenario()
333 "Error:%d", ret); in wifi_select_tx_power_scenario()
357 ret = WIFI_ERROR_INVALID_ARGS; in wifi_select_tx_power_scenario()
369 ret = wifiConfigCommand->requestEvent(); in wifi_select_tx_power_scenario()
370 if (ret != WIFI_SUCCESS) { in wifi_select_tx_power_scenario()
371 ALOGE("wifi_select_tx_power_scenario(): requestEvent Error:%d", ret); in wifi_select_tx_power_scenario()
377 return ret; in wifi_select_tx_power_scenario()
382 wifi_error ret; in wifi_reset_tx_power_scenario() local
399 ret = wifiConfigCommand->create(); in wifi_reset_tx_power_scenario()
400 if (ret != WIFI_SUCCESS) { in wifi_reset_tx_power_scenario()
401 ALOGE("wifi_reset_tx_power_scenario: failed to create NL msg. Error:%d", ret); in wifi_reset_tx_power_scenario()
406 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_reset_tx_power_scenario()
407 if (ret != WIFI_SUCCESS) { in wifi_reset_tx_power_scenario()
408 ALOGE("wifi_reset_tx_power_scenario: failed to set iface id. Error:%d", ret); in wifi_reset_tx_power_scenario()
416 "Error:%d", ret); in wifi_reset_tx_power_scenario()
427 ret = wifiConfigCommand->requestEvent(); in wifi_reset_tx_power_scenario()
428 if (ret != WIFI_SUCCESS) { in wifi_reset_tx_power_scenario()
429 ALOGE("wifi_reset_tx_power_scenario(): requestEvent Error:%d", ret); in wifi_reset_tx_power_scenario()
435 return ret; in wifi_reset_tx_power_scenario()
456 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); in create() local
457 if (ret != WIFI_SUCCESS) in create()
458 return ret; in create()
461 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_ID, mVendor_id); in create()
462 if (ret != WIFI_SUCCESS) in create()
463 return ret; in create()
465 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_SUBCMD, mSubcmd); in create()
467 return ret; in create()
473 wifi_error ret = mMsg.create(cmdId, 0, 0); in create_generic() local
474 return ret; in create_generic()
488 int *ret = (int *)arg; in error_handler_wifi_config() local
490 *ret = err->error; in error_handler_wifi_config()
491 ALOGE("%s: Error code:%d (%s)", __FUNCTION__, *ret, strerror(-(*ret))); in error_handler_wifi_config()
498 int *ret = (int *)arg; in ack_handler_wifi_config() local
502 *ret = 0; in ack_handler_wifi_config()
509 int *ret = (int *)arg; in finish_handler_wifi_config() local
513 *ret = 0; in finish_handler_wifi_config()