WPS: Remove unused send_wpabuf()
authorJouni Malinen <j@w1.fi>
Sat, 28 Dec 2013 17:49:25 +0000 (19:49 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Dec 2013 08:00:33 +0000 (10:00 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

src/wps/wps_upnp.c
src/wps/wps_upnp_i.h

index 29e8320..6fb3d4c 100644 (file)
@@ -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)
 {
index 5c39f7e..f289fe6 100644 (file)
@@ -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]);