| To: | Jeff Garzik <jgarzik@xxxxxxxxx> |
|---|---|
| Subject: | [PATCH wireless-2.6 5/12] Host AP: Fix hw address changing for wifi# interface |
| From: | Jouni Malinen <jkmaline@xxxxxxxxx> |
| Date: | Sun, 7 Nov 2004 23:13:12 -0800 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <20041108070156.GA1076@jm.kir.nu> |
| References: | <20041108070156.GA1076@jm.kir.nu> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.6i |
Update wifi# interface MAC address when changing addresses. Without
this, MAC address change does not work correctly with the new
interface design (wifi#/wlan0#).
Signed-off-by: Jouni Malinen <jkmaline@xxxxxxxxx>
diff -Nru a/drivers/net/wireless/hostap/hostap.c
b/drivers/net/wireless/hostap/hostap.c
--- a/drivers/net/wireless/hostap/hostap.c 2004-11-07 22:38:26 -08:00
+++ b/drivers/net/wireless/hostap/hostap.c 2004-11-07 22:38:26 -08:00
@@ -808,6 +808,7 @@
iface = list_entry(ptr, struct hostap_interface, list);
memcpy(iface->dev->dev_addr, addr->sa_data, ETH_ALEN);
}
+ memcpy(local->dev->dev_addr, addr->sa_data, ETH_ALEN);
read_unlock_bh(&local->iface_lock);
return 0;
--
Jouni Malinen PGP id EFC895FA
|
| Previous by Date: | [PATCH wireless-2.6 4/12] Host AP: Remove ioctl debug messages, Jouni Malinen |
|---|---|
| Next by Date: | [PATCH wireless-2.6 6/12] Host AP: Prevent STAs from associating using AP address, Jouni Malinen |
| Previous by Thread: | [PATCH wireless-2.6 4/12] Host AP: Remove ioctl debug messages, Jouni Malinen |
| Next by Thread: | [PATCH wireless-2.6 6/12] Host AP: Prevent STAs from associating using AP address, Jouni Malinen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |