提交 dd87145d 编写于 作者: I Ivo van Doorn 提交者: John W. Linville

rt2x00: Corectly initialize rt2500usb MAC

mac is a pointer, obviously we shouldn't use the address
of a pointer as MAC address.
Signed-off-by: NIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 62bc060b
...@@ -257,7 +257,7 @@ static const struct rt2x00debug rt2500usb_rt2x00debug = { ...@@ -257,7 +257,7 @@ static const struct rt2x00debug rt2500usb_rt2x00debug = {
static void rt2500usb_config_mac_addr(struct rt2x00_dev *rt2x00dev, static void rt2500usb_config_mac_addr(struct rt2x00_dev *rt2x00dev,
__le32 *mac) __le32 *mac)
{ {
rt2500usb_register_multiwrite(rt2x00dev, MAC_CSR2, &mac, rt2500usb_register_multiwrite(rt2x00dev, MAC_CSR2, mac,
(3 * sizeof(__le16))); (3 * sizeof(__le16)));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册