Skip to content

Commit

Permalink
ninafw: change Address to show that type can be random or not
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Dec 29, 2023
1 parent fe73ff0 commit 43d46e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gap_ninafw.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (a *Adapter) StopScan() error {
type Address struct {
MACAddress

typ uint8
random uint8
}

// Connect starts a connection attempt to the given peripheral device address.
Expand All @@ -138,7 +138,7 @@ func (a *Adapter) Connect(address Address, params ConnectionParams) (*Device, er
}

if err := a.hci.leCreateConn(0x0060, 0x0030, 0x00,
address.typ, makeNINAAddress(address.MAC),
address.random, makeNINAAddress(address.MAC),
0x00, 0x0006, 0x000c, 0x0000, 0x00c8, 0x0004, 0x0006); err != nil {
return nil, err
}
Expand Down

0 comments on commit 43d46e3

Please sign in to comment.