Changes in uspace/drv/nic/ar9271/ar9271.c [cde999a:b3c39690] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/ar9271.c
rcde999a rb3c39690 33 33 */ 34 34 35 #include <async.h>36 35 #include <ieee80211.h> 37 36 #include <usb/classes/classes.h> … … 42 41 #include <ddf/interrupt.h> 43 42 #include <errno.h> 44 #include <str_error.h>45 43 #include <nic.h> 46 44 #include <macros.h> 45 #include <thread.h> 47 46 #include "ath_usb.h" 48 47 #include "wmi.h" … … 666 665 } 667 666 668 static int ar9271_init(ar9271_t *ar9271, usb_device_t *usb_device )667 static int ar9271_init(ar9271_t *ar9271, usb_device_t *usb_device, const usb_endpoint_description_t **endpoints) 669 668 { 670 669 ar9271->starting_up = true; … … 680 679 } 681 680 682 int rc = ath_usb_init(ar9271->ath_device, usb_device );681 int rc = ath_usb_init(ar9271->ath_device, usb_device, endpoints); 683 682 if (rc != EOK) { 684 683 free(ar9271->ath_device); … … 734 733 * @param ar9271 AR9271 device structure 735 734 * 736 * @return EOK if succeed, error code otherwise735 * @return EOK if succeed, negative error code otherwise 737 736 * 738 737 */ … … 785 784 free(buffer); 786 785 usb_log_error("Error while uploading firmware. " 787 "Error: % s\n", str_error_name(rc));786 "Error: %d\n", rc); 788 787 return rc; 789 788 } … … 819 818 820 819 /* Wait until firmware is ready - wait for 1 second to be sure. */ 821 async_sleep(1);820 thread_sleep(1); 822 821 823 822 return rc; … … 837 836 if (rc != EOK) { 838 837 usb_log_error("Failed to create USB device: %s, " 839 "ERR_NUM = % s\n", err_msg, str_error_name(rc));838 "ERR_NUM = %d\n", err_msg, rc); 840 839 return NULL; 841 840 } … … 851 850 ar9271->ddf_dev = dev; 852 851 853 rc = ar9271_init(ar9271, usb_device_get(dev) );852 rc = ar9271_init(ar9271, usb_device_get(dev), endpoints); 854 853 if (rc != EOK) { 855 854 free(ar9271); 856 usb_log_error("Failed to initialize AR9271 structure: % s\n",857 str_error_name(rc));855 usb_log_error("Failed to initialize AR9271 structure: %d\n", 856 rc); 858 857 return NULL; 859 858 } … … 877 876 * @param dev The device structure. 878 877 * 879 * @return EOK if succeed, error code otherwise878 * @return EOK if succeed, negative error code otherwise 880 879 */ 881 880 static int ar9271_add_device(ddf_dev_t *dev)
Note:
See TracChangeset
for help on using the changeset viewer.