/* Print the Generic IE for the device Note : indentation is broken. We need to fix that.  */
static int print_gen_ie_info(int skfd, char *ifname, char *args[], int count)
/* Print the Generic IE for the device Note : indentation is broken. We need to fix that.  */
static int print_gen_ie_info(int skfd, char *ifname, char *args[], int count)
{
  struct iwreq		wrq;
  unsigned char         buf[IW_GENERIC_IE_MAX];
  args = args; count = count;
  wrq.u.data.pointer = (caddr_t)buf;
  wrq.u.data.length = IW_GENERIC_IE_MAX;
  wrq.u.data.flags = 0;
  if(iw_get_ext(skfd, ifname, SIOCGIWGENIE, &wrq) < 0)
    fprintf(stderr, "%-8.16s  no generic IE (%s).\n\n",
	    ifname, strerror(errno));
  else
    {
      fprintf(stderr, "%-8.16s\n", ifname);
      if(wrq.u.data.length == 0)
	printf("          empty generic IE\n");
      else
	iw_print_gen_ie(buf, wrq.u.data.length);
      printf("\n");
    }
  return(0);
}