Changes in uspace/app/wifi_supplicant/wifi_supplicant.c [c1694b6b:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wifi_supplicant/wifi_supplicant.c
rc1694b6b rb7fd2a0 87 87 } 88 88 89 static int get_wifi_list(service_id_t **wifis, size_t *count)89 static errno_t get_wifi_list(service_id_t **wifis, size_t *count) 90 90 { 91 91 category_id_t wifi_cat; 92 int rc = loc_category_get_id("ieee80211", &wifi_cat, 0);92 errno_t rc = loc_category_get_id("ieee80211", &wifi_cat, 0); 93 93 if (rc != EOK) { 94 94 printf("Error resolving category 'ieee80211'.\n"); … … 110 110 size_t count; 111 111 112 int rc = get_wifi_list(&wifis, &count);112 errno_t rc = get_wifi_list(&wifis, &count); 113 113 if (rc != EOK) { 114 114 printf("Error fetching wifi list.\n"); … … 133 133 } 134 134 135 static int wifi_list(void)135 static errno_t wifi_list(void) 136 136 { 137 137 service_id_t *wifis = NULL; 138 138 size_t count; 139 139 140 int rc = get_wifi_list(&wifis, &count);140 errno_t rc = get_wifi_list(&wifis, &count); 141 141 if (rc != EOK) { 142 142 printf("Error fetching wifi list: %s\n", str_error(rc)); … … 162 162 } 163 163 164 static int wifi_connect(uint32_t index, char *ssid_start, char *password)164 static errno_t wifi_connect(uint32_t index, char *ssid_start, char *password) 165 165 { 166 166 assert(ssid_start); … … 173 173 } 174 174 175 int rc = ieee80211_disconnect(sess);175 errno_t rc = ieee80211_disconnect(sess); 176 176 if(rc != EOK) { 177 177 if (rc == EREFUSED) … … 206 206 } 207 207 208 static int wifi_disconnect(uint32_t index)208 static errno_t wifi_disconnect(uint32_t index) 209 209 { 210 210 async_sess_t *sess = get_wifi_by_index(index); … … 215 215 } 216 216 217 int rc = ieee80211_disconnect(sess);217 errno_t rc = ieee80211_disconnect(sess); 218 218 if (rc != EOK) { 219 219 if (rc == EREFUSED) … … 233 233 } 234 234 235 static int wifi_scan(uint32_t index, bool now)235 static errno_t wifi_scan(uint32_t index, bool now) 236 236 { 237 237 async_sess_t *sess = get_wifi_by_index(index); … … 243 243 244 244 ieee80211_scan_results_t scan_results; 245 int rc = ieee80211_get_scan_results(sess, &scan_results, now);245 errno_t rc = ieee80211_get_scan_results(sess, &scan_results, now); 246 246 if (rc != EOK) { 247 247 if (rc == EREFUSED) … … 277 277 int main(int argc, char *argv[]) 278 278 { 279 int rc = inetcfg_init();279 errno_t rc = inetcfg_init(); 280 280 if (rc != EOK) { 281 281 printf("%s: Failed connecting to inetcfg service: %s.\n",
Note:
See TracChangeset
for help on using the changeset viewer.