From nobody@FreeBSD.org  Sun May 26 08:34:58 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id C1EFD477
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 May 2013 08:34:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id B37FCE54
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 May 2013 08:34:58 +0000 (UTC)
Received: from oldred.FreeBSD.org ([127.0.1.6])
	by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4Q8YvnY059978
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 May 2013 08:34:57 GMT
	(envelope-from nobody@oldred.FreeBSD.org)
Received: (from nobody@localhost)
	by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4Q8YvgJ059963;
	Sun, 26 May 2013 08:34:57 GMT
	(envelope-from nobody)
Message-Id: <201305260834.r4Q8YvgJ059963@oldred.FreeBSD.org>
Date: Sun, 26 May 2013 08:34:57 GMT
From: Monthadar Al Jaberi <monthadar@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Change mac address of ath(4) is not reflected when wlan is brought up
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         178986
>Category:       kern
>Synopsis:       [ath] Change mac address of ath(4) is not reflected when wlan is brought up
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 26 08:40:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sun May 26 20:51:01 UTC 2013
>Originator:     Monthadar Al Jaberi
>Release:        Head + r238604
>Organization:
>Environment:
FreeBSD MESH 10.0-CURRENT FreeBSD 10.0-CURRENT #254: Sat May 25 16:53:50 CEST 2013     root@:/usr/obj/mips.mips/usr/src/sys/RSPRO_MFS  mips
>Description:
The mac address of AR5413 wifi chip is not updated after a new 
mac address is assigned to it. Probably all ath(4) devices have same issue.
This results in STAs not discarding to unicast frames address to the new MAC.

>How-To-Repeat:
COLD START two RSPRO with FreeBSD HEAD.
RSPRO1# ifconfig ath0 ether 00:01:02:00:00:01
RSPRO1# ifconfig wlan create wlandev ath0 wlanmode mesh channel 1 meshid test
RSPRO1# ifconfig wlan0 192.168.3.1

RSPRO2# ifconfig ath0 ether 00:01:02:00:00:02
RSPRO2# ifconfig wlan create wlandev ath0 wlanmode mesh channel 1 meshid test
RSPRO2# ifconfig wlan0 192.168.3.2

Running 'athregs -i ath0 | grep STA' on both RSPRO reveals that the chip
still has the old mac address registered as it's STA_ID0 (station id).

Pining between the RSPROs does not work.

>Fix:
Workaround:
Running 'ifconfig ath0 up' just after setting new mac address seems to    
update the STA_ID0 register to the new mac address.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun May 26 20:50:44 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178986 
>Unformatted:
