[PATCH] libertas: cleanup of fwt_list_route processing
authorLuis Carlos Cobo Rus <luisca@cozybit.com>
Fri, 25 May 2007 20:26:47 +0000 (16:26 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jun 2007 18:28:42 +0000 (14:28 -0400)
Signed-off-by: Luis Carlos Cobo Rus <luisca@cozybit.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/ioctl.c

index 5a5863239067ec27ae96d7d6360b83703fa7733e..cfb4752b3bce116059f40f52e7d84b7304908d35 100644 (file)
@@ -674,17 +674,7 @@ static int wlan_fwt_list_route_ioctl(wlan_private * priv, struct ifreq *req)
                                    cmd_option_waitforrsp, 0, (void *)&fwt_access);
 
        if (ret == 0) {
-               pbuf += sprintf(pbuf, " ");
-               pbuf += eth_addr2str(fwt_access.da, pbuf);
-               pbuf += sprintf(pbuf, " %u", le32_to_cpu(fwt_access.metric));
-               pbuf += sprintf(pbuf, " %u", fwt_access.dir);
-               /* note that the firmware returns the nid in the id field */
-               pbuf += sprintf(pbuf, " %u", le32_to_cpu(fwt_access.id));
-               pbuf += sprintf(pbuf, " %u", le32_to_cpu(fwt_access.ssn));
-               pbuf += sprintf(pbuf, " %u", le32_to_cpu(fwt_access.dsn));
-               pbuf += sprintf(pbuf, "  hop %u", fwt_access.hopcount);
-               pbuf += sprintf(pbuf, "  ttl %u", fwt_access.ttl);
-               pbuf += sprintf(pbuf, " %u", le32_to_cpu(fwt_access.expiration));
+               print_route(fwt_access, pbuf);
        } else
                pbuf += sprintf(pbuf, " (null)");