mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 21:24:16 +08:00
Fix IAC support
This commit is contained in:
parent
c608311e74
commit
ce742d9563
@ -688,14 +688,14 @@ typedef struct {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t status;
|
uint8_t status;
|
||||||
uint8_t num_current_iac;
|
uint8_t num_current_iac;
|
||||||
uint8_t lap[3][MAX_IAC_LAP];
|
uint8_t lap[MAX_IAC_LAP][3];
|
||||||
} __attribute__ ((packed)) read_current_iac_lap_rp;
|
} __attribute__ ((packed)) read_current_iac_lap_rp;
|
||||||
#define READ_CURRENT_IAC_LAP_RP_SIZE 2+3*MAX_IAC_LAP
|
#define READ_CURRENT_IAC_LAP_RP_SIZE 2+3*MAX_IAC_LAP
|
||||||
|
|
||||||
#define OCF_WRITE_CURRENT_IAC_LAP 0x003A
|
#define OCF_WRITE_CURRENT_IAC_LAP 0x003A
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t num_current_iac;
|
uint8_t num_current_iac;
|
||||||
uint8_t lap[3][MAX_IAC_LAP];
|
uint8_t lap[MAX_IAC_LAP][3];
|
||||||
} __attribute__ ((packed)) write_current_iac_lap_cp;
|
} __attribute__ ((packed)) write_current_iac_lap_cp;
|
||||||
#define WRITE_CURRENT_IAC_LAP_CP_SIZE 1+3*MAX_IAC_LAP
|
#define WRITE_CURRENT_IAC_LAP_CP_SIZE 1+3*MAX_IAC_LAP
|
||||||
|
|
||||||
|
@ -1215,7 +1215,7 @@ int hci_write_current_iac_lap(int dd, uint8_t num_iac, uint8_t *lap, int to)
|
|||||||
rq.ogf = OGF_HOST_CTL;
|
rq.ogf = OGF_HOST_CTL;
|
||||||
rq.ocf = OCF_WRITE_CURRENT_IAC_LAP;
|
rq.ocf = OCF_WRITE_CURRENT_IAC_LAP;
|
||||||
rq.cparam = &cp;
|
rq.cparam = &cp;
|
||||||
rq.clen = WRITE_CURRENT_IAC_LAP_CP_SIZE;
|
rq.clen = num_iac * 3 + 1;
|
||||||
|
|
||||||
return hci_send_req(dd, &rq, to);
|
return hci_send_req(dd, &rq, to);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user