All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
@ 2011-08-31  6:25 Suraj Sumangala
  2011-08-31  6:30 ` Johannes Berg
  2011-08-31  7:14 ` Johannes Berg
  0 siblings, 2 replies; 17+ messages in thread
From: Suraj Sumangala @ 2011-08-31  6:25 UTC (permalink / raw)
  To: johannes, linville, ath6kl-devel
  Cc: senthilb, vipimeht, kvalo, linux-wireless, Suraj Sumangala

This patch propose a new set of NL80211 commands and attributes
to communicate information about ongoing Bluetooth operations to the
wifi chip in case of a Bluetooth-WiFi coex solution.

It can then be used by the WiFi hardware to understand the requirements
of a Bluetooth radio and manage shared resources between
Bluetooth and Wifi modules better.

The proposed Bluetooth information sent are mainly regarding Bluetooth
SCO, A2DP connection, inquiry and master/slave role of Bluetooth chip.

This information can be sent by a userspace Bluetooth filter utility
application to the WiFi driver.

Signed-off-by: Suraj Sumangala <surajs@qca.qualcomm.com>
---
 include/linux/nl80211.h |   73 +++++++++++++++++++++++++++++++++++++++++++++++
 net/wireless/nl80211.c  |    6 ++++
 2 files changed, 79 insertions(+), 0 deletions(-)

diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index 0343504..301ac13 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -499,6 +499,31 @@
  *	this command may also be sent by the driver as an MLME event to
  *	inform userspace of the new replay counter.
  *
+ * @NL80211_CMD_BTCOEX_INQ: This command is used to provide WiFi driver the
+ *	Bluetooth inquiry status. The status will be available in flag
+ *	%NL80211_ATTR_BTCOEX_INQ_STATUS. This information can be used to
+ *	manage shared resources when the wireless device is a Bluetooth-Wifi
+ *	coex solution.
+ *
+ * @NL80211_CMD_BTCOEX_SCO: This command is used to give the driver the
+ *	Bluetooth SCO connection status. The SCO status is available in
+ *	%NL80211_ATTR_BTCOEX_SCO_STATUS flag. It also provide
+ *	%NL80211_ATTR_BTCOEX_TYPE_ESCO to specify if the connection is ESCO.
+ *	It also has %NL80211_ATTR_BTCOEX_SCO_MAX_SLOT specifing the maximum
+ *	number of slots used for a SCO packet. This feature is typically used
+ *	when the wireless device is a Bluetooth-Wifi coex solution.
+ *
+ * @NL80211_CMD_BTCOEX_A2DP: This command is used to give the driver the
+ *	Bluetooth A2DP profile connection status. The A2DP profile connection
+ *	status is available in %NL80211_ATTR_BTCOEX_A2DP_STATUS flag.
+ *	This feature is typically used when the wireless device is a
+ *	Bluetooth-Wifi coex solution.
+ *
+ * @NL80211_CMD_BTCOEX_ACL_ROLE: This command is used to let the wifi driver
+ *	know whether the Bluetooth chip is master or slave in an ACL link.
+ *	The role is available as %NL80211_ATTR_BTCOEX_ACL_ROLE. This feature is
+ *	useful when the wireless device is a Bluetooth-Wifi coex solution.
+ *
  * @NL80211_CMD_MAX: highest used command number
  * @__NL80211_CMD_AFTER_LAST: internal use
  */
