diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-05-12 21:47:38 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-20 14:46:31 -0400 |
commit | e74fbb412be9baeae5ee61e25dad0b8c1a287494 (patch) | |
tree | 597807335caeb7d4cf8da36c9301936c53bb63ce /drivers/net/wireless/strip.c | |
parent | 49ca37e2d29569d7408f3c92f15c4a33e459a987 (diff) |
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 <yjwei@cn.fujitsu.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/strip.c')
-rw-r--r-- | drivers/net/wireless/strip.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
2509 | * netdev_priv(dev) Already holds a pointer to our struct strip | 2509 | * netdev_priv(dev) Already holds a pointer to our struct strip |
2510 | */ | 2510 | */ |
2511 | 2511 | ||
2512 | *(MetricomAddress *) & dev->broadcast = broadcast_address; | 2512 | *(MetricomAddress *)dev->broadcast = broadcast_address; |
2513 | dev->dev_addr[0] = 0; | 2513 | dev->dev_addr[0] = 0; |
2514 | dev->addr_len = sizeof(MetricomAddress); | 2514 | dev->addr_len = sizeof(MetricomAddress); |
2515 | 2515 | ||