Skip to content

Commit

Permalink
Add Model Name in output
Browse files Browse the repository at this point in the history
  • Loading branch information
t6x committed Apr 28, 2015
1 parent cccae8d commit 485a6b8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/wps/wps_dev_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,15 @@ static int wps_process_model_name(struct wps_device_data *dev, const u8 *str,
}

wpa_hexdump_ascii(MSG_DEBUG, "WPS: Model Name", str, str_len);

/****** ADD THIS PART ******/
printf("[P] WPS Model Name: ");
int pixiecnt = 0;
for (; pixiecnt < str_len; pixiecnt++) {
printf("%c", (char *) str[pixiecnt]);
}
printf("\n");
/******/

os_free(dev->model_name);
dev->model_name = os_malloc(str_len + 1);
Expand Down

0 comments on commit 485a6b8

Please sign in to comment.