@@ -623,6 +648,11 @@ enum nl80211_commands {
 
 	NL80211_CMD_SET_REKEY_OFFLOAD,
 
+	NL80211_CMD_BTCOEX_INQ,
+	NL80211_CMD_BTCOEX_SCO,
+	NL80211_CMD_BTCOEX_A2DP,
+	NL80211_CMD_BTCOEX_ACL_ROLE,
+
 	/* add new commands above here */
 
 	/* used to define NL80211_CMD_MAX below */
@@ -1045,6 +1075,33 @@ enum nl80211_commands {
  * @NL80211_ATTR_STA_WME: Nested attribute containing the wme configuration
  *	of the station, see &enum nl80211_sta_wme_attr.
  *
+ * @%NL80211_ATTR_BTCOEX_INQ_STATUS: A flag indicating if Bluetooth inquiry
+ *	is in progress. this flag is useful for resource management in a
+ *	bluetooth wifi combo solution.
+ *
+ * @%NL80211_ATTR_BTCOEX_SCO_STATUS: A flag indicating if Bluetooth SCO audio
+ *	connection is active. this flag is useful for resource management in a
+ *	bluetooth wifi combo solution.
+ *
+ * @%NL80211_ATTR_BTCOEX_TYPE_ESCO: A flag indicating if the audio connection
+ *	is of type ESCO. If this attribute is available, the audio connection
+ *	is of type ESCO. this information is useful for resource management
+ *	in a bluetooth wifi combo solution.
+ *
+ * @%NL80211_ATTR_BTCOEX_SCO_MAX_SLOT: Provides the maximum number of slots
+ *	possible for a SCO packet in an active SCO connection.
+ *	this information is useful for resource management in a bluetooth
+ *	wifi combo solution.
+ *
+ * @%NL80211_ATTR_BTCOEX_A2DP_STATUS: A flag indicating the Bluetooth
+ *	A2DP connection status. This flag is useful for resource management
+ *	in a bluetooth wifi combo solution.
+ *
+ * @%NL80211_ATTR_BTCOEX_ACL_ROLE: Indicates if Bluetooth chip's role
+ *	in an ACL connection. See &enum nl80211_btcoex_acl_role for possible
+ *	value. This flag is useful for resource management in a bluetooth
+ *	wifi combo solution.
+ *
  * @NL80211_ATTR_MAX: highest attribute number currently defined
  * @__NL80211_ATTR_AFTER_LAST: internal use
  */
@@ -1257,6 +1314,13 @@ enum nl80211_attrs {
 
 	NL80211_ATTR_STA_WME,
 
+	NL80211_ATTR_BTCOEX_INQ_STATUS,
+	NL80211_ATTR_BTCOEX_SCO_STATUS,
+	NL80211_ATTR_BTCOEX_TYPE_ESCO,
+	NL80211_ATTR_BTCOEX_SCO_MAX_SLOT,
+	NL80211_ATTR_BTCOEX_A2DP_STATUS,
+	NL80211_ATTR_BTCOEX_ACL_ROLE,
+
 	/* add attributes here, update the policy in nl80211.c */
 
 	__NL80211_ATTR_AFTER_LAST,
@@ -2505,4 +2569,13 @@ enum nl80211_sta_wme_attr {
 	NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1
 };
 
+/**
+ * enum nl80211_btcoex_acl_role - Bluetooth ACL link role
+ * @NL80211_BTCOEX_ACL_ROLE_MASTER: Bluetooth chip is in master role.
+ * @NL80211_BTCOEX_ACL_ROLE_SLAVE: Bluetooth chip is in slave role.
+ */
+enum nl80211_btcoex_acl_role {
+	NL80211_BTCOEX_ACL_ROLE_MASTER,
+	NL80211_BTCOEX_ACL_ROLE_SLAVE
+};
 #endif /* __LINUX_NL80211_H */
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index bddb559..da2d24f 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -189,6 +189,12 @@ static const struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] = {
 					 .len = IEEE80211_MAX_DATA_LEN },
 	[NL80211_ATTR_IE_ASSOC_RESP] = { .type = NLA_BINARY,
 					 .len = IEEE80211_MAX_DATA_LEN },
+	[NL80211_ATTR_BTCOEX_INQ_STATUS] = { .type = NLA_FLAG },
+	[NL80211_ATTR_BTCOEX_SCO_STATUS] = { .type = NLA_FLAG },
+	[NL80211_ATTR_BTCOEX_TYPE_ESCO] = { .type = NLA_FLAG },
+	[NL80211_ATTR_BTCOEX_SCO_MAX_SLOT] = { .type = NLA_U32 },
+	[NL80211_ATTR_BTCOEX_A2DP_STATUS] = { .type = NLA_FLAG },
+	[NL80211_ATTR_BTCOEX_ACL_ROLE] = { .type = NLA_U32 },
 };
 
 /* policy for the key attributes */
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-08-31  6:25 [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex Suraj Sumangala
@ 2011-08-31  6:30 ` Johannes Berg
  2011-08-31  6:36   ` Sumangala, Suraj
  2011-08-31  7:14 ` Johannes Berg
  1 sibling, 1 reply; 17+ messages in thread
From: Johannes Berg @ 2011-08-31  6:30 UTC (permalink / raw)
  To: Suraj Sumangala
  Cc: linville, ath6kl-devel, senthilb, vipimeht, kvalo, linux-wireless

On Wed, 2011-08-31 at 11:55 +0530, Suraj Sumangala wrote:
> This patch propose a new set of NL80211 commands and attributes
> to communicate information about ongoing Bluetooth operations to the
> wifi chip in case of a Bluetooth-WiFi coex solution.
> 
> It can then be used by the WiFi hardware to understand the requirements
> of a Bluetooth radio and manage shared resources between
> Bluetooth and Wifi modules better.
> 
> The proposed Bluetooth information sent are mainly regarding Bluetooth
> SCO, A2DP connection, inquiry and master/slave role of Bluetooth chip.
> 
> This information can be sent by a userspace Bluetooth filter utility
> application to the WiFi driver.

???
Why would this need a userspace utility? Are you cloning some sort of
windows architecture here?

johannes


^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-08-31  6:30 ` Johannes Berg
@ 2011-08-31  6:36   ` Sumangala, Suraj
  2011-08-31  6:40     ` Johannes Berg
  0 siblings, 1 reply; 17+ messages in thread
From: Sumangala, Suraj @ 2011-08-31  6:36 UTC (permalink / raw)
  To: Johannes Berg
  Cc: linville, ath6kl-devel, Balasubramanian, senthilkumar, Mehta,
	Vipin, Valo, Kalle, linux-wireless

Hi johannes,
________________________________________
From: Johannes Berg [johannes@sipsolutions.net]
Sent: Wednesday, August 31, 2011 12:00 PM
To: Sumangala, Suraj
Cc: linville@tuxdriver.com; ath6kl-devel; Balasubramanian, senthilkumar; Mehta, Vipin; Valo, Kalle; linux-wireless@vger.kernel.org
Subject: Re: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex

On Wed, 2011-08-31 at 11:55 +0530, Suraj Sumangala wrote:
> This patch propose a new set of NL80211 commands and attributes
> to communicate information about ongoing Bluetooth operations to the
> wifi chip in case of a Bluetooth-WiFi coex solution.
>
> It can then be used by the WiFi hardware to understand the requirements
> of a Bluetooth radio and manage shared resources between
> Bluetooth and Wifi modules better.
>
> The proposed Bluetooth information sent are mainly regarding Bluetooth
> SCO, A2DP connection, inquiry and master/slave role of Bluetooth chip.
>
> This information can be sent by a userspace Bluetooth filter utility
> application to the WiFi driver.

???
Why would this need a userspace utility? Are you cloning some sort of
windows architecture here?

johannes

It will be the userpace bluez dbus events that can provide information regarding the status of variout Bluetooth events.
On receiving that information, it can send corresponding NL80211 command.

Regards
Suraj

^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-08-31  6:36   ` Sumangala, Suraj
@ 2011-08-31  6:40     ` Johannes Berg
  2011-08-31  6:48       ` Sumangala, Suraj
  0 siblings, 1 reply; 17+ messages in thread
From: Johannes Berg @ 2011-08-31  6:40 UTC (permalink / raw)
  To: Sumangala, Suraj
  Cc: linville, ath6kl-devel, Balasubramanian, senthilkumar, Mehta,
	Vipin, Valo, Kalle, linux-wireless

On Wed, 2011-08-31 at 06:36 +0000, Sumangala, Suraj wrote:
> Hi johannes,

> ???
> Why would this need a userspace utility? Are you cloning some sort of
> windows architecture here?

Ugh, please trim your quotes and use a useful mailer that will indent things.

> It will be the userpace bluez dbus events that can provide information
> regarding the status of variout Bluetooth events.
> On receiving that information, it can send corresponding NL80211
> command.

Doesn't the kernel's bluetooth subsystem already know anyway?

johannes


^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-08-31  6:40     ` Johannes Berg
@ 2011-08-31  6:48       ` Sumangala, Suraj
  2011-08-31 14:40         ` Marcel Holtmann
  0 siblings, 1 reply; 17+ messages in thread
From: Sumangala, Suraj @ 2011-08-31  6:48 UTC (permalink / raw)
  To: Johannes Berg
  Cc: linville, ath6kl-devel, Balasubramanian, senthilkumar, Mehta,
	Vipin, Valo, Kalle, linux-wireless


________________________________________
From: Johannes Berg [johannes@sipsolutions.net]
Sent: Wednesday, August 31, 2011 12:10 PM
To: Sumangala, Suraj
Cc: linville@tuxdriver.com; ath6kl-devel; Balasubramanian, senthilkumar; Mehta, Vipin; Valo, Kalle; linux-wireless@vger.kernel.org
Subject: RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex

On Wed, 2011-08-31 at 06:36 +0000, Sumangala, Suraj wrote:
> Hi johannes,

> ???
> Why would this need a userspace utility? Are you cloning some sort of
> windows architecture here?

Ugh, please trim your quotes and use a useful mailer that will indent things.

> It will be the userpace bluez dbus events that can provide information
> regarding the status of variout Bluetooth events.
> On receiving that information, it can send corresponding NL80211
> command.

Doesn't the kernel's bluetooth subsystem already know anyway?

Not all of the information I believe. Things like A2DP streaming will be best known at the userspace. Also, there is no way to tap these information at the kernel subsystem right now. But, there is a clear defined way to get these information at the userspace. Also, profile based information might not be available at the kernel space. 


-Suraj

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-08-31  6:25 [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex Suraj Sumangala
  2011-08-31  6:30 ` Johannes Berg
@ 2011-08-31  7:14 ` Johannes Berg
  2011-08-31 14:30   ` Sumangala, Suraj
  1 sibling, 1 reply; 17+ messages in thread
From: Johannes Berg @ 2011-08-31  7:14 UTC (permalink / raw)
  To: Suraj Sumangala
  Cc: linville, ath6kl-devel, senthilb, vipimeht, kvalo, linux-wireless

On Wed, 2011-08-31 at 11:55 +0530, Suraj Sumangala wrote:


> +	NL80211_CMD_BTCOEX_INQ,
> +	NL80211_CMD_BTCOEX_SCO,
> +	NL80211_CMD_BTCOEX_A2DP,
> +	NL80211_CMD_BTCOEX_ACL_ROLE,

Why do you need all these commands and not just one BT config command
that gives everything? Need to see more of the implementation but that
seems pointless.

johannes


^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-08-31  7:14 ` Johannes Berg
@ 2011-08-31 14:30   ` Sumangala, Suraj
  0 siblings, 0 replies; 17+ messages in thread
From: Sumangala, Suraj @ 2011-08-31 14:30 UTC (permalink / raw)
  To: Johannes Berg
  Cc: linville, ath6kl-devel, Balasubramanian, senthilkumar, Mehta,
	Vipin, Valo, Kalle, linux-wireless

Hi Johannes,
________________________________________
From: Johannes Berg [johannes@sipsolutions.net]
Sent: Wednesday, August 31, 2011 12:44 PM
To: Sumangala, Suraj
Cc: linville@tuxdriver.com; ath6kl-devel; Balasubramanian, senthilkumar; Mehta, Vipin; Valo, Kalle; linux-wireless@vger.kernel.org
Subject: Re: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex

On Wed, 2011-08-31 at 11:55 +0530, Suraj Sumangala wrote:


> +     NL80211_CMD_BTCOEX_INQ,
> +     NL80211_CMD_BTCOEX_SCO,
> +     NL80211_CMD_BTCOEX_A2DP,
> +     NL80211_CMD_BTCOEX_ACL_ROLE,

 > Why do you need all these commands and not just one BT config command
 > that gives everything? Need to see more of the implementation but that
 > seems pointless.

One reason I went this way is because some of the events for which commands are generated has different associated parameters associated with it.
But, I do understand your point and there is scope to club similar commands together.
I guess I will send another set of patches along with the cfg80211 callbacks.

-Suraj



^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-08-31  6:48       ` Sumangala, Suraj
@ 2011-08-31 14:40         ` Marcel Holtmann
  2011-08-31 14:56           ` Sumangala, Suraj
  0 siblings, 1 reply; 17+ messages in thread
From: Marcel Holtmann @ 2011-08-31 14:40 UTC (permalink / raw)
  To: Sumangala, Suraj
  Cc: Johannes Berg, linville, ath6kl-devel, Balasubramanian,
	senthilkumar, Mehta, Vipin, Valo, Kalle, linux-wireless

Hi Suraj,

> > Why would this need a userspace utility? Are you cloning some sort of
> > windows architecture here?
> 
> Ugh, please trim your quotes and use a useful mailer that will indent things.
> 
> > It will be the userpace bluez dbus events that can provide information
> > regarding the status of variout Bluetooth events.
> > On receiving that information, it can send corresponding NL80211
> > command.
> 
> Doesn't the kernel's bluetooth subsystem already know anyway?
> 
> Not all of the information I believe. Things like A2DP streaming will be best known at the userspace. Also, there is no way to tap these information at the kernel subsystem right now. But, there is a clear defined way to get these information at the userspace. Also, profile based information might not be available at the kernel space. 

this looks like the total wrong approach to me. This needs to be done
between mac80211 and Bluetooth subsystems in the kernel directly. Going
through userspace for this is a pretty bad idea.

Especially if you wanna listen on D-Bus events from bluetoothd and then
run another process to then execute nl80211 commands looks like total
overhead at no gain. Not to talk about potential latency effects that
might be counterproductive.

What you really want is a way to mark A2DP channels for streaming from
userspace as streaming/realtime/priority so the Bluetooth subsystem
knows on what to do with it and that way can also tell mac80211
correctly about coex settings.

We are already settings flushable flags for A2DP streaming channels and
there is work ongoing for SO_PRIORITY support with L2CAP sockets.

Regards

Marcel



^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-08-31 14:40         ` Marcel Holtmann
@ 2011-08-31 14:56           ` Sumangala, Suraj
  2011-08-31 22:51             ` Marcel Holtmann
  0 siblings, 1 reply; 17+ messages in thread
From: Sumangala, Suraj @ 2011-08-31 14:56 UTC (permalink / raw)
  To: Marcel Holtmann
  Cc: Johannes Berg, linville, ath6kl-devel, Balasubramanian,
	senthilkumar, Mehta, Vipin, Valo, Kalle, linux-wireless

SGkgTWFyY2VsLA0KDQoNCj4gdGhpcyBsb29rcyBsaWtlIHRoZSB0b3RhbCB3cm9uZyBhcHByb2Fj
aCB0byBtZS4gVGhpcyBuZWVkcyB0byBiZSBkb25lIGJldHdlZW4gbWFjODAyMTEgYW5kIEJsdWV0
b290aCBzdWJzeXN0ZW1zIGluIHRoZSBrZXJuZWwgZGlyZWN0bHkuIEdvaW5nIHRocm91Z2ggdXNl
cnNwYWNlIGZvciB0aGlzIGlzIGEgcHJldHR5IGJhZCBpZGVhLg0KDQo+IEVzcGVjaWFsbHkgaWYg
eW91IHdhbm5hIGxpc3RlbiBvbiBELUJ1cyBldmVudHMgZnJvbSBibHVldG9vdGhkIGFuZCB0aGVu
IHJ1biBhbm90aGVyIHByb2Nlc3MgdG8gdGhlbiBleGVjdXRlIG5sODAyMTEgY29tbWFuZHMgbG9v
a3MgbGlrZSB0b3RhbCBvdmVyaGVhZCBhdCBubyBnYWluLiBOb3QgdG8gdGFsayBhYm91dCBwb3Rl
bnRpYWwgbGF0ZW5jeSA+IGVmZmVjdHMgdGhhdCBtaWdodCBiZSBjb3VudGVycHJvZHVjdGl2ZS4N
Cg0KPiBXaGF0IHlvdSByZWFsbHkgd2FudCBpcyBhIHdheSB0byBtYXJrIEEyRFAgY2hhbm5lbHMg
Zm9yIHN0cmVhbWluZyBmcm9tIHVzZXJzcGFjZSBhcyBzdHJlYW1pbmcvcmVhbHRpbWUvcHJpb3Jp
dHkgc28gdGhlIEJsdWV0b290aCBzdWJzeXN0ZW0ga25vd3Mgb24gd2hhdCB0byBkbyB3aXRoIGl0
IGFuZCB0aGF0IHdheSBjYW4gYWxzbyB0ZWxsID4gPiBtYWM4MDIxMSBjb3JyZWN0bHkgYWJvdXQg
Y29leCBzZXR0aW5ncy4NCg0KPiBXZSBhcmUgYWxyZWFkeSBzZXR0aW5ncyBmbHVzaGFibGUgZmxh
Z3MgZm9yIEEyRFAgc3RyZWFtaW5nIGNoYW5uZWxzIGFuZCB0aGVyZSBpcyB3b3JrIG9uZ29pbmcg
Zm9yIFNPX1BSSU9SSVRZIHN1cHBvcnQgd2l0aCBMMkNBUCBzb2NrZXRzLg0KDQpNb3JlIHRoYW4g
dGhlIEEyRFAgY29ubmVjdGlvbiwgaXQgd291bGQgYmUgbW9yZSB1c2VmdWwgdG8gZmluZCBvdXQg
d2hlbiBBMkRQIHN0YXJ0L3N0b3Agc3RyZWFtaW5nIHNvIHRoYXQgd2UgY2FuIGtub3cgd2hlbiB0
byByZWFsbG9jYXRlIHJlc291cmNlIHRvIEJsdWV0b290aC4gSXMgaXQgcG9zc2libGUgdG8gdGFw
IHRoaXMgaW5mb3JtYXRpb24gb3V0IG9mIHRoZSBCbHVldG9vdGggY29yZT8NCkFsc28sIGNhbiB5
b3Ugc3VnZ2VzdCBhIHdheSB0byBnZXQgQTJEUCBzdHJlYW1pbmcgc3RhdHVzLCBpbnF1aXJ5IHN0
YXR1cywgYW5kIFNDTyBhbmQgQUNMIHJvbGUgd2l0aG91dCBhIGhhY2sgaW4gdGhlIEJsdWV0b290
aCBzdWJzeXN0ZW0/DQoNCi1TdXJhag0K

^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-08-31 14:56           ` Sumangala, Suraj
@ 2011-08-31 22:51             ` Marcel Holtmann
  2011-09-01  6:09               ` Sumangala, Suraj
  0 siblings, 1 reply; 17+ messages in thread
From: Marcel Holtmann @ 2011-08-31 22:51 UTC (permalink / raw)
  To: Sumangala, Suraj
  Cc: Johannes Berg, linville, ath6kl-devel, Balasubramanian,
	senthilkumar, Mehta, Vipin, Valo, Kalle, linux-wireless

Hi Suraj,

> > this looks like the total wrong approach to me. This needs to be done between mac80211 and Bluetooth subsystems in the kernel directly. Going through userspace for this is a pretty bad idea.
> 
> > Especially if you wanna listen on D-Bus events from bluetoothd and then run another process to then execute nl80211 commands looks like total overhead at no gain. Not to talk about potential latency > effects that might be counterproductive.
> 
> > What you really want is a way to mark A2DP channels for streaming from userspace as streaming/realtime/priority so the Bluetooth subsystem knows on what to do with it and that way can also tell > > mac80211 correctly about coex settings.
> 
> > We are already settings flushable flags for A2DP streaming channels and there is work ongoing for SO_PRIORITY support with L2CAP sockets.
> 
> More than the A2DP connection, it would be more useful to find out when A2DP start/stop streaming so that we can know when to reallocate resource to Bluetooth. Is it possible to tap this information out of the Bluetooth core?
> Also, can you suggest a way to get A2DP streaming status, inquiry status, and SCO and ACL role without a hack in the Bluetooth subsystem?

the inquiry status is tracked by the Linux kernel since ever. Same goes
for ACL and SCO status. The kernel keeps track over almost everything on
the HCI level and will do proper cleanup afterwards. Doing this in
userspace will not work out. And it is also racy.

Especially in the future bluetoothd will be tracking less and less
information. The new management interface will hide almost every single
state from bluetoothd where the kernel is doing the job anyway and can
do a way better job in the first place. This is also leads to power
consumption advantages since bluetoothd does not need to be woken up
that often anyway. And in addition the kernel has not deal with the
extra HCI filter handling.

The only thing that you mentioned here is A2DP streaming. And by the
nature of the A2DP protocol, you do establish a second L2CAP channel
that is just used for streaming. That channel is also only present if
you are streaming right now. If not streaming is going on, it will be
disconnected. So it is pretty easy to have bluetoothd tag such a channel
with proper SO_PRIORITY (once we have that code merged upstream) and
then the Bluetooth subsystem knows when A2DP streaming or any high
priority/realtime data is transferred over Bluetooth.

Regards

Marcel



^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-08-31 22:51             ` Marcel Holtmann
@ 2011-09-01  6:09               ` Sumangala, Suraj
  2011-09-01 11:43                 ` Marcel Holtmann
  0 siblings, 1 reply; 17+ messages in thread
From: Sumangala, Suraj @ 2011-09-01  6:09 UTC (permalink / raw)
  To: Marcel Holtmann
  Cc: Johannes Berg, linville, ath6kl-devel, Balasubramanian,
	senthilkumar, Mehta, Vipin, Valo, Kalle, linux-wireless

SGkgTWFyY2VsLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1hcmNl
bCBIb2x0bWFubiBbbWFpbHRvOm1hcmNlbEBob2x0bWFubi5vcmddDQo+IFNlbnQ6IFRodXJzZGF5
LCBTZXB0ZW1iZXIgMDEsIDIwMTEgNDoyMiBBTQ0KPiBUbzogU3VtYW5nYWxhLCBTdXJhag0KPiBD
YzogSm9oYW5uZXMgQmVyZzsgbGludmlsbGVAdHV4ZHJpdmVyLmNvbTsgYXRoNmtsLWRldmVsOyBC
YWxhc3VicmFtYW5pYW4sDQo+IHNlbnRoaWxrdW1hcjsgTWVodGEsIFZpcGluOyBWYWxvLCBLYWxs
ZTsgbGludXgtd2lyZWxlc3NAdmdlci5rZXJuZWwub3JnDQo+IFN1YmplY3Q6IFJFOiBbUkZDXSBu
bDgwMjExOiBBZGRlZCBOTDgwMjExIGNvbW1hbmRzIGZvciBCbHVldG9vdGgtV2lGaSBjb2V4DQo+
IA0KPiBIaSBTdXJhaiwNCj4gDQo+ID4gPiB0aGlzIGxvb2tzIGxpa2UgdGhlIHRvdGFsIHdyb25n
IGFwcHJvYWNoIHRvIG1lLiBUaGlzIG5lZWRzIHRvIGJlIGRvbmUNCj4gYmV0d2VlbiBtYWM4MDIx
MSBhbmQgQmx1ZXRvb3RoIHN1YnN5c3RlbXMgaW4gdG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oZW4gdGhlIEJsdWV0b290aCBzdWJzeXN0ZW0ga25vd3Mgd2hl
biBBMkRQDQo+IHN0cmVhbWluZyBvciBhbnkgaGlnaCBwcmlvcml0eS9yZWFsdGltZSBkYXRhIGlz
IHRyYW5zZmVycmVkIG92ZXIgQmx1ZXRvb3RoLg0KPiANCj4gUmVnYXJkcw0KPiANCj4gTWFyY2Vs
DQo+IA0KDQpUaGFua3MuDQpSZWdhcmRpbmcgU0NPIGFuZCBJbnF1aXJ5IHN0YXR1cywgZG8gd2Ug
aGF2ZSBhbiBleGlzdGluZyBBUEkgaW4gQmx1ZXRvb3RoIGNvcmUgdGhhdCBJIGNhbiB1c2UgdG8g
Z2V0IHRoYXQgaW5mb3JtYXRpb24/DQoNClJlZ2FyZHMNClN1cmFqDQoNCg0K

^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-09-01  6:09               ` Sumangala, Suraj
@ 2011-09-01 11:43                 ` Marcel Holtmann
  2011-09-01 12:20                   ` Johannes Berg
                                     ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Marcel Holtmann @ 2011-09-01 11:43 UTC (permalink / raw)
  To: Sumangala, Suraj
  Cc: Johannes Berg, linville, ath6kl-devel, Balasubramanian,
	senthilkumar, Mehta, Vipin, Valo, Kalle, linux-wireless

Hi Suraj,

> > > > this looks like the total wrong approach to me. This needs to be done
> > between mac80211 and Bluetooth subsystems in the kernel directly. Going
> > through userspace for this is a pretty bad idea.
> > >
> > > > Especially if you wanna listen on D-Bus events from bluetoothd and then run
> > another process to then execute nl80211 commands looks like total overhead at
> > no gain. Not to talk about potential latency > effects that might be
> > counterproductive.
> > >
> > > > What you really want is a way to mark A2DP channels for streaming from
> > userspace as streaming/realtime/priority so the Bluetooth subsystem knows on
> > what to do with it and that way can also tell > > mac80211 correctly about coex
> > settings.
> > >
> > > > We are already settings flushable flags for A2DP streaming channels and there
> > is work ongoing for SO_PRIORITY support with L2CAP sockets.
> > >
> > > More than the A2DP connection, it would be more useful to find out when
> > A2DP start/stop streaming so that we can know when to reallocate resource to
> > Bluetooth. Is it possible to tap this information out of the Bluetooth core?
> > > Also, can you suggest a way to get A2DP streaming status, inquiry status, and
> > SCO and ACL role without a hack in the Bluetooth subsystem?
> > 
> > the inquiry status is tracked by the Linux kernel since ever. Same goes for ACL
> > and SCO status. The kernel keeps track over almost everything on the HCI level
> > and will do proper cleanup afterwards. Doing this in userspace will not work out.
> > And it is also racy.
> > 
> > Especially in the future bluetoothd will be tracking less and less information. The
> > new management interface will hide almost every single state from bluetoothd
> > where the kernel is doing the job anyway and can do a way better job in the first
> > place. This is also leads to power consumption advantages since bluetoothd does
> > not need to be woken up that often anyway. And in addition the kernel has not
> > deal with the extra HCI filter handling.
> > 
> > The only thing that you mentioned here is A2DP streaming. And by the nature of
> > the A2DP protocol, you do establish a second L2CAP channel that is just used for
> > streaming. That channel is also only present if you are streaming right now. If not
> > streaming is going on, it will be disconnected. So it is pretty easy to have
> > bluetoothd tag such a channel with proper SO_PRIORITY (once we have that code
> > merged upstream) and then the Bluetooth subsystem knows when A2DP
> > streaming or any high priority/realtime data is transferred over Bluetooth.
>
> Regarding SCO and Inquiry status, do we have an existing API in Bluetooth core that I can use to get that information?

there is obviously no exported symbols or anything alike. Since we only
export things that are used by drivers or other subsystem. So you would
need to create such an API.

However first we need to establish in which direction this should be
done anyway. Should the Bluetooth subsystem notify mac80211
unconditional or should mac80211 register notifiers of the Bluetooth
subsystem.

We also should not forget direct integration support for changing AFH
channel maps based on the used WiFi channels.

Regards

Marcel



^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-09-01 11:43                 ` Marcel Holtmann
@ 2011-09-01 12:20                   ` Johannes Berg
  2011-09-01 12:22                   ` Kalle Valo
  2011-09-02  7:54                   ` Sumangala, Suraj
  2 siblings, 0 replies; 17+ messages in thread
From: Johannes Berg @ 2011-09-01 12:20 UTC (permalink / raw)
  To: Marcel Holtmann
  Cc: Sumangala, Suraj, linville, ath6kl-devel, Balasubramanian,
	senthilkumar, Mehta, Vipin, Valo, Kalle, linux-wireless

On Thu, 2011-09-01 at 04:43 -0700, Marcel Holtmann wrote:

> We also should not forget direct integration support for changing AFH
> channel maps based on the used WiFi channels.

I would really prefer to see that first, much simpler and it gives us an
idea of how to work across BT/wifi subsystems.

johannes


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-09-01 11:43                 ` Marcel Holtmann
  2011-09-01 12:20                   ` Johannes Berg
@ 2011-09-01 12:22                   ` Kalle Valo
  2011-09-02  7:54                   ` Sumangala, Suraj
  2 siblings, 0 replies; 17+ messages in thread
From: Kalle Valo @ 2011-09-01 12:22 UTC (permalink / raw)
  To: Marcel Holtmann
  Cc: Sumangala, Suraj, Johannes Berg, linville, ath6kl-devel,
	Balasubramanian, senthilkumar, Mehta, Vipin, linux-wireless

Hi Marcel,

a minor nitpick:

On 09/01/2011 02:43 PM, Marcel Holtmann wrote:
> However first we need to establish in which direction this should be
> done anyway. Should the Bluetooth subsystem notify mac80211
> unconditional or should mac80211 register notifiers of the Bluetooth
> subsystem.

Not all wireless drivers use mac80211 so this should use cfg80211 instead.

Kalle

^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-09-01 11:43                 ` Marcel Holtmann
  2011-09-01 12:20                   ` Johannes Berg
  2011-09-01 12:22                   ` Kalle Valo
@ 2011-09-02  7:54                   ` Sumangala, Suraj
  2011-09-02 12:04                       ` Johannes Berg
  2 siblings, 1 reply; 17+ messages in thread
From: Sumangala, Suraj @ 2011-09-02  7:54 UTC (permalink / raw)
  To: Marcel Holtmann
  Cc: Johannes Berg, linville, Balasubramanian, senthilkumar, Mehta,
	Vipin, Valo, Kalle, linux-wireless, linux-bluetooth

SGkgTWF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
IHVzZWQgV2lGaSBjaGFubmVscy4NCj4gDQo+IFJlZ2FyZHMNCj4gDQo+IE1hcmNlbA0KPiANCg0K
SWYgd2UgY2FuIHByb3ZpZGUgImhjaV9kZXYiIGFzIHRoZSBoYW5kbGUgdG8gdGhlIEJsdWV0b290
aCBjb3JlLCBkb2VzIGl0IG1ha2Ugc2Vuc2UgdG8gZm9sbG93IHRoZSBiZWxvdyBzdGVwcyB0byBz
ZW5kIGNoYW5uZWwgY2xhc3NpZmljYXRpb24/DQoxLiBJbXBsZW1lbnQgYW4gTkw4MDIxMSBjb21t
YW5kIHRvIHByb3ZpZGUgdGhlIEJsdWV0b290aCBCREFERFIuDQoyLiBTZW5kIGl0IGRvd24gdG8g
dGhlIFdpRmkgZHJpdmVyIHZpYSBhIGNmZzgwMjExIEFQSS4NCjMuIExldCBpdCBjYWxsICJoY2lf
Z2V0X3JvdXRlIiB0byBnZXQgYSBoY2lfaGRldiBoYW5kbGUuDQo0LiBFeHBvcnQgYW4gQVBJIHRv
IHNldCBjaGFubmVsIGNsYXNzaWZpY2F0aW9uIGluIEJsdWV0b290aCBIQ0kgY29yZS4NCjUuIExl
dCB0aGUgV2lGaSBkcml2ZXIgZm9ybSB0aGUgY2hhbm5lbCBjbGFzc2lmaWNhdGlvbiBhbmQgY2Fs
bCB0aGUgQmx1ZXRvb3RoIGNvcmUgIndyaXRlIGNoYW5uZWwgY2xhc3NpZmljYXRpb24iIEFQSSB0
byBzZXQgdGhlIGNoYW5uZWxzLg0KDQpSZWdhcmRzDQpTdXJhag0KDQo=

^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
  2011-09-02  7:54                   ` Sumangala, Suraj
@ 2011-09-02 12:04                       ` Johannes Berg
  0 siblings, 0 replies; 17+ messages in thread
From: Johannes Berg @ 2011-09-02 12:04 UTC (permalink / raw)
  To: Sumangala, Suraj
  Cc: Marcel Holtmann, linville, Balasubramanian, senthilkumar, Mehta,
	Vipin, Valo, Kalle, linux-wireless, linux-bluetooth

On Fri, 2011-09-02 at 07:54 +0000, Sumangala, Suraj wrote:

> If we can provide "hci_dev" as the handle to the Bluetooth core, does
> it make sense to follow the below steps to send channel
> classification?
> 1. Implement an NL80211 command to provide the Bluetooth BDADDR.
> 2. Send it down to the WiFi driver via a cfg80211 API.
> 3. Let it call "hci_get_route" to get a hci_hdev handle.
> 4. Export an API to set channel classification in Bluetooth HCI core.
> 5. Let the WiFi driver form the channel classification and call the
> Bluetooth core "write channel classification" API to set the channels.

I don't see any reason to have a specific wifi device talk to a specific
BT device. The channel exclusion makes more sense if all wifi devices
and all BT devices are taken into account. As such, only simple API is
needed to let cfg80211 tell bluez about the channels, and then bluez can
multiplex it out to all its BT devices.

johannes


^ permalink raw reply	[flat|nested] 17+ messages in thread

* RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex
@ 2011-09-02 12:04                       ` Johannes Berg
  0 siblings, 0 replies; 17+ messages in thread
From: Johannes Berg @ 2011-09-02 12:04 UTC (permalink / raw)
  To: Sumangala, Suraj
  Cc: Marcel Holtmann, linville, Balasubramanian, senthilkumar, Mehta,
	Vipin, Valo, Kalle, linux-wireless, linux-bluetooth

On Fri, 2011-09-02 at 07:54 +0000, Sumangala, Suraj wrote:

> If we can provide "hci_dev" as the handle to the Bluetooth core, does
> it make sense to follow the below steps to send channel
> classification?
> 1. Implement an NL80211 command to provide the Bluetooth BDADDR.
> 2. Send it down to the WiFi driver via a cfg80211 API.
> 3. Let it call "hci_get_route" to get a hci_hdev handle.
> 4. Export an API to set channel classification in Bluetooth HCI core.
> 5. Let the WiFi driver form the channel classification and call the
> Bluetooth core "write channel classification" API to set the channels.

I don't see any reason to have a specific wifi device talk to a specific
BT device. The channel exclusion makes more sense if all wifi devices
and all BT devices are taken into account. As such, only simple API is
needed to let cfg80211 tell bluez about the channels, and then bluez can
multiplex it out to all its BT devices.

johannes

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2011-09-02 12:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-31  6:25 [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex Suraj Sumangala
2011-08-31  6:30 ` Johannes Berg
2011-08-31  6:36   ` Sumangala, Suraj
2011-08-31  6:40     ` Johannes Berg
2011-08-31  6:48       ` Sumangala, Suraj
2011-08-31 14:40         ` Marcel Holtmann
2011-08-31 14:56           ` Sumangala, Suraj
2011-08-31 22:51             ` Marcel Holtmann
2011-09-01  6:09               ` Sumangala, Suraj
2011-09-01 11:43                 ` Marcel Holtmann
2011-09-01 12:20                   ` Johannes Berg
2011-09-01 12:22                   ` Kalle Valo
2011-09-02  7:54                   ` Sumangala, Suraj
2011-09-02 12:04                     ` Johannes Berg
2011-09-02 12:04                       ` Johannes Berg
2011-08-31  7:14 ` Johannes Berg
2011-08-31 14:30   ` Sumangala, Suraj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.