mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
Remove unused wps_device_data_dup()
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
6645ff5094
commit
f7e2542f28
@ -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)
|
void wps_device_data_free(struct wps_device_data *dev)
|
||||||
{
|
{
|
||||||
os_free(dev->device_name);
|
os_free(dev->device_name);
|
||||||
|
@ -29,8 +29,6 @@ int wps_process_device_attrs(struct wps_device_data *dev,
|
|||||||
struct wps_parse_attr *attr);
|
struct wps_parse_attr *attr);
|
||||||
int wps_process_os_version(struct wps_device_data *dev, const u8 *ver);
|
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);
|
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);
|
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_vendor_ext(struct wps_device_data *dev, struct wpabuf *msg);
|
||||||
int wps_build_req_dev_type(struct wps_device_data *dev, struct wpabuf *msg,
|
int wps_build_req_dev_type(struct wps_device_data *dev, struct wpabuf *msg,
|
||||||
|
Loading…
Reference in New Issue
Block a user