Changeset 3bacee1 in mainline for uspace/drv/nic/ar9271
- Timestamp:
- 2018-04-12T16:27:17Z (8 years ago)
- 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)
- Location:
- uspace/drv/nic/ar9271
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/ar9271.c
r76d0981d r3bacee1 408 408 ar9271_t *ar9271 = (ar9271_t *) ieee80211_get_specific(ieee80211_dev); 409 409 410 if (insert) {410 if (insert) { 411 411 assert(key_conf); 412 412 -
uspace/drv/nic/ar9271/hw.c
r76d0981d r3bacee1 158 158 159 159 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; 162 162 } 163 163 … … 272 272 uint32_t set_bit = 0x10000000; 273 273 274 switch (op_mode) {274 switch (op_mode) { 275 275 case IEEE80211_OPMODE_ADHOC: 276 276 set_bit |= AR9271_OPMODE_ADHOC_MASK; … … 545 545 wmi_reg_write(ar9271->htc_device, AR9271_PHY_ACTIVE, 0); 546 546 547 if (ar9271->starting_up) {547 if (ar9271->starting_up) { 548 548 wmi_reg_write(ar9271->htc_device, 549 549 AR9271_RESET_POWER_DOWN_CONTROL, -
uspace/drv/nic/ar9271/wmi.c
r76d0981d r3bacee1 232 232 233 233 if (command_buffer != NULL) 234 memcpy(buffer +header_size, command_buffer, command_length);234 memcpy(buffer + header_size, command_buffer, command_length); 235 235 236 236 /* Set up WMI header */ … … 283 283 ((void *) response_buffer + sizeof(htc_frame_header_t)); 284 284 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); 286 286 287 287 if (clean_resp_buffer)
Note:
See TracChangeset
for help on using the changeset viewer.
