diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-13 18:33:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-27 15:24:08 -0400 |
commit | a272a720660059c30fa038113b77fa2a096437d9 (patch) | |
tree | 57da6a50b0a9a0d68fafe98f621fff15a2b8bd94 /net/mac80211/iface.c | |
parent | 463d018323851a608eef52a9427b0585005c647f (diff) |
mac80211: allow using network namespaces
This finally opens up the ability to put mac80211 devices
into different network namespaces. As long as you don't
have sysfs, that is.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 559d698369c7..0cb29df09e35 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -787,6 +787,7 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name, | |||
787 | name, ieee80211_if_setup); | 787 | name, ieee80211_if_setup); |
788 | if (!ndev) | 788 | if (!ndev) |
789 | return -ENOMEM; | 789 | return -ENOMEM; |
790 | dev_net_set(ndev, wiphy_net(local->hw.wiphy)); | ||
790 | 791 | ||
791 | ndev->needed_headroom = local->tx_headroom + | 792 | ndev->needed_headroom = local->tx_headroom + |
792 | 4*6 /* four MAC addresses */ | 793 | 4*6 /* four MAC addresses */ |