Changeset 4cb0148 in mainline for uspace/drv/bus/usb/ar9271/ar9271.c


Ignore:
Timestamp:
2015-03-05T10:53:02Z (9 years ago)
Author:
Jan Kolarik <kolarik@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9e5a51c
Parents:
56c0930
Message:

Fixed some device settings that were previously taken from different ATH device, because of nonlinear numbering of ATH devices versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ar9271/ar9271.c

    r56c0930 r4cb0148  
    165165                htc_read_data_message(ar9271->htc_device, buffer, buffer_size,
    166166                        NULL);
    167                 usb_log_info("RC is %d.\n", rc);
     167                usb_log_info("XXXXXXXXXXXXXXXXXXXXXXXXXXXX RC is %d.\n", rc);
    168168               
    169169                /* TODO: Process RX message */
     
    179179        while(true) {
    180180                uint32_t result;
     181                wmi_reg_read(ar9271->htc_device, 0x7828, &result);
     182                usb_log_info("0x7828: %x\n", result);
     183                wmi_reg_read(ar9271->htc_device, 0x782C, &result);
     184                usb_log_info("0x782C: %x\n", result);
     185                wmi_reg_read(ar9271->htc_device, 0x8048, &result);
     186                usb_log_info("Diag reg.: %x\n", result);
     187                wmi_reg_read(ar9271->htc_device, 0x8088, &result);
     188                usb_log_info("Successful RTS count: %x\n", result);
     189                wmi_reg_read(ar9271->htc_device, 0x808C, &result);
     190                usb_log_info("Failed RTS count: %x\n", result);
     191                wmi_reg_read(ar9271->htc_device, 0x8090, &result);
     192                usb_log_info("Failed ACK count: %x\n", result);
     193                wmi_reg_read(ar9271->htc_device, 0x8094, &result);
     194                usb_log_info("Failed FCS count: %x\n", result);
    181195                wmi_reg_read(ar9271->htc_device, 0x80F0, &result);
    182196                usb_log_info("RX count: %x\n", result);
    183197                wmi_reg_read(ar9271->htc_device, 0x8098, &result);
    184198                usb_log_info("Beacon count: %x\n", result);
     199                wmi_reg_read(ar9271->htc_device, 0x812C, &result);
     200                usb_log_info("PHY errors: %x\n", result);
    185201                sleep(1);
    186202        }
Note: See TracChangeset for help on using the changeset viewer.