提交 87fa05e8 编写于 作者: A Andy Shevchenko 提交者: Greg Kroah-Hartman

staging: rtl8712: return MAC in standard form

MAC respresentation should follow standard form.
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: NLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 4599934d
......@@ -1000,12 +1000,8 @@ static int r871x_wx_set_priv(struct net_device *dev,
sprintf(ext, "LINKSPEED %d", mbps);
} else if (0 == strcasecmp(ext, "MACADDR")) {
/*Return mac address of the station */
/*Macaddr = xx.xx.xx.xx.xx.xx */
sprintf(ext,
"MACADDR = %02x.%02x.%02x.%02x.%02x.%02x",
*(dev->dev_addr), *(dev->dev_addr+1),
*(dev->dev_addr+2), *(dev->dev_addr+3),
*(dev->dev_addr+4), *(dev->dev_addr+5));
/* Macaddr = xx:xx:xx:xx:xx:xx */
sprintf(ext, "MACADDR = %pM", dev->dev_addr);
} else if (0 == strcasecmp(ext, "SCAN-ACTIVE")) {
/*Set scan type to active */
/*OK if successful */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册