aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-06-20 23:56:45 -0400
committerGuido Guenther <agx@sigxcpu.org>2007-06-26 09:53:15 -0400
commit01f60ef34fdd1f926d30d69b3c5fad182fdf9faf (patch)
treee51dd4d33d34c5122c544a1490b8d6f933177dfd
parent74f536979f9bc69124109adf3da8b7e94ab4e870 (diff)
[PATCH] Rename set_group_address to at76_set_group_address, clean it up
Although that function is commented out, it would be better to make it look like other functions. Remove "#if 1", it's confusing. Signed-off-by: Pavel Roskin <proski@gnu.org>
-rw-r--r--at76_usb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/at76_usb.c b/at76_usb.c
index c8ce70b..0368f5a 100644
--- a/at76_usb.c
+++ b/at76_usb.c
@@ -1018,7 +1018,7 @@ static int at76_add_mac_address(struct at76_priv *priv, void *addr)
#if 0
/* Implemented to get promisc. mode working, but does not help.
May still be useful for multicast eventually. */
-static int set_group_address(struct at76_priv *priv, u8 *addr, int n)
+static int at76_set_group_address(struct at76_priv *priv, u8 *addr, int n)
{
int ret = 0;
@@ -1033,7 +1033,7 @@ static int set_group_address(struct at76_priv *priv, u8 *addr, int n)
err("%s: set_mib (MIB_MAC_ADD, group_addr) failed: %d",
priv->netdev->name, ret);
}
-#if 1
+
/* I do not know anything about the group_addr_status field... (oku) */
memset(&priv->mib_buf, 0, sizeof(struct set_mib_buffer));
priv->mib_buf.type = MIB_MAC_ADD;
@@ -1046,7 +1046,6 @@ static int set_group_address(struct at76_priv *priv, u8 *addr, int n)
err("%s: set_mib (MIB_MAC_ADD, group_addr_status) failed: %d",
priv->netdev->name, ret);
}
-#endif
return ret;
}
#endif