1 Index: linux-2.4.35.4/drivers/net/b44.h
2 ===================================================================
3 --- linux-2.4.35.4.orig/drivers/net/b44.h 2007-12-15 05:20:16.028753670 +0100
4 +++ linux-2.4.35.4/drivers/net/b44.h 2007-12-15 05:20:16.480779429 +0100
6 #define RXCONFIG_FLOW 0x00000020 /* Flow Control Enable */
7 #define RXCONFIG_FLOW_ACCEPT 0x00000040 /* Accept Unicast Flow Control Frame */
8 #define RXCONFIG_RFILT 0x00000080 /* Reject Filter */
9 +#define RXCONFIG_CAM_ABSENT 0x00000100 /* CAM Absent */
10 #define B44_RXMAXLEN 0x0404UL /* EMAC RX Max Packet Length */
11 #define B44_TXMAXLEN 0x0408UL /* EMAC TX Max Packet Length */
12 #define B44_MDIO_CTRL 0x0410UL /* EMAC MDIO Control */
13 Index: linux-2.4.35.4/drivers/net/b44.c
14 ===================================================================
15 --- linux-2.4.35.4.orig/drivers/net/b44.c 2007-12-15 05:20:16.020753214 +0100
16 +++ linux-2.4.35.4/drivers/net/b44.c 2007-12-15 05:20:16.480779429 +0100
19 struct b44 *bp = dev->priv;
20 struct sockaddr *addr = p;
23 if (netif_running(dev))
25 @@ -1308,7 +1309,11 @@
26 memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
28 spin_lock_irq(&bp->lock);
29 - __b44_set_mac_addr(bp);
31 + val = br32(B44_RXCONFIG);
32 + if (!(val & RXCONFIG_CAM_ABSENT))
33 + __b44_set_mac_addr(bp);
35 spin_unlock_irq(&bp->lock);
40 val = br32(B44_RXCONFIG);
41 val &= ~(RXCONFIG_PROMISC | RXCONFIG_ALLMULTI);
42 - if (dev->flags & IFF_PROMISC) {
43 + if ((dev->flags & IFF_PROMISC) || (val & RXCONFIG_CAM_ABSENT)) {
44 val |= RXCONFIG_PROMISC;
45 bw32(B44_RXCONFIG, val);