Changes in uspace/lib/drv/generic/remote_ieee80211.c [b7fd2a0:8a64320e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_ieee80211.c
rb7fd2a0 r8a64320e 59 59 * 60 60 * @return EOK If the operation was successfully completed, 61 * error code otherwise.62 * 63 */ 64 errno_t ieee80211_get_scan_results(async_sess_t *dev_sess,61 * negative error code otherwise. 62 * 63 */ 64 int ieee80211_get_scan_results(async_sess_t *dev_sess, 65 65 ieee80211_scan_results_t *results, bool now) 66 66 { … … 71 71 aid_t aid = async_send_2(exch, DEV_IFACE_ID(IEEE80211_DEV_IFACE), 72 72 IEEE80211_GET_SCAN_RESULTS, now, NULL); 73 errno_t rc = async_data_read_start(exch, results,73 int rc = async_data_read_start(exch, results, 74 74 sizeof(ieee80211_scan_results_t)); 75 75 async_exchange_end(exch); 76 76 77 errno_t res;77 sysarg_t res; 78 78 async_wait_for(aid, &res); 79 79 80 80 if(res != EOK) 81 return ( errno_t) res;81 return (int) res; 82 82 83 83 return rc; … … 100 100 size_t count; 101 101 102 errno_t rc = inetcfg_get_link_list(&link_list, &count);102 int rc = inetcfg_get_link_list(&link_list, &count); 103 103 if (rc != EOK) 104 104 return -1; … … 123 123 * 124 124 * @return EOK If the operation was successfully completed, 125 * error code otherwise.126 * 127 */ 128 errno_t ieee80211_connect(async_sess_t *dev_sess, char *ssid_start, char *password)125 * negative error code otherwise. 126 * 127 */ 128 int ieee80211_connect(async_sess_t *dev_sess, char *ssid_start, char *password) 129 129 { 130 130 assert(ssid_start); 131 131 132 errno_t rc_orig;132 sysarg_t rc_orig; 133 133 134 134 async_exch_t *exch = async_exchange_begin(dev_sess); … … 137 137 IEEE80211_CONNECT, NULL); 138 138 139 errno_t rc = async_data_write_start(exch, ssid_start,139 sysarg_t rc = async_data_write_start(exch, ssid_start, 140 140 str_size(ssid_start) + 1); 141 141 if (rc != EOK) { … … 144 144 145 145 if (rc_orig == EOK) 146 return ( errno_t) rc;147 148 return ( errno_t) rc_orig;146 return (int) rc; 147 148 return (int) rc_orig; 149 149 } 150 150 … … 159 159 160 160 if (rc_orig == EOK) 161 return ( errno_t) rc;162 163 return ( errno_t) rc_orig;161 return (int) rc; 162 163 return (int) rc_orig; 164 164 } 165 165 … … 182 182 rc = dhcp_discover(link_id); 183 183 184 return ( errno_t) rc;184 return (int) rc; 185 185 } 186 186 … … 190 190 * 191 191 * @return EOK If the operation was successfully completed, 192 * error code otherwise.193 * 194 */ 195 errno_t ieee80211_disconnect(async_sess_t *dev_sess)192 * negative error code otherwise. 193 * 194 */ 195 int ieee80211_disconnect(async_sess_t *dev_sess) 196 196 { 197 197 async_exch_t *exch = async_exchange_begin(dev_sess); 198 errno_t rc = async_req_1_0(exch, DEV_IFACE_ID(IEEE80211_DEV_IFACE),198 int rc = async_req_1_0(exch, DEV_IFACE_ID(IEEE80211_DEV_IFACE), 199 199 IEEE80211_DISCONNECT); 200 200 async_exchange_end(exch); … … 278 278 bool now = IPC_GET_ARG2(*call); 279 279 280 errno_t rc = ieee80211_iface->get_scan_results(fun, &scan_results, now);280 int rc = ieee80211_iface->get_scan_results(fun, &scan_results, now); 281 281 if (rc == EOK) { 282 282 ipc_callid_t data_callid; … … 324 324 } 325 325 326 errno_t rc = async_data_write_finalize(data_callid, ssid_start, len);326 int rc = async_data_write_finalize(data_callid, ssid_start, len); 327 327 if (rc != EOK) { 328 328 async_answer_0(data_callid, EINVAL); … … 360 360 ieee80211_iface_t *ieee80211_iface = (ieee80211_iface_t *) iface; 361 361 assert(ieee80211_iface->disconnect); 362 errno_t rc = ieee80211_iface->disconnect(fun);362 int rc = ieee80211_iface->disconnect(fun); 363 363 async_answer_0(callid, rc); 364 364 }
Note:
See TracChangeset
for help on using the changeset viewer.