Re: [Bluez PATCH v3 1/3] mgmt: Add controller suspend and resume events

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

 



Hi Luiz,

Could you also merge https://patchwork.kernel.org/patch/11663455/ that
adds this to docs/mgmt-api.txt?

Thanks
Abhishek

On Mon, Aug 31, 2020 at 10:36 AM Luiz Augusto von Dentz
<luiz.dentz@xxxxxxxxx> wrote:
>
> Hi Abhishek,
>
> On Fri, Aug 28, 2020 at 6:02 PM Abhishek Pandit-Subedi
> <abhishekpandit@xxxxxxxxxxxx> wrote:
> >
> > Add the controller suspend and resume events.
> >
> > Reviewed-by: Sonny Sasaka <sonnysasaka@xxxxxxxxxxxx>
> > ---
> >
> > Changes in v3: None
> > Changes in v2: None
> >
> >  lib/mgmt.h | 14 ++++++++++++++
> >  1 file changed, 14 insertions(+)
> >
> > diff --git a/lib/mgmt.h b/lib/mgmt.h
> > index a800bcab4..46d894ae9 100644
> > --- a/lib/mgmt.h
> > +++ b/lib/mgmt.h
> > @@ -772,6 +772,7 @@ struct mgmt_ev_device_connected {
> >  #define MGMT_DEV_DISCONN_TIMEOUT       0x01
> >  #define MGMT_DEV_DISCONN_LOCAL_HOST    0x02
> >  #define MGMT_DEV_DISCONN_REMOTE                0x03
> > +#define MGMT_DEV_DISCONN_LOCAL_HOST_SUSPEND    0x05
> >
> >  #define MGMT_EV_DEVICE_DISCONNECTED    0x000C
> >  struct mgmt_ev_device_disconnected {
> > @@ -959,6 +960,17 @@ struct mgmt_ev_adv_monitor_removed {
> >         uint16_t monitor_handle;
> >  }  __packed;
> >
> > +#define MGMT_EV_CONTROLLER_SUSPEND             0x002d
> > +struct mgmt_ev_controller_suspend {
> > +       uint8_t suspend_state;
> > +} __packed;
> > +
> > +#define MGMT_EV_CONTROLLER_RESUME              0x002e
> > +struct mgmt_ev_controller_resume {
> > +       struct mgmt_addr_info addr;
> > +       uint8_t wake_reason;
> > +} __packed;
> > +
> >  static const char *mgmt_op[] = {
> >         "<0x0000>",
> >         "Read Version",
> > @@ -1088,6 +1100,8 @@ static const char *mgmt_ev[] = {
> >         "Device Flags Changed",
> >         "Advertisement Monitor Added",                  /* 0x002b */
> >         "Advertisement Monitor Removed",
> > +       "Controller Suspend",
> > +       "Controller Resume",
> >  };
> >
> >  static const char *mgmt_status[] = {
> > --
> > 2.28.0.402.g5ffc5be6b7-goog
>
> Patches 1 and 2 of this series were applied, thanks.
>
> --
> 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