Lines Matching refs:ret

34     wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0);  in create()  local
35 if (ret != WIFI_SUCCESS) in create()
36 return ret; in create()
39 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_ID, mVendor_id); in create()
40 if (ret != WIFI_SUCCESS) in create()
41 return ret; in create()
43 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_SUBCMD, mSubcmd); in create()
44 if (ret != WIFI_SUCCESS) in create()
45 return ret; in create()
49 return ret; in create()
61 wifi_error ret; in wifi_set_bssid_blacklist() local
93 ret = roamCommand->create(); in wifi_set_bssid_blacklist()
94 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
98 ret = roamCommand->set_iface_id(ifaceInfo->name); in wifi_set_bssid_blacklist()
99 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
107 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD, in wifi_set_bssid_blacklist()
109 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
112 ret = roamCommand->put_u32( QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID, id); in wifi_set_bssid_blacklist()
113 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
116 ret = roamCommand->put_u32( in wifi_set_bssid_blacklist()
119 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
127 ret = roamCommand->put_addr( in wifi_set_bssid_blacklist()
130 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
139 ret = roamCommand->requestResponse(); in wifi_set_bssid_blacklist()
140 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
141 ALOGE("wifi_set_bssid_blacklist(): requestResponse Error:%d", ret); in wifi_set_bssid_blacklist()
145 return ret; in wifi_set_bssid_blacklist()
152 wifi_error ret; in wifi_set_ssid_white_list() local
173 ret = roamCommand->create(); in wifi_set_ssid_white_list()
174 if (ret != WIFI_SUCCESS) { in wifi_set_ssid_white_list()
175 ALOGE("%s: Failed to create NL message, Error: %d", __FUNCTION__, ret); in wifi_set_ssid_white_list()
180 ret = roamCommand->set_iface_id(ifaceInfo->name); in wifi_set_ssid_white_list()
181 if (ret != WIFI_SUCCESS) { in wifi_set_ssid_white_list()
182 ALOGE("%s: Failed to set interface Id of message, Error: %d", __FUNCTION__, ret); in wifi_set_ssid_white_list()
192 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD, in wifi_set_ssid_white_list()
194 if (ret != WIFI_SUCCESS) in wifi_set_ssid_white_list()
196 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID, id); in wifi_set_ssid_white_list()
197 if (ret != WIFI_SUCCESS) in wifi_set_ssid_white_list()
199 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS, in wifi_set_ssid_white_list()
201 if (ret != WIFI_SUCCESS) in wifi_set_ssid_white_list()
212 ret = roamCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID, in wifi_set_ssid_white_list()
214 if (ret != WIFI_SUCCESS) { in wifi_set_ssid_white_list()
215 ALOGE("%s: Failed to add ssid atribute, Error: %d", __FUNCTION__, ret); in wifi_set_ssid_white_list()
225 ret = roamCommand->requestResponse(); in wifi_set_ssid_white_list()
226 if (ret != WIFI_SUCCESS) in wifi_set_ssid_white_list()
227 ALOGE("%s: Failed to send request, Error:%d", __FUNCTION__, ret); in wifi_set_ssid_white_list()
231 return ret; in wifi_set_ssid_white_list()
257 wifi_error ret; in wifi_configure_roaming() local
285 ret = wifi_set_bssid_blacklist(requestId, iface, bssid_params); in wifi_configure_roaming()
286 if (ret != WIFI_SUCCESS) { in wifi_configure_roaming()
298 ret = wifi_set_ssid_white_list(requestId, iface, roaming_config->num_whitelist_ssid, in wifi_configure_roaming()
300 if (ret != WIFI_SUCCESS) in wifi_configure_roaming()
303 return ret; in wifi_configure_roaming()
310 wifi_error ret; in wifi_enable_firmware_roaming() local
344 ret = roamCommand->create(); in wifi_enable_firmware_roaming()
345 if (ret != WIFI_SUCCESS) { in wifi_enable_firmware_roaming()
346 ALOGE("%s: Failed to create NL message, Error: %d", __FUNCTION__, ret); in wifi_enable_firmware_roaming()
351 ret = roamCommand->set_iface_id(ifaceInfo->name); in wifi_enable_firmware_roaming()
352 if (ret != WIFI_SUCCESS) { in wifi_enable_firmware_roaming()
353 ALOGE("%s: Failed to set interface Id of message, Error: %d", __FUNCTION__, ret); in wifi_enable_firmware_roaming()
360 ret = WIFI_ERROR_UNKNOWN; in wifi_enable_firmware_roaming()
364 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY, policy); in wifi_enable_firmware_roaming()
365 if (ret != WIFI_SUCCESS) { in wifi_enable_firmware_roaming()
366 ALOGE("%s: Failed to add roaming policy atribute, Error: %d", __FUNCTION__, ret); in wifi_enable_firmware_roaming()
372 ret = roamCommand->requestResponse(); in wifi_enable_firmware_roaming()
373 if (ret != WIFI_SUCCESS) in wifi_enable_firmware_roaming()
374 ALOGE("%s: Failed to send request, Error:%d", __FUNCTION__, ret); in wifi_enable_firmware_roaming()
378 return ret; in wifi_enable_firmware_roaming()