Lines Matching refs:ret
41 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); in create() local
42 if (ret != WIFI_SUCCESS) in create()
43 return ret; in create()
46 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_ID, mVendor_id); in create()
47 if (ret != WIFI_SUCCESS) in create()
48 return ret; in create()
50 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_SUBCMD, mSubcmd); in create()
51 if (ret != WIFI_SUCCESS) in create()
52 return ret; in create()
56 return ret; in create()
68 wifi_error ret; in wifi_set_bssid_blacklist() local
100 ret = roamCommand->create(); in wifi_set_bssid_blacklist()
101 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
105 ret = roamCommand->set_iface_id(ifaceInfo->name); in wifi_set_bssid_blacklist()
106 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
112 ret = WIFI_ERROR_UNKNOWN; in wifi_set_bssid_blacklist()
116 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD, in wifi_set_bssid_blacklist()
118 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
121 ret = roamCommand->put_u32( QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID, id); in wifi_set_bssid_blacklist()
122 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
125 ret = roamCommand->put_u32( in wifi_set_bssid_blacklist()
128 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
136 ret = roamCommand->put_addr( in wifi_set_bssid_blacklist()
139 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
148 ret = roamCommand->requestResponse(); in wifi_set_bssid_blacklist()
149 if (ret != WIFI_SUCCESS) in wifi_set_bssid_blacklist()
150 ALOGE("wifi_set_bssid_blacklist(): requestResponse Error:%d", ret); in wifi_set_bssid_blacklist()
154 return ret; in wifi_set_bssid_blacklist()
161 wifi_error ret; in wifi_set_ssid_white_list() local
182 ret = roamCommand->create(); in wifi_set_ssid_white_list()
183 if (ret != WIFI_SUCCESS) { in wifi_set_ssid_white_list()
184 ALOGE("%s: Failed to create NL message, Error: %d", __FUNCTION__, ret); in wifi_set_ssid_white_list()
189 ret = roamCommand->set_iface_id(ifaceInfo->name); in wifi_set_ssid_white_list()
190 if (ret != WIFI_SUCCESS) { in wifi_set_ssid_white_list()
191 ALOGE("%s: Failed to set interface Id of message, Error: %d", __FUNCTION__, ret); in wifi_set_ssid_white_list()
198 ret = WIFI_ERROR_UNKNOWN; in wifi_set_ssid_white_list()
202 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD, in wifi_set_ssid_white_list()
204 if (ret != WIFI_SUCCESS) in wifi_set_ssid_white_list()
206 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID, id); in wifi_set_ssid_white_list()
207 if (ret != WIFI_SUCCESS) in wifi_set_ssid_white_list()
209 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS, in wifi_set_ssid_white_list()
211 if (ret != WIFI_SUCCESS) in wifi_set_ssid_white_list()
222 ret = roamCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID, in wifi_set_ssid_white_list()
224 if (ret != WIFI_SUCCESS) { in wifi_set_ssid_white_list()
225 ALOGE("%s: Failed to add ssid atribute, Error: %d", __FUNCTION__, ret); in wifi_set_ssid_white_list()
235 ret = roamCommand->requestResponse(); in wifi_set_ssid_white_list()
236 if (ret != WIFI_SUCCESS) in wifi_set_ssid_white_list()
237 ALOGE("%s: Failed to send request, Error:%d", __FUNCTION__, ret); in wifi_set_ssid_white_list()
241 return ret; in wifi_set_ssid_white_list()
278 wifi_error ret; in wifi_configure_roaming() local
306 ret = wifi_set_bssid_blacklist(requestId, iface, bssid_params); in wifi_configure_roaming()
307 if (ret != WIFI_SUCCESS) { in wifi_configure_roaming()
339 ret = wifi_set_ssid_white_list(requestId, iface, roaming_config->num_whitelist_ssid, in wifi_configure_roaming()
341 if (ret != WIFI_SUCCESS) in wifi_configure_roaming()
344 return ret; in wifi_configure_roaming()
351 wifi_error ret; in wifi_enable_firmware_roaming() local
385 ret = roamCommand->create(); in wifi_enable_firmware_roaming()
386 if (ret != WIFI_SUCCESS) { in wifi_enable_firmware_roaming()
387 ALOGE("%s: Failed to create NL message, Error: %d", __FUNCTION__, ret); in wifi_enable_firmware_roaming()
392 ret = roamCommand->set_iface_id(ifaceInfo->name); in wifi_enable_firmware_roaming()
393 if (ret != WIFI_SUCCESS) { in wifi_enable_firmware_roaming()
394 ALOGE("%s: Failed to set interface Id of message, Error: %d", __FUNCTION__, ret); in wifi_enable_firmware_roaming()
401 ret = WIFI_ERROR_UNKNOWN; in wifi_enable_firmware_roaming()
405 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY, policy); in wifi_enable_firmware_roaming()
406 if (ret != WIFI_SUCCESS) { in wifi_enable_firmware_roaming()
407 ALOGE("%s: Failed to add roaming policy atribute, Error: %d", __FUNCTION__, ret); in wifi_enable_firmware_roaming()
413 ret = roamCommand->requestResponse(); in wifi_enable_firmware_roaming()
414 if (ret != WIFI_SUCCESS) in wifi_enable_firmware_roaming()
415 ALOGE("%s: Failed to send request, Error:%d", __FUNCTION__, ret); in wifi_enable_firmware_roaming()
419 return ret; in wifi_enable_firmware_roaming()