lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 01 Sep 2009 00:33:09 -0700
From:	Marcel Holtmann <marcel@...tmann.org>
To:	Johannes Berg <johannes@...solutions.net>
Cc:	netdev@...r.kernel.org, davem@...emloft.net,
	shemminger@...ux-foundation.org
Subject: Re: [PATCH] net: Add DEVTYPE support for Ethernet based devices

Hi Johannes,

> > The new SET_NETDEV_DEVTYPE() is a convenience helper to set the actual
> > device type. All device types are free form, but for convenience the
> > same strings as used with RFKILL are choosen.
> 
> > --- a/net/mac80211/iface.c
> > +++ b/net/mac80211/iface.c
> > @@ -754,6 +754,10 @@ int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata,
> >  	return 0;
> >  }
> >  
> > +static struct device_type wiphy_type = {
> > +	.name	= "wlan",
> > +};
> > +
> >  int ieee80211_if_add(struct ieee80211_local *local, const char *name,
> >  		     struct net_device **new_dev, enum nl80211_iftype type,
> >  		     struct vif_params *params)
> > @@ -785,6 +789,7 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name,
> >  
> >  	memcpy(ndev->dev_addr, local->hw.wiphy->perm_addr, ETH_ALEN);
> >  	SET_NETDEV_DEV(ndev, wiphy_dev(local->hw.wiphy));
> > +	SET_NETDEV_DEVTYPE(ndev, &wiphy_type);
> 
> Can't you move that into the NETDEV_REGISTER hook in cfg80211? That way
> orinoco, rndis and iwm don't need updating now.

I am not sure if that would work, but it is worth testing it. If it
works, I clearly would prefer this.

Regards

Marcel


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