>> From: Johannes Berg [johannes@xxxxxxxxxxxxxxxx] >> Sent: Friday, February 22, 2013 12:52 PM >> To: Piotr Haber >> Cc: linux-wireless@xxxxxxxxxxxxxxx >> Subject: Re: [PATCH 1/2] [RFC] cfg80211: configuration of Bluetooth coexistence mode >On Fri, 2013-02-22 at 10:08 +0100, Piotr Haber wrote: >> Some devices share antenna/analog front end between Wifi >> and Bluetooth. The hardware coexistence interface allows >> them to do so, but there are situations when it would >> be beneficial if software had a way to have influence on it >> as well. It can be used to protect time sensitive >> traffic in presence of Bluetooth voice stream, >> for an example EAPOL handshake or DHCP negotiation. >> >> This patch adds new attribute to SET_WIPHY command >> and a new field in struct wiphy to allow control of the >> coexistence behavior. Devices that do not share resources >> with Bluetooth can ignore this parameter. > Apart from a few minor technical comments that I'll omit for now, I'm > not sure what value this really has? EAPOL can already be "protected" by > way of knowing when the station is marked authorized, and DHCP is pretty > tricky because it could take "forever", might not be there at all, etc. By "protect" I meant give Wifi a priority over BT so these time sensitive things can finish quicker/on first try, limiting the possibility of dropping packets because of BT using the medium. This is supposed to be temporary and time limited, so if say DHCP finishes in the window we give it - great, if not the coexistence goes back to default behavior and Wifi traffic is treated as usual. > What application would actually call this? I don't really see how it > could be integrated like that. For EAPOL wpa_supplicant might use it. For DHCP it could be used from enter/exit hooks via iw or some other utility able to send nl messages. This feature is styled after Android one. There a Wifi state machine tries to "protect" DHCP traffic. It uses extra wpa_supplicant command (DRIVER) with linked driver specific library. Which means there can be only one wifi device and one needs to recompile wpa_supplicant to use another. I wanted to make it more device independent. Piotr -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html