Changeset 132ab5d1 in mainline for uspace/drv/nic/ar9271/ar9271.c
- Timestamp:
- 2018-01-30T03:20:45Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/ar9271.c
r8bfb163 r132ab5d1 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" … … 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 } … … 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.