From nobody@FreeBSD.org Fri Feb 19 14:30:26 2010 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92429106568B for ; Fri, 19 Feb 2010 14:30:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 80B848FC1C for ; Fri, 19 Feb 2010 14:30:26 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o1JEUQdJ074968 for ; Fri, 19 Feb 2010 14:30:26 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o1JEUQgr074967; Fri, 19 Feb 2010 14:30:26 GMT (envelope-from nobody) Message-Id: <201002191430.o1JEUQgr074967@www.freebsd.org> Date: Fri, 19 Feb 2010 14:30:26 GMT From: Erik Fonnesbeck To: freebsd-gnats-submit@FreeBSD.org Subject: hostapd uses the MAC of the wireless interface, but should use the BSSID. X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 144109 >Category: bin >Synopsis: hostapd(8) uses the MAC of the wireless interface, but should use the BSSID. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-wireless >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 19 14:40:00 UTC 2010 >Closed-Date: >Last-Modified: Mon Apr 11 23:18:49 UTC 2011 >Originator: Erik Fonnesbeck >Release: 8.0 >Organization: >Environment: FreeBSD bsd.local 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: If the MAC address of a wireless interface is set to something that does not match its BSSID, WPA does not work. Another related bug is that if the wireless clone is named with the parent interface name at the start (for example, ath0_wlan0), WPA will not work if the MAC address of the parent does not match the BSSID of the clone. They are both part of the same issue because it should be using the BSSID and not the MAC address. This may also affect wpa_supplicant. >How-To-Repeat: Assign a different MAC address to a wireless clone interface and WPA does not work. Or if you are naming the clones after the parent (ath0_wlan0, etc.): If the parent's MAC address does not match the clone's BSSID, either from changing the parent's MAC or by having multiple clones created with the bssid option of ifconfig, WPA does not work. >Fix: In usr.sbin/wpa/l2_packet.c: eth_get, it needs to get the BSSID of the interface instead of its MAC. hostapd appears to only read this information once, at startup. WPA works correctly if the MAC address matched the BSSID when hostapd was started. Changing it afterward seems to have no effect. In the case of reading the MAC from the wrong interface, hostapd works if the parent's MAC matches the clone's BSSID, even if the clone's MAC does not match, showing that the clone's MAC does not need to match its BSSID for hostapd to function. There is code for getting the BSSID in ifconfig's source code, though it is scattered a bit. >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: eadler Responsible-Changed-When: Mon Apr 11 23:18:39 UTC 2011 Responsible-Changed-Why: new wireless mailing list http://www.freebsd.org/cgi/query-pr.cgi?pr=144109 >Unformatted: