[PATCH 1/2] supplicant: Use high-priority queue for management packets.

Jouni Malinen j
Mon Sep 23 01:08:17 PDT 2013


On Mon, Sep 09, 2013 at 11:49:04AM -0700, greearb at candelatech.com wrote:
> Without this patch, wpa_supplicant EAPOL packets (at least)
> are sent on normal best-effort TX queue.  I believe they
> should be on the VO high-priority queue instead.

> diff --git a/src/l2_packet/l2_packet_linux.c b/src/l2_packet/l2_packet_linux.c

> @@ -97,6 +97,7 @@ struct l2_packet_data * l2_packet_init(
> +	/* Use high-priority queue for management packets
> +	 * http://wireless.kernel.org/en/developers/Documentation/mac80211/queues
> +	 */
> +	if (setsockopt(l2->fd, SOL_SOCKET,
> +		       SO_PRIORITY, (char*)&val, sizeof(val)) < 0) {

This seems to be assuming that mac80211 is used always. That is not
really the case and I guess this SO_PRIORITY change to a special
mac80211-specific value could result in undesired results with
non-mac80211 drivers.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list