Changes in uspace/lib/ieee80211/src/ieee80211.c [193d280c:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ieee80211/src/ieee80211.c
r193d280c rb7fd2a0 496 496 } 497 497 498 static int ieee80211_scan(void *arg)498 static errno_t ieee80211_scan(void *arg) 499 499 { 500 500 assert(arg); … … 514 514 * @param fun NIC function. 515 515 * 516 * @return EOK if succeed, negativeerror code otherwise.517 * 518 */ 519 static int ieee80211_open(ddf_fun_t *fun)516 * @return EOK if succeed, error code otherwise. 517 * 518 */ 519 static errno_t ieee80211_open(ddf_fun_t *fun) 520 520 { 521 521 nic_t *nic_data = nic_get_from_ddf_fun(fun); … … 527 527 ieee80211_dev->started = true; 528 528 529 int rc = ieee80211_dev->ops->start(ieee80211_dev);529 errno_t rc = ieee80211_dev->ops->start(ieee80211_dev); 530 530 if (rc != EOK) 531 531 return rc; … … 655 655 * 656 656 */ 657 static int ieee80211_implement(ieee80211_dev_t *ieee80211_dev,657 static errno_t ieee80211_implement(ieee80211_dev_t *ieee80211_dev, 658 658 ieee80211_ops_t *ieee80211_ops, ieee80211_iface_t *ieee80211_iface, 659 659 nic_iface_t *nic_iface, ddf_dev_ops_t *nic_dev_ops) … … 728 728 * @param ddf_dev Pointer to backing DDF device structure. 729 729 * 730 * @return EOK if succeed, negativeerror code otherwise.731 * 732 */ 733 int ieee80211_device_init(ieee80211_dev_t *ieee80211_dev, ddf_dev_t *ddf_dev)730 * @return EOK if succeed, error code otherwise. 731 * 732 */ 733 errno_t ieee80211_device_init(ieee80211_dev_t *ieee80211_dev, ddf_dev_t *ddf_dev) 734 734 { 735 735 ieee80211_dev->ddf_dev = ddf_dev; … … 768 768 * interface operations. 769 769 * 770 * @return EOK if succeed, negativeerror code otherwise.771 * 772 */ 773 int ieee80211_init(ieee80211_dev_t *ieee80211_dev,770 * @return EOK if succeed, error code otherwise. 771 * 772 */ 773 errno_t ieee80211_init(ieee80211_dev_t *ieee80211_dev, 774 774 ieee80211_ops_t *ieee80211_ops, ieee80211_iface_t *ieee80211_iface, 775 775 nic_iface_t *ieee80211_nic_iface, ddf_dev_ops_t *ieee80211_nic_dev_ops) 776 776 { 777 int rc = ieee80211_implement(ieee80211_dev,777 errno_t rc = ieee80211_implement(ieee80211_dev, 778 778 ieee80211_ops, ieee80211_iface, 779 779 ieee80211_nic_iface, ieee80211_nic_dev_ops); … … 847 847 * @param ssid Probing SSID or NULL if broadcast. 848 848 * 849 * @return EOK if succeed, negativeerror code otherwise.850 * 851 */ 852 int ieee80211_probe_request(ieee80211_dev_t *ieee80211_dev, char *ssid)849 * @return EOK if succeed, error code otherwise. 850 * 851 */ 852 errno_t ieee80211_probe_request(ieee80211_dev_t *ieee80211_dev, char *ssid) 853 853 { 854 854 nic_t *nic = nic_get_from_ddf_dev(ieee80211_dev->ddf_dev); … … 914 914 * @param ieee80211_dev Pointer to IEEE 802.11 device structure. 915 915 * 916 * @return EOK if succeed, negativeerror code otherwise.917 * 918 */ 919 int ieee80211_authenticate(ieee80211_dev_t *ieee80211_dev)916 * @return EOK if succeed, error code otherwise. 917 * 918 */ 919 errno_t ieee80211_authenticate(ieee80211_dev_t *ieee80211_dev) 920 920 { 921 921 nic_t *nic = nic_get_from_ddf_dev(ieee80211_dev->ddf_dev); … … 964 964 * or NULL for open networks. 965 965 * 966 * @return EOK if succeed, negativeerror code otherwise.967 * 968 */ 969 int ieee80211_associate(ieee80211_dev_t *ieee80211_dev, char *password)966 * @return EOK if succeed, error code otherwise. 967 * 968 */ 969 errno_t ieee80211_associate(ieee80211_dev_t *ieee80211_dev, char *password) 970 970 { 971 971 nic_t *nic = nic_get_from_ddf_dev(ieee80211_dev->ddf_dev); … … 1054 1054 * @param ieee80211_dev Pointer to IEEE 802.11 device structure. 1055 1055 * 1056 * @return EOK if succeed, negativeerror code otherwise.1057 * 1058 */ 1059 int ieee80211_deauthenticate(ieee80211_dev_t *ieee80211_dev)1056 * @return EOK if succeed, error code otherwise. 1057 * 1058 */ 1059 errno_t ieee80211_deauthenticate(ieee80211_dev_t *ieee80211_dev) 1060 1060 { 1061 1061 ieee80211_scan_result_t *auth_data = … … 1238 1238 * @param mgmt_header Pointer to start of management frame header. 1239 1239 * 1240 * @return EOK if succeed, negativeerror code otherwise.1241 * 1242 */ 1243 static int ieee80211_process_probe_response(ieee80211_dev_t *ieee80211_dev,1240 * @return EOK if succeed, error code otherwise. 1241 * 1242 */ 1243 static errno_t ieee80211_process_probe_response(ieee80211_dev_t *ieee80211_dev, 1244 1244 ieee80211_mgmt_header_t *mgmt_header, size_t buffer_size) 1245 1245 { … … 1324 1324 * @param mgmt_header Pointer to start of management frame header. 1325 1325 * 1326 * @return EOK if succeed, negativeerror code otherwise.1327 * 1328 */ 1329 static int ieee80211_process_auth_response(ieee80211_dev_t *ieee80211_dev,1326 * @return EOK if succeed, error code otherwise. 1327 * 1328 */ 1329 static errno_t ieee80211_process_auth_response(ieee80211_dev_t *ieee80211_dev, 1330 1330 ieee80211_mgmt_header_t *mgmt_header) 1331 1331 { … … 1353 1353 * @param mgmt_header Pointer to start of management frame header. 1354 1354 * 1355 * @return EOK if succeed, negativeerror code otherwise.1356 * 1357 */ 1358 static int ieee80211_process_assoc_response(ieee80211_dev_t *ieee80211_dev,1355 * @return EOK if succeed, error code otherwise. 1356 * 1357 */ 1358 static errno_t ieee80211_process_assoc_response(ieee80211_dev_t *ieee80211_dev, 1359 1359 ieee80211_mgmt_header_t *mgmt_header) 1360 1360 { … … 1381 1381 } 1382 1382 1383 static int ieee80211_process_4way_handshake(ieee80211_dev_t *ieee80211_dev,1383 static errno_t ieee80211_process_4way_handshake(ieee80211_dev_t *ieee80211_dev, 1384 1384 void *buffer, size_t buffer_size) 1385 1385 { … … 1491 1491 (buffer + sizeof(ieee80211_eapol_key_frame_t)); 1492 1492 1493 int rc;1493 errno_t rc; 1494 1494 uint8_t work_key[32]; 1495 1495 … … 1610 1610 } 1611 1611 1612 static int ieee80211_process_eapol_frame(ieee80211_dev_t *ieee80211_dev,1612 static errno_t ieee80211_process_eapol_frame(ieee80211_dev_t *ieee80211_dev, 1613 1613 void *buffer, size_t buffer_size) 1614 1614 { … … 1629 1629 * @param buffer_size Size of buffer. 1630 1630 * 1631 * @return EOK if succeed, negativeerror code otherwise.1632 * 1633 */ 1634 static int ieee80211_process_data(ieee80211_dev_t *ieee80211_dev,1631 * @return EOK if succeed, error code otherwise. 1632 * 1633 */ 1634 static errno_t ieee80211_process_data(ieee80211_dev_t *ieee80211_dev, 1635 1635 void *buffer, size_t buffer_size) 1636 1636 { … … 1693 1693 * @param buffer_size Size of buffer. 1694 1694 * 1695 * @return EOK if succeed, negativeerror code otherwise.1696 * 1697 */ 1698 int ieee80211_rx_handler(ieee80211_dev_t *ieee80211_dev, void *buffer,1695 * @return EOK if succeed, error code otherwise. 1696 * 1697 */ 1698 errno_t ieee80211_rx_handler(ieee80211_dev_t *ieee80211_dev, void *buffer, 1699 1699 size_t buffer_size) 1700 1700 {
Note:
See TracChangeset
for help on using the changeset viewer.