We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a211012 commit 2f5b8c0Copy full SHA for 2f5b8c0
gap.go
@@ -376,7 +376,10 @@ func (buf *rawAdvertisementPayload) reset() {
376
// before the call) from the advertisement options. It returns true if it fits,
377
// false otherwise.
378
func (buf *rawAdvertisementPayload) addFromOptions(options AdvertisementOptions) (ok bool) {
379
- buf.addFlags(0x06)
+ // do not add flags for non-connectable advertisements
380
+ if options.AdvertisementType != AdvertisingTypeNonConnInd {
381
+ buf.addFlags(0x06)
382
+ }
383
if options.LocalName != "" {
384
if !buf.addCompleteLocalName(options.LocalName) {
385
return false
0 commit comments