aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-28 17:49:25 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-29 08:00:33 (GMT)
commit67807132cfa855c890b3bd15772ab5715b9411ed (patch)
treea95528fd9f04dd691b4be0386f535336d1da9bac /src
parente912986056aff7e1f9a39cfcdee9be3427ddd53f (diff)
downloadhostap-67807132cfa855c890b3bd15772ab5715b9411ed.zip
hostap-67807132cfa855c890b3bd15772ab5715b9411ed.tar.gz
hostap-67807132cfa855c890b3bd15772ab5715b9411ed.tar.bz2
WPS: Remove unused send_wpabuf()
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r--src/wps/wps_upnp.c17
-rw-r--r--src/wps/wps_upnp_i.h1
2 files changed, 0 insertions, 18 deletions
diff --git a/src/wps/wps_upnp.c b/src/wps/wps_upnp.c
index 29e8320..6fb3d4c 100644
--- a/src/wps/wps_upnp.c
+++ b/src/wps/wps_upnp.c
@@ -432,23 +432,6 @@ static void subscr_addr_list_create(struct subscription *s,
}
-int send_wpabuf(int fd, struct wpabuf *buf)
-{
- wpa_printf(MSG_DEBUG, "WPS UPnP: Send %lu byte message",
- (unsigned long) wpabuf_len(buf));
- errno = 0;
- if (write(fd, wpabuf_head(buf), wpabuf_len(buf)) !=
- (int) wpabuf_len(buf)) {
- wpa_printf(MSG_ERROR, "WPS UPnP: Failed to send buffer: "
- "errno=%d (%s)",
- errno, strerror(errno));
- return -1;
- }
-
- return 0;
-}
-
-
static void wpabuf_put_property(struct wpabuf *buf, const char *name,
const char *value)
{
diff --git a/src/wps/wps_upnp_i.h b/src/wps/wps_upnp_i.h
index 5c39f7e..f289fe6 100644
--- a/src/wps/wps_upnp_i.h
+++ b/src/wps/wps_upnp_i.h
@@ -158,7 +158,6 @@ void subscription_destroy(struct subscription *s);
struct subscription * subscription_find(struct upnp_wps_device_sm *sm,
const u8 uuid[UUID_LEN]);
void subscr_addr_delete(struct subscr_addr *a);
-int send_wpabuf(int fd, struct wpabuf *buf);
int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text,
u8 mac[ETH_ALEN]);