uint8_t unknown[3]; } __packed; struct acx100_conf_wepkey { struct acx_conf confcom; uint8_t action; /* see ACX100_WEPKEY_ACT_ */ uint8_t key_len; uint8_t key_idx; #define ACX100_WEPKEY_LEN 29 uint8_t key[ACX100_WEPKEY_LEN]; } __packed; #define ACX100_WEPKEY_ACT_ADD 1 static const uint16_t acx100_reg[ACXREG_MAX] = { ACXREG(SOFT_RESET, 0x0000), ACXREG(FWMEM_ADDR, 0x0014), ACXREG(FWMEM_DATA, 0x0018), ACXREG(FWMEM_CTRL, 0x001c), ACXREG(FWMEM_START, 0x0020), ACXREG(EVENT_MASK, 0x0034), ACXREG(INTR_TRIG, 0x007c), ACXREG(INTR_MASK, 0x0098), ACXREG(INTR_STATUS, 0x00a4), ACXREG(INTR_STATUS_CLR, 0x00a8), ACXREG(INTR_ACK, 0x00ac), ACXREG(HINTR_TRIG, 0x00b0),
uint16_t action; /* see ACX111_WEPKEY_ACT_ */ uint16_t reserved; uint8_t key_len; uint8_t key_type; /* see ACX111_WEPKEY_TYPE_ */ uint8_t index; /* XXX ?? */ uint8_t key_idx; uint8_t counter[6]; #define ACX111_WEPKEY_LEN 32 uint8_t key[ACX111_WEPKEY_LEN]; } __packed; #define ACX111_WEPKEY_ACT_ADD 1 #define ACX111_WEPKEY_TYPE_DEFAULT 0 static const uint16_t acx111_reg[ACXREG_MAX] = { ACXREG(SOFT_RESET, 0x0000), ACXREG(FWMEM_ADDR, 0x0014), ACXREG(FWMEM_DATA, 0x0018), ACXREG(FWMEM_CTRL, 0x001c), ACXREG(FWMEM_START, 0x0020), ACXREG(EVENT_MASK, 0x0034), ACXREG(INTR_TRIG, 0x00b4), ACXREG(INTR_MASK, 0x00d4), ACXREG(INTR_STATUS, 0x00f0), ACXREG(INTR_STATUS_CLR, 0x00e4), ACXREG(INTR_ACK, 0x00e8), ACXREG(HINTR_TRIG, 0x00ec),