]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused wps_device_data_dup()
authorJouni Malinen <j@w1.fi>
Sat, 28 Dec 2013 16:07:51 +0000 (18:07 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Dec 2013 08:00:32 +0000 (10:00 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

src/wps/wps_dev_attr.c
src/wps/wps_dev_attr.h

index 1b12b5a13cf01a6adf0707f3cf4e210e329529ce..fe736f32fbe38bd123c46cf8dc77ab4c888480e0 100644 (file)
@@ -409,25 +409,6 @@ int wps_process_rf_bands(struct wps_device_data *dev, const u8 *bands)
 }
 
 
-void wps_device_data_dup(struct wps_device_data *dst,
-                        const struct wps_device_data *src)
-{
-       if (src->device_name)
-               dst->device_name = os_strdup(src->device_name);
-       if (src->manufacturer)
-               dst->manufacturer = os_strdup(src->manufacturer);
-       if (src->model_name)
-               dst->model_name = os_strdup(src->model_name);
-       if (src->model_number)
-               dst->model_number = os_strdup(src->model_number);
-       if (src->serial_number)
-               dst->serial_number = os_strdup(src->serial_number);
-       os_memcpy(dst->pri_dev_type, src->pri_dev_type, WPS_DEV_TYPE_LEN);
-       dst->os_version = src->os_version;
-       dst->rf_bands = src->rf_bands;
-}
-
-
 void wps_device_data_free(struct wps_device_data *dev)
 {
        os_free(dev->device_name);
index 0158cdc37af1fffa515cc3de98b6ccb7b5d2559a..f0169a79700a211f52493a1adb2476cd24e6e3e9 100644 (file)
@@ -29,8 +29,6 @@ int wps_process_device_attrs(struct wps_device_data *dev,
                             struct wps_parse_attr *attr);
 int wps_process_os_version(struct wps_device_data *dev, const u8 *ver);
 int wps_process_rf_bands(struct wps_device_data *dev, const u8 *bands);
-void wps_device_data_dup(struct wps_device_data *dst,
-                        const struct wps_device_data *src);
 void wps_device_data_free(struct wps_device_data *dev);
 int wps_build_vendor_ext(struct wps_device_data *dev, struct wpabuf *msg);
 int wps_build_req_dev_type(struct wps_device_data *dev, struct wpabuf *msg,