};
struct net_device *parent_dev;
-static char *parent;
+static char *parent = "wlan0";
module_param(parent, charp, 0444);
MODULE_PARM_DESC(parent, "Parent network device name to get the MAC address from");
dev->name);
memcpy(dev->dev_addr, dflt_addr, ETH_ALEN);
}
- dev->dev_addr[ETH_ALEN-1] += card_idx; /* + 0 or 1 */
+ dev->dev_addr[ETH_ALEN-1] += card_idx ^ 1; /* + 0 or 1 */
}
#ifdef CONFIG_NET_POLL_CONTROLLER