--- compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2500pci.c 2008-03-29 13:57:42.000000000 +0100 +++ ./rt2500pci.c 2008-03-29 14:13:08.000000000 +0100 @@ -49,6 +49,21 @@ * the access attempt is considered to have failed, * and we will print an error. */ + +#define MAC2STR_BUFFERS 4 + +static inline char *mac2str(u8 *mac) +{ + static atomic_t a = ATOMIC_INIT(0); + static char bufs[MAC2STR_BUFFERS][6 * 3]; + char *str; + + str = bufs[atomic_inc_return(&a) & (MAC2STR_BUFFERS - 1)]; + sprintf(str, "%02x:%02x:%02x:%02x:%02x:%02x", + mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); + return str; +} + static u32 rt2500pci_bbp_check(struct rt2x00_dev *rt2x00dev) { u32 reg; @@ -329,10 +344,11 @@ static void rt2500pci_config_intf(struct rt2x00pci_register_write(rt2x00dev, CSR14, reg); } - if (flags & CONFIG_UPDATE_MAC) + if (flags & CONFIG_UPDATE_MAC) { rt2x00pci_register_multiwrite(rt2x00dev, CSR3, conf->mac, sizeof(conf->mac)); - + printk(KERN_INFO "rt2500pci MAC changed: %s\n", mac2str((u8 *)conf->mac)); + } if (flags & CONFIG_UPDATE_BSSID) rt2x00pci_register_multiwrite(rt2x00dev, CSR5, conf->bssid, sizeof(conf->bssid)); --- compat-wireless-2.6/drivers/net/wireless/rt2x00/rt2x00mac.c 2008-03-26 21:49:36.000000000 +0100 +++ ./rt2x00mac.c 2008-03-29 14:14:54.000000000 +0100 @@ -416,7 +416,7 @@ void rt2x00mac_configure_filter(struct i if (rt2x00dev->packet_filter == *total_flags) return; rt2x00dev->packet_filter = *total_flags; - + printk(KERN_INFO "rt2500pci filter_flags: %d\n", rt2x00dev->packet_filter); if (!test_bit(DRIVER_REQUIRE_SCHEDULED, &rt2x00dev->flags)) queue_work(rt2x00dev->hw->workqueue, &rt2x00dev->filter_work); else