Re: LE Advertising: Command Disallowed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Devin,

On Wed, Nov 11, 2020 at 12:13 PM Devin Bayer <dev@xxxxxxxxx> wrote:
>
> On 11/11/2020 21.04, Michael N. Moran wrote:
> > Hi Devin,
> >
> > If I recall correctly, you get this if advertising is already enabled.
>
> For the first error (Advertise Enable), this makes sense. I also saw that on
> another host which seemed to be working.
>
> But the following seem to prevent advertisements from being sent:
>
> >> HCI Event: Command Complete (0x0e) plen 4      #16 [hci0] 3.407380
> >       LE Set Advertising Parameters (0x08|0x0006) ncmd 1
> >         Status: Command Disallowed (0x0c)
>
> >> HCI Event: Command Complete (0x0e) plen 4      #20 [hci0] 1.613980
> >       LE Set Advertising Data (0x08|0x0008) ncmd 1
> >         Status: Command Disallowed (0x0c)
>

You also need to ensure you are not mixing with extended advertisement
commands, iirc if the stack does send
BT_HCI_CMD_LE_READ_NUM_SUPPORTED_ADV_SETS it would already prevent the
legacy version to work. Bottom line here is, either use entire stack
or switch to user-channel with a proper stack, mixed handling won't
cut anymore, and for the most part we should be covering all the
advertisement features over D-Bus if we don't please let us know if
there are still gaps.


-- 
Luiz Augusto von Dentz



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux