Ver código fonte

[LIBERTAS]: Remove last stray user of MAC_FMT.

Reported by Denis V. Lunev

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 17 anos atrás
pai
commit
15ca36fb99
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      drivers/net/wireless/libertas/debugfs.c

+ 2 - 1
drivers/net/wireless/libertas/debugfs.c

@@ -243,7 +243,8 @@ static void libertas_parse_bssid(char *buf, size_t count,
 	if (!hold)
 		return;
 	hold += 6;
-	sscanf(hold, MAC_FMT, mac, mac+1, mac+2, mac+3, mac+4, mac+5);
+	sscanf(hold, "%02x:%02x:%02x:%02x:%02x:%02x",
+	       mac, mac+1, mac+2, mac+3, mac+4, mac+5);
 	memcpy(scan_cfg->bssid, mac, ETH_ALEN);
 }