Commit 19d1bf4a authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix filters types on winbond 840

parent 2ca5a4c5
......@@ -1428,8 +1428,9 @@ static u32 __set_rx_mode(struct net_device *dev)
memset(mc_filter, 0, sizeof(mc_filter));
for (i = 0, mclist = dev->mc_list; mclist && i < dev->mc_count;
i++, mclist = mclist->next) {
set_bit((ether_crc(ETH_ALEN, mclist->dmi_addr) >> 26) ^ 0x3F,
mc_filter);
int filterbit = (ether_crc(ETH_ALEN, mclist->dmi_addr) >> 26) ^ 0x3F;
filterbit &= 0x3f;
mc_filter[filterbit >> 5] |= cpu_to_le32(1 << (filterbit & 31));
}
rx_mode = AcceptBroadcast | AcceptMulticast | AcceptMyPhys;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment