Changeset 3bacee1 in mainline for uspace/drv/nic/ar9271


Ignore:
Timestamp:
2018-04-12T16:27:17Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3cf22f9
Parents:
76d0981d
git-author:
Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
git-committer:
Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
Message:

Make ccheck-fix again and commit more good files.

Location:
uspace/drv/nic/ar9271
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ar9271/ar9271.c

    r76d0981d r3bacee1  
    408408        ar9271_t *ar9271 = (ar9271_t *) ieee80211_get_specific(ieee80211_dev);
    409409
    410         if(insert) {
     410        if (insert) {
    411411                assert(key_conf);
    412412
  • uspace/drv/nic/ar9271/hw.c

    r76d0981d r3bacee1  
    158158
    159159                uint16_t two_bytes = uint16_t_be2host(value);
    160                 ar9271_address.address[2*i] = two_bytes >> 8;
    161                 ar9271_address.address[2*i+1] = two_bytes & 0xff;
     160                ar9271_address.address[2 * i] = two_bytes >> 8;
     161                ar9271_address.address[2 * i + 1] = two_bytes & 0xff;
    162162        }
    163163
     
    272272        uint32_t set_bit = 0x10000000;
    273273
    274         switch(op_mode) {
     274        switch (op_mode) {
    275275        case IEEE80211_OPMODE_ADHOC:
    276276                set_bit |= AR9271_OPMODE_ADHOC_MASK;
     
    545545        wmi_reg_write(ar9271->htc_device, AR9271_PHY_ACTIVE, 0);
    546546
    547         if(ar9271->starting_up) {
     547        if (ar9271->starting_up) {
    548548                wmi_reg_write(ar9271->htc_device,
    549549                    AR9271_RESET_POWER_DOWN_CONTROL,
  • uspace/drv/nic/ar9271/wmi.c

    r76d0981d r3bacee1  
    232232
    233233        if (command_buffer != NULL)
    234                 memcpy(buffer+header_size, command_buffer, command_length);
     234                memcpy(buffer + header_size, command_buffer, command_length);
    235235
    236236        /* Set up WMI header */
     
    283283                    ((void *) response_buffer + sizeof(htc_frame_header_t));
    284284                cmd_id = uint16_t_be2host(wmi_hdr->command_id);
    285         } while(cmd_id & WMI_MGMT_CMD_MASK);
     285        } while (cmd_id & WMI_MGMT_CMD_MASK);
    286286
    287287        if (clean_resp_buffer)
Note: See TracChangeset for help on using the changeset viewer.