staging: csr: print mac address with %pM

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Andy Shevchenko 2012-08-02 19:05:42 +03:00 committed by Greg Kroah-Hartman
parent 5b47f3cbf0
commit 785526207f
1 changed files with 3 additions and 5 deletions

View File

@ -195,10 +195,8 @@ _send_michaelmicfailure_event(struct net_device *dev,
char buf[128]; char buf[128];
sprintf(buf, sprintf(buf,
"MLME-MICHAELMICFAILURE.indication(keyid=%d %scast addr=%02x:%02x:%02x:%02x:%02x:%02x)", "MLME-MICHAELMICFAILURE.indication(keyid=%d %scast addr=%pM)",
key_idx, (key_type == CSR_GROUP) ? "broad" : "uni", key_idx, (key_type == CSR_GROUP) ? "broad" : "uni", macaddr);
macaddr[0], macaddr[1], macaddr[2],
macaddr[3], macaddr[4], macaddr[5]);
memset(&wrqu, 0, sizeof(wrqu)); memset(&wrqu, 0, sizeof(wrqu));
wrqu.data.length = strlen(buf); wrqu.data.length = strlen(buf);
wireless_send_event(dev, IWEVCUSTOM, &wrqu, buf); wireless_send_event(dev, IWEVCUSTOM, &wrqu, buf);