From owner-freebsd-wireless@FreeBSD.ORG Sat Dec 1 04:37:12 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE0873AD for ; Sat, 1 Dec 2012 04:37:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by mx1.freebsd.org (Postfix) with ESMTP id 481858FC08 for ; Sat, 1 Dec 2012 04:37:12 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id 12so514099wgh.31 for ; Fri, 30 Nov 2012 20:37:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=1CHI9J0qtMxtpAY5XbkfmRmqI8naiK2ZgTmtOenUtUw=; b=lReuTgVJuREhQ8WIPjzjyPmwqkVKvKDE2nnC0q2r6P6gfXWBGyMRPmpkebYu+IQ+5a VionpoZFmO7YOZ1mCTMEFf3lsggomi4Cpn2ztdo3EzFiKUwsG3xZaloWlcE/4kT2OQHp i361nsPCy9b5qhKiRLRklzYl5eKh/VVC8MUoQqM3vcmIEED9zqEs6rWTUvBGZ3tYAYNx aI1Qrlnk+rUvmwvULdULtIUsDHK5cO8itkM3PC4UiHzs3rEIErviYuMrb23WRLel6YwI b5rGbGcRvNGW03S7R1eMoRz2xkouXbLlVWGtvs/jk5FAHjguZGQ0/y2Aw+QyQQqIUh3r qeHw== MIME-Version: 1.0 Received: by 10.180.102.102 with SMTP id fn6mr847660wib.13.1354336631391; Fri, 30 Nov 2012 20:37:11 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Fri, 30 Nov 2012 20:37:11 -0800 (PST) In-Reply-To: <20121130075819.42a8c41c@zelda.sugioarto.com> References: <201211291940.qATJe1Jf033574@freefall.freebsd.org> <20121129214512.4909fa8f@zelda.sugioarto.com> <20121129223901.686290ce@zelda.sugioarto.com> <20121129225347.757b1fc8@zelda.sugioarto.com> <20121130075819.42a8c41c@zelda.sugioarto.com> Date: Fri, 30 Nov 2012 20:37:11 -0800 X-Google-Sender-Auth: gfJ2leJUDrA5i6jwaOUGneWOKno Message-ID: Subject: Re: kern/149516: [ath] ath(4) hostap with fake MAC/BSSID results in station dropping packets when associated From: Adrian Chadd To: Martin Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 01 Dec 2012 04:37:13 -0000 On 29 November 2012 22:58, Martin wrote: > this is not good, if alternate MACs are not supported, because you also > need them to configure multiple access points in hostapd. Take a look > at the end of the hostapd.conf in examples. This definitely takes away > features. Alternate MACs are supported, but it likely needs a little further debugging to figure out what is working and what is broken. > Like I said... the ath(4) driver is dropping/blocking/filtering the > packets somewhere in the send code. The receive part and the network > operation generally work correctly, as far as I can remember. The driver doesn't do anything like that. It just passes frames up. The net80211 stack would set the MAC and the hardware TXes it. The ath driver doesn't do any kind of TX filtering by MAC address. >> If you want to take a look at whta's in the card: >> >> * add ATH_DIAGAPI, AH_DEBUG, ATH_DEBUG to your kernel, recompile >> * compile up src/tools/tools/ath/ >> * use athregs -i athX , look at the BSS and MAC registers to see what >> address it has configured. >> >> I bet htose aren't "right".. > > I'll take a look at it soon. Thanks, that'll be very helpful. Adrian