/* Print all names corresponding to a mask. This may want to be used in iw_print_retry_value() ?  */
static void iw_print_mask_name(unsigned int mask, const struct iwmask_name names[], const unsigned int num_names, const char *sep)
/* Print all names corresponding to a mask. This may want to be used in iw_print_retry_value() ?  */
static void iw_print_mask_name(unsigned int mask, const struct iwmask_name names[], const unsigned int num_names, const char *sep)
{
  unsigned int	i;
  for(i = 0; i < num_names; i++)
    {
      if(mask & names[i].mask)
	{
	  printf("%s%s", sep, names[i].name);
	  mask &= ~names[i].mask;
	}
    }
  if(mask != 0)
    printf("%sUnknown", sep);
}