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


2011-09-02 12:04:22

by Johannes Berg

[permalink] [raw]
Subject: RE: [RFC] nl80211: Added NL80211 commands for Bluetooth-WiFi coex

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