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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2016-11-30 18:02:51 +02:00
parent ba5ea11687
commit 8c0ed37b64
2 changed files with 4 additions and 8 deletions

View file

@ -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;

View file

@ -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);