Re: [PATCH 2/4] mac80211: set NET_NAME_USER for user-space created ifs

2014-02-27 Thread David Herrmann
Hi On Thu, Feb 27, 2014 at 5:18 PM, Johannes Berg wrote: > On Thu, 2014-02-27 at 15:56 +0100, David Herrmann wrote: > >> >> +++ b/net/mac80211/iface.c >> >> @@ -1620,6 +1620,7 @@ int ieee80211_if_add(struct ieee80211_local *local, >> >> const char *name, >> >>

Re: [PATCH 2/4] mac80211: set NET_NAME_USER for user-space created ifs

2014-02-27 Thread Johannes Berg
On Thu, 2014-02-27 at 15:56 +0100, David Herrmann wrote: > >> +++ b/net/mac80211/iface.c > >> @@ -1620,6 +1620,7 @@ int ieee80211_if_add(struct ieee80211_local *local, > >> const char *name, > >> + IEEE80211_ENCRYPT_HEADROOM; > >> ndev->needed_t

Re: [PATCH 2/4] mac80211: set NET_NAME_USER for user-space created ifs

2014-02-27 Thread David Herrmann
Hi On Thu, Feb 27, 2014 at 3:53 PM, Johannes Berg wrote: > Given the premise of your patches, > >> +++ b/net/mac80211/iface.c >> @@ -1620,6 +1620,7 @@ int ieee80211_if_add(struct ieee80211_local *local, >> const char *name, >> + IEEE80211_ENCRYPT_HEADROOM; >

Re: [PATCH 2/4] mac80211: set NET_NAME_USER for user-space created ifs

2014-02-27 Thread Johannes Berg
Given the premise of your patches, > +++ b/net/mac80211/iface.c > @@ -1620,6 +1620,7 @@ int ieee80211_if_add(struct ieee80211_local *local, > const char *name, > + IEEE80211_ENCRYPT_HEADROOM; > ndev->needed_tailroom = IEEE80211_ENCRYPT_TAILROOM;

[PATCH 2/4] mac80211: set NET_NAME_USER for user-space created ifs

2014-02-27 Thread David Herrmann
The nl80211 interface allows creating new netdevs from user-space. The name is *always* provided by user-space, so we should set NET_NAME_USER to provide that information via sysfs. This allows udev to not rename dynamically created wifi devices (like wifi P2P devices). Cc: Johannes Berg Signed-