projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b9c3e57
)
nl80211: Fix wpa_supplicant build
author
Jouni Malinen
<jouni.malinen@atheros.com>
Fri, 16 Apr 2010 11:13:27 +0000
(14:13 +0300)
committer
Jouni Malinen
<j@w1.fi>
Fri, 16 Apr 2010 11:13:27 +0000
(14:13 +0300)
src/drivers/driver_nl80211.c
patch
|
blob
|
history
diff --git
a/src/drivers/driver_nl80211.c
b/src/drivers/driver_nl80211.c
index
bd7df65
..
a123327
100644
(file)
--- a/
src/drivers/driver_nl80211.c
+++ b/
src/drivers/driver_nl80211.c
@@
-144,6
+144,11
@@
static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx);
static int wpa_driver_nl80211_if_remove(void *priv,
enum wpa_driver_if_type type,
const char *ifname);
static int wpa_driver_nl80211_if_remove(void *priv,
enum wpa_driver_if_type type,
const char *ifname);
+#else /* HOSTAPD */
+static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx)
+{
+ return 0;
+}
#endif /* HOSTAPD */
static int i802_set_freq(void *priv, struct hostapd_freq_params *freq);
#endif /* HOSTAPD */
static int i802_set_freq(void *priv, struct hostapd_freq_params *freq);
@@
-432,6
+437,7
@@
static void wpa_driver_nl80211_event_rtm_newlink(void *ctx,
attr = RTA_NEXT(attr, attrlen);
}
attr = RTA_NEXT(attr, attrlen);
}
+#ifdef HOSTAPD
if (ifi->ifi_family == AF_BRIDGE && brid) {
/* device has been added to bridge */
char namebuf[IFNAMSIZ];
if (ifi->ifi_family == AF_BRIDGE && brid) {
/* device has been added to bridge */
char namebuf[IFNAMSIZ];
@@
-440,6
+446,7
@@
static void wpa_driver_nl80211_event_rtm_newlink(void *ctx,
brid, namebuf);
add_ifidx(drv, brid);
}
brid, namebuf);
add_ifidx(drv, brid);
}
+#endif /* HOSTAPD */
}
}
@@
-467,6
+474,7
@@
static void wpa_driver_nl80211_event_rtm_dellink(void *ctx,
attr = RTA_NEXT(attr, attrlen);
}
attr = RTA_NEXT(attr, attrlen);
}
+#ifdef HOSTAPD
if (ifi->ifi_family == AF_BRIDGE && brid) {
/* device has been removed from bridge */
char namebuf[IFNAMSIZ];
if (ifi->ifi_family == AF_BRIDGE && brid) {
/* device has been removed from bridge */
char namebuf[IFNAMSIZ];
@@
-475,6
+483,7
@@
static void wpa_driver_nl80211_event_rtm_dellink(void *ctx,
"%s", brid, namebuf);
del_ifidx(drv, brid);
}
"%s", brid, namebuf);
del_ifidx(drv, brid);
}
+#endif /* HOSTAPD */
}
}