From: Wei Yongjun Date: Wed, 13 May 2009 01:47:38 +0000 (+0800) Subject: wireless: fix to set dev->broadcast correctly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e74fbb412be9baeae5ee61e25dad0b8c1a287494;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git wireless: fix to set dev->broadcast correctly This patch fix to set dev->broadcast correctly, since dev->broadcast is defined as: unsigned char broadcast[MAX_ADDR_LEN]; Signed-off-by: Wei Yongjun Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/strip.c b/drivers/net/wireless/strip.c index f95204632690..b7b0c46adb46 100644 --- a/drivers/net/wireless/strip.c +++ b/drivers/net/wireless/strip.c @@ -2509,7 +2509,7 @@ static void strip_dev_setup(struct net_device *dev) * netdev_priv(dev) Already holds a pointer to our struct strip */ - *(MetricomAddress *) & dev->broadcast = broadcast_address; + *(MetricomAddress *)dev->broadcast = broadcast_address; dev->dev_addr[0] = 0; dev->addr_len = sizeof(MetricomAddress);