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