/* Remove interface data from cache (if it exist)  */
static void iw_del_interface_data(int ifindex)
/* Remove interface data from cache (if it exist)  */
static void iw_del_interface_data(int ifindex)
{
  struct wireless_iface *	curr;
  struct wireless_iface *	prev = NULL;
  struct wireless_iface *	next;
  curr = interface_cache;
  while(curr)
    {
      next = curr->next;
      if(curr->ifindex == ifindex)
	{
	  if(!prev)
	    interface_cache = next;
	  else
	    prev->next = next;
	  free(curr);
	}
      else
	{
	  prev = curr;
	}
      curr = next;
    }
}