From 8c0ed37b641f0719b3c31ba21607e9f8b27f6d82 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 30 Nov 2016 18:02:51 +0200 Subject: [PATCH] wired: Mark some common helper functions static These are used only within driver_wired_common.c now at the end of the refactoring changes, so there is no need to make these helper functions available outside driver_wired_common.c. Signed-off-by: Jouni Malinen --- src/drivers/driver_wired_common.c | 8 ++++---- src/drivers/driver_wired_common.h | 4 ---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/drivers/driver_wired_common.c b/src/drivers/driver_wired_common.c index 2e169d710..a860b1c7d 100644 --- a/src/drivers/driver_wired_common.c +++ b/src/drivers/driver_wired_common.c @@ -30,7 +30,7 @@ #endif /* __sun__ */ -int driver_wired_get_ifflags(const char *ifname, int *flags) +static int driver_wired_get_ifflags(const char *ifname, int *flags) { struct ifreq ifr; int s; @@ -55,7 +55,7 @@ int driver_wired_get_ifflags(const char *ifname, int *flags) } -int driver_wired_set_ifflags(const char *ifname, int flags) +static int driver_wired_set_ifflags(const char *ifname, int flags) { struct ifreq ifr; int s; @@ -80,7 +80,7 @@ int driver_wired_set_ifflags(const char *ifname, int flags) } -int driver_wired_multi(const char *ifname, const u8 *addr, int add) +static int driver_wired_multi(const char *ifname, const u8 *addr, int add) { struct ifreq ifr; int s; @@ -188,7 +188,7 @@ int driver_wired_get_capa(void *priv, struct wpa_driver_capa *capa) #if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__) -int driver_wired_get_ifstatus(const char *ifname, int *status) +static int driver_wired_get_ifstatus(const char *ifname, int *status) { struct ifmediareq ifmr; int s; diff --git a/src/drivers/driver_wired_common.h b/src/drivers/driver_wired_common.h index 7e1a4ae7d..2bb0710bb 100644 --- a/src/drivers/driver_wired_common.h +++ b/src/drivers/driver_wired_common.h @@ -22,14 +22,10 @@ struct driver_wired_common_data { static const u8 pae_group_addr[ETH_ALEN] = { 0x01, 0x80, 0xc2, 0x00, 0x00, 0x03 }; -int driver_wired_get_ifflags(const char *ifname, int *flags); -int driver_wired_set_ifflags(const char *ifname, int flags); -int driver_wired_multi(const char *ifname, const u8 *addr, int add); int wired_multicast_membership(int sock, int ifindex, const u8 *addr, int add); int driver_wired_get_ssid(void *priv, u8 *ssid); int driver_wired_get_bssid(void *priv, u8 *bssid); int driver_wired_get_capa(void *priv, struct wpa_driver_capa *capa); -int driver_wired_get_ifstatus(const char *ifname, int *status); int driver_wired_init_common(struct driver_wired_common_data *common, const char *ifname, void *ctx);