Return-path: Received: from crystal.sipsolutions.net ([195.210.38.204]:34457 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760509AbXHNLwj (ORCPT ); Tue, 14 Aug 2007 07:52:39 -0400 Subject: [PATCH] hostapd: also get outgoing EAPOL frames from monitor iface From: Johannes Berg To: linux-wireless Cc: Jouni Malinen , Andy Green In-Reply-To: <1187046852.32435.36.camel@johannes.berg> References: <1186992004.27916.53.camel@johannes.berg> <1187046852.32435.36.camel@johannes.berg> Content-Type: text/plain Date: Tue, 14 Aug 2007 12:53:07 +0200 Message-Id: <1187088787.4069.1.camel@johannes.berg> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hostapd doesn't really seem to care much at the moment, but it really should be notified about EAPOL frame transmit callbacks as well. Signed-off-by: Johannes Berg --- hostapd/driver_devicescape.c | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) --- hostap.orig/hostapd/driver_devicescape.c 2007-08-14 11:49:58.000000000 +0200 +++ hostap/hostapd/driver_devicescape.c 2007-08-14 12:44:05.000000000 +0200 @@ -1518,6 +1518,54 @@ struct sock_filter msock_filter_insns[] /* do we need any other frames? */ + /* + * do the rest of the test only on frames we sent ourselves + */ + BPF_STMT(BPF_LD | BPF_W | BPF_ABS, 4), + BPF_STMT(BPF_ALU | BPF_AND | BPF_K, + LE32(1<