Lines Matching refs:ret
33 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); in create() local
34 if (ret != WIFI_SUCCESS) in create()
35 return ret; in create()
38 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_ID, mVendor_id); in create()
39 if (ret != WIFI_SUCCESS) in create()
40 return ret; in create()
42 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_SUBCMD, mSubcmd); in create()
43 if (ret != WIFI_SUCCESS) in create()
44 return ret; in create()
48 return ret; in create()
60 wifi_error ret; in wifi_set_bssid_blacklist() local
92 ret = roamCommand->create(); in wifi_set_bssid_blacklist()
93 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
97 ret = roamCommand->set_iface_id(ifaceInfo->name); in wifi_set_bssid_blacklist()
98 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
106 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD, in wifi_set_bssid_blacklist()
108 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
111 ret = roamCommand->put_u32( QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID, id); in wifi_set_bssid_blacklist()
112 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
115 ret = roamCommand->put_u32( in wifi_set_bssid_blacklist()
118 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
126 ret = roamCommand->put_addr( in wifi_set_bssid_blacklist()
129 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
138 ret = roamCommand->requestResponse(); in wifi_set_bssid_blacklist()
139 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
140 ALOGE("wifi_set_bssid_blacklist(): requestResponse Error:%d", ret); in wifi_set_bssid_blacklist()
144 return ret; in wifi_set_bssid_blacklist()
151 wifi_error ret; in wifi_set_ssid_white_list() local
172 ret = roamCommand->create(); in wifi_set_ssid_white_list()
173 if (ret != WIFI_SUCCESS) { in wifi_set_ssid_white_list()
174 ALOGE("%s: Failed to create NL message, Error: %d", __FUNCTION__, ret); in wifi_set_ssid_white_list()
179 ret = roamCommand->set_iface_id(ifaceInfo->name); in wifi_set_ssid_white_list()
180 if (ret != WIFI_SUCCESS) { in wifi_set_ssid_white_list()
181 ALOGE("%s: Failed to set interface Id of message, Error: %d", __FUNCTION__, ret); in wifi_set_ssid_white_list()
191 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD, in wifi_set_ssid_white_list()
193 if (ret != WIFI_SUCCESS) in wifi_set_ssid_white_list()
195 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID, id); in wifi_set_ssid_white_list()
196 if (ret != WIFI_SUCCESS) in wifi_set_ssid_white_list()
198 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS, in wifi_set_ssid_white_list()
200 if (ret != WIFI_SUCCESS) in wifi_set_ssid_white_list()
211 ret = roamCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID, in wifi_set_ssid_white_list()
213 if (ret != WIFI_SUCCESS) { in wifi_set_ssid_white_list()
214 ALOGE("%s: Failed to add ssid atribute, Error: %d", __FUNCTION__, ret); in wifi_set_ssid_white_list()
224 ret = roamCommand->requestResponse(); in wifi_set_ssid_white_list()
225 if (ret != WIFI_SUCCESS) in wifi_set_ssid_white_list()
226 ALOGE("%s: Failed to send request, Error:%d", __FUNCTION__, ret); in wifi_set_ssid_white_list()
230 return ret; in wifi_set_ssid_white_list()
256 wifi_error ret; in wifi_configure_roaming() local
284 ret = wifi_set_bssid_blacklist(requestId, iface, bssid_params); in wifi_configure_roaming()
285 if (ret != WIFI_SUCCESS) { in wifi_configure_roaming()
297 ret = wifi_set_ssid_white_list(requestId, iface, roaming_config->num_whitelist_ssid, in wifi_configure_roaming()
299 if (ret != WIFI_SUCCESS) in wifi_configure_roaming()
302 return ret; in wifi_configure_roaming()
309 wifi_error ret; in wifi_enable_firmware_roaming() local
343 ret = roamCommand->create(); in wifi_enable_firmware_roaming()
344 if (ret != WIFI_SUCCESS) { in wifi_enable_firmware_roaming()
345 ALOGE("%s: Failed to create NL message, Error: %d", __FUNCTION__, ret); in wifi_enable_firmware_roaming()
350 ret = roamCommand->set_iface_id(ifaceInfo->name); in wifi_enable_firmware_roaming()
351 if (ret != WIFI_SUCCESS) { in wifi_enable_firmware_roaming()
352 ALOGE("%s: Failed to set interface Id of message, Error: %d", __FUNCTION__, ret); in wifi_enable_firmware_roaming()
359 ret = WIFI_ERROR_UNKNOWN; in wifi_enable_firmware_roaming()
363 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY, policy); in wifi_enable_firmware_roaming()
364 if (ret != WIFI_SUCCESS) { in wifi_enable_firmware_roaming()
365 ALOGE("%s: Failed to add roaming policy atribute, Error: %d", __FUNCTION__, ret); in wifi_enable_firmware_roaming()
371 ret = roamCommand->requestResponse(); in wifi_enable_firmware_roaming()
372 if (ret != WIFI_SUCCESS) in wifi_enable_firmware_roaming()
373 ALOGE("%s: Failed to send request, Error:%d", __FUNCTION__, ret); in wifi_enable_firmware_roaming()
377 return ret; in wifi_enable_firmware_roaming()