Skip to content

Commit

Permalink
mac80211: allow using network namespaces
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jul 27, 2009
1 parent 463d018 commit a272a72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name,
name, ieee80211_if_setup);
if (!ndev)
return -ENOMEM;
dev_net_set(ndev, wiphy_net(local->hw.wiphy));

ndev->needed_headroom = local->tx_headroom +
4*6 /* four MAC addresses */
Expand Down
1 change: 1 addition & 0 deletions net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
if (!wiphy)
return NULL;

wiphy->netnsok = true;
wiphy->privid = mac80211_wiphy_privid;

/* Yes, putting cfg80211_bss into ieee80211_bss is a hack */
Expand Down

0 comments on commit a272a72

Please sign in to comment.