Skip to content

Commit

Permalink
wireless: fix to set dev->broadcast correctly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and John W. Linville committed May 20, 2009
1 parent 49ca37e commit e74fbb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/strip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e74fbb4

Please sign in to comment.