Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e74fbb41 authored by Wei Yongjun's avatar Wei Yongjun Committed by John W. Linville
Browse files

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: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 49ca37e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);