Changeset b7fd2a0 in mainline for uspace/lib/ieee80211/src/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/ieee80211/src/ieee80211.c
r36f0738 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); … … 517 517 * 518 518 */ 519 static int ieee80211_open(ddf_fun_t *fun)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) … … 731 731 * 732 732 */ 733 int ieee80211_device_init(ieee80211_dev_t *ieee80211_dev, ddf_dev_t *ddf_dev)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; … … 771 771 * 772 772 */ 773 int ieee80211_init(ieee80211_dev_t *ieee80211_dev,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); … … 850 850 * 851 851 */ 852 int ieee80211_probe_request(ieee80211_dev_t *ieee80211_dev, char *ssid)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); … … 917 917 * 918 918 */ 919 int ieee80211_authenticate(ieee80211_dev_t *ieee80211_dev)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); … … 967 967 * 968 968 */ 969 int ieee80211_associate(ieee80211_dev_t *ieee80211_dev, char *password)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); … … 1057 1057 * 1058 1058 */ 1059 int ieee80211_deauthenticate(ieee80211_dev_t *ieee80211_dev)1059 errno_t ieee80211_deauthenticate(ieee80211_dev_t *ieee80211_dev) 1060 1060 { 1061 1061 ieee80211_scan_result_t *auth_data = … … 1241 1241 * 1242 1242 */ 1243 static int ieee80211_process_probe_response(ieee80211_dev_t *ieee80211_dev,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 { … … 1327 1327 * 1328 1328 */ 1329 static int ieee80211_process_auth_response(ieee80211_dev_t *ieee80211_dev,1329 static errno_t ieee80211_process_auth_response(ieee80211_dev_t *ieee80211_dev, 1330 1330 ieee80211_mgmt_header_t *mgmt_header) 1331 1331 { … … 1356 1356 * 1357 1357 */ 1358 static int ieee80211_process_assoc_response(ieee80211_dev_t *ieee80211_dev,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 { … … 1632 1632 * 1633 1633 */ 1634 static int ieee80211_process_data(ieee80211_dev_t *ieee80211_dev,1634 static errno_t ieee80211_process_data(ieee80211_dev_t *ieee80211_dev, 1635 1635 void *buffer, size_t buffer_size) 1636 1636 { … … 1696 1696 * 1697 1697 */ 1698 int ieee80211_rx_handler(ieee80211_dev_t *ieee80211_dev, void *buffer,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.