Changeset b7fd2a0 in mainline for uspace/lib/drv/generic/remote_ieee80211.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_ieee80211.c
r36f0738 rb7fd2a0 62 62 * 63 63 */ 64 int ieee80211_get_scan_results(async_sess_t *dev_sess,64 errno_t 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 int rc = async_data_read_start(exch, results,73 errno_t rc = async_data_read_start(exch, results, 74 74 sizeof(ieee80211_scan_results_t)); 75 75 async_exchange_end(exch); 76 76 77 int res;77 errno_t res; 78 78 async_wait_for(aid, &res); 79 79 80 80 if(res != EOK) 81 return ( int) res;81 return (errno_t) res; 82 82 83 83 return rc; … … 100 100 size_t count; 101 101 102 int rc = inetcfg_get_link_list(&link_list, &count);102 errno_t rc = inetcfg_get_link_list(&link_list, &count); 103 103 if (rc != EOK) 104 104 return -1; … … 126 126 * 127 127 */ 128 int ieee80211_connect(async_sess_t *dev_sess, char *ssid_start, char *password)128 errno_t ieee80211_connect(async_sess_t *dev_sess, char *ssid_start, char *password) 129 129 { 130 130 assert(ssid_start); 131 131 132 int rc_orig;132 errno_t rc_orig; 133 133 134 134 async_exch_t *exch = async_exchange_begin(dev_sess); … … 137 137 IEEE80211_CONNECT, NULL); 138 138 139 int rc = async_data_write_start(exch, ssid_start,139 errno_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 ( int) rc;147 148 return ( int) rc_orig;146 return (errno_t) rc; 147 148 return (errno_t) rc_orig; 149 149 } 150 150 … … 159 159 160 160 if (rc_orig == EOK) 161 return ( int) rc;162 163 return ( int) rc_orig;161 return (errno_t) rc; 162 163 return (errno_t) rc_orig; 164 164 } 165 165 … … 182 182 rc = dhcp_discover(link_id); 183 183 184 return ( int) rc;184 return (errno_t) rc; 185 185 } 186 186 … … 193 193 * 194 194 */ 195 int ieee80211_disconnect(async_sess_t *dev_sess)195 errno_t ieee80211_disconnect(async_sess_t *dev_sess) 196 196 { 197 197 async_exch_t *exch = async_exchange_begin(dev_sess); 198 int rc = async_req_1_0(exch, DEV_IFACE_ID(IEEE80211_DEV_IFACE),198 errno_t 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 int rc = ieee80211_iface->get_scan_results(fun, &scan_results, now);280 errno_t 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 int rc = async_data_write_finalize(data_callid, ssid_start, len);326 errno_t 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 int rc = ieee80211_iface->disconnect(fun);362 errno_t rc = ieee80211_iface->disconnect(fun); 363 363 async_answer_0(callid, rc); 364 364 }
Note:
See TracChangeset
for help on using the changeset viewer.