/* Parse the Wireless Event and print it out Dump a buffer as a serie of hex Maybe should go in iwlib... Maybe we should have better formatting like iw_print_key...  */
static char* iw_hexdump(char *buf, size_t buflen, const unsigned char *data, size_t datalen)
/* Parse the Wireless Event and print it out Dump a buffer as a serie of hex Maybe should go in iwlib... Maybe we should have better formatting like iw_print_key...  */
static char* iw_hexdump(char *buf, size_t buflen, const unsigned char *data, size_t datalen)
{
  size_t	i;
  char *	pos = buf;
  for(i = 0; i < datalen; i++)
    pos += snprintf(pos, buf + buflen - pos, "%02X", data[i]);
  return buf;
}