Re: [PATCH v4.4/bluetooth 1/2] Bluetooth: Consolidate encryption handling in hci_encrypt_cfm

2020-10-15 Thread Hans-Christian Egtvedt (hegtvedt)
On 15/10/2020 14:44, Hans-Christian Egtvedt (hegtvedt) wrote: > On 15/10/2020 14:02, Greg KH wrote: >> On Thu, Oct 15, 2020 at 11:18:39AM +, Hans-Christian Egtvedt (hegtvedt) >> wrote: >>> On 15/10/2020 11:57, Greg KH wrote: On Thu, Oct 15, 2020 at 09:43:32AM +0200, Hans-Christian Noren E

Re: [PATCH v4.4/bluetooth 1/2] Bluetooth: Consolidate encryption handling in hci_encrypt_cfm

2020-10-15 Thread Hans-Christian Egtvedt (hegtvedt)
On 15/10/2020 14:02, Greg KH wrote: > On Thu, Oct 15, 2020 at 11:18:39AM +, Hans-Christian Egtvedt (hegtvedt) > wrote: >> On 15/10/2020 11:57, Greg KH wrote: >>> On Thu, Oct 15, 2020 at 09:43:32AM +0200, Hans-Christian Noren Egtvedt >>> wrote: From: Luiz Augusto von Dentz This

Re: [PATCH v4.4/bluetooth 1/2] Bluetooth: Consolidate encryption handling in hci_encrypt_cfm

2020-10-15 Thread Greg KH
On Thu, Oct 15, 2020 at 11:18:39AM +, Hans-Christian Egtvedt (hegtvedt) wrote: > On 15/10/2020 11:57, Greg KH wrote: > > On Thu, Oct 15, 2020 at 09:43:32AM +0200, Hans-Christian Noren Egtvedt > > wrote: > >> From: Luiz Augusto von Dentz > >> > >> This makes hci_encrypt_cfm calls hci_connect_

Re: [PATCH v4.4/bluetooth 1/2] Bluetooth: Consolidate encryption handling in hci_encrypt_cfm

2020-10-15 Thread Hans-Christian Egtvedt (hegtvedt)
On 15/10/2020 11:57, Greg KH wrote: > On Thu, Oct 15, 2020 at 09:43:32AM +0200, Hans-Christian Noren Egtvedt wrote: >> From: Luiz Augusto von Dentz >> >> This makes hci_encrypt_cfm calls hci_connect_cfm in case the connection >> state is BT_CONFIG so callers don't have to check the state. >> >> Si

Re: [PATCH v4.4/bluetooth 1/2] Bluetooth: Consolidate encryption handling in hci_encrypt_cfm

2020-10-15 Thread Greg KH
On Thu, Oct 15, 2020 at 09:43:32AM +0200, Hans-Christian Noren Egtvedt wrote: > From: Luiz Augusto von Dentz > > This makes hci_encrypt_cfm calls hci_connect_cfm in case the connection > state is BT_CONFIG so callers don't have to check the state. > > Signed-off-by: Luiz Augusto von Dentz > Sig

[PATCH v4.4/bluetooth 1/2] Bluetooth: Consolidate encryption handling in hci_encrypt_cfm

2020-10-15 Thread Hans-Christian Noren Egtvedt
From: Luiz Augusto von Dentz This makes hci_encrypt_cfm calls hci_connect_cfm in case the connection state is BT_CONFIG so callers don't have to check the state. Signed-off-by: Luiz Augusto von Dentz Signed-off-by: Marcel Holtmann (cherry picked from commit 3ca44c16b0dcc764b641ee4ac226909f5c42