From owner-freebsd-wireless@FreeBSD.ORG Wed Oct 26 19:23:59 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 443FF106564A; Wed, 26 Oct 2011 19:23:59 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A7B158FC08; Wed, 26 Oct 2011 19:23:58 +0000 (UTC) Received: by faar19 with SMTP id r19so2682000faa.13 for ; Wed, 26 Oct 2011 12:23:57 -0700 (PDT) Received: by 10.223.36.193 with SMTP id u1mr10204632fad.27.1319657037307; Wed, 26 Oct 2011 12:23:57 -0700 (PDT) Received: from amy.lab.techwires.net (dslb-188-098-032-249.pools.arcor-ip.net. [188.98.32.249]) by mx.google.com with ESMTPS id a21sm5791664fao.18.2011.10.26.12.23.55 (version=SSLv3 cipher=OTHER); Wed, 26 Oct 2011 12:23:55 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: freebsd-wireless@freebsd.org Date: Wed, 26 Oct 2011 21:23:55 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-RC1; KDE/4.7.2; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201110262123.55543.bschmidt@freebsd.org> Cc: Subject: Re: [patch] net80211: reject STA frames not destined to the current STA VAP MAC address X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2011 19:23:59 -0000 On Wednesday 26 October 2011 16:28:39 Adrian Chadd wrote: > Hi, > > This patch rejects frames that are sent to a STA with an incorrect > destination MAC. > This is to fix an issue with the AR9160 in STA mode where it > occasionally leaks frames destined to other stations. This then > updates the crypto IV state and last received sequence number, causing > subsequent frames from the correct MAC to be dropped inside net80211. > > It's also needed if we decide (eventually) to support >1 STA VAP. > > I'd like to merge this to -9 and -8, in case there are other AR9160 STA users. I doubt this is necessary. Receiving frames with DST != vap->iv_myaddr works just fine with iwn(4) and WPA. -- Bernhard