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
| ||
|
Date: Tue, 5 Apr 2011 17:44:16 -0700 From: Mahesh Bandewar <maheshb@...gle.com> To: David Miller <davem@...emloft.net> Cc: netdev <netdev@...r.kernel.org>, Mahesh Bandewar <maheshb@...gle.com> Subject: [PATCH 11/20] net-wireless: extending (hw_/wanted_/vlan_)features fields to a bitmap. Converting current use of (hw_/wanted_/vlan_)features to legacy_(hw_/wanted_/vlan_)features to differntiate from the proposed usage. Signed-off-by: Mahesh Bandewar <maheshb@...gle.com> --- net/wireless/core.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net/wireless/core.c b/net/wireless/core.c index fe01de2..f5b619d 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -235,11 +235,11 @@ int cfg80211_switch_netns(struct cfg80211_registered_device *rdev, return -EOPNOTSUPP; list_for_each_entry(wdev, &rdev->netdev_list, list) { - wdev->netdev->features &= ~NETIF_F_NETNS_LOCAL; + wdev->netdev->legacy_features &= ~NETIF_F_NETNS_LOCAL; err = dev_change_net_namespace(wdev->netdev, net, "wlan%d"); if (err) break; - wdev->netdev->features |= NETIF_F_NETNS_LOCAL; + wdev->netdev->legacy_features |= NETIF_F_NETNS_LOCAL; } if (err) { @@ -248,11 +248,11 @@ int cfg80211_switch_netns(struct cfg80211_registered_device *rdev, list_for_each_entry_continue_reverse(wdev, &rdev->netdev_list, list) { - wdev->netdev->features &= ~NETIF_F_NETNS_LOCAL; + wdev->netdev->legacy_features &= ~NETIF_F_NETNS_LOCAL; err = dev_change_net_namespace(wdev->netdev, net, "wlan%d"); WARN_ON(err); - wdev->netdev->features |= NETIF_F_NETNS_LOCAL; + wdev->netdev->legacy_features |= NETIF_F_NETNS_LOCAL; } return err; @@ -697,7 +697,7 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb, list_add_rcu(&wdev->list, &rdev->netdev_list); rdev->devlist_generation++; /* can only change netns with wiphy */ - dev->features |= NETIF_F_NETNS_LOCAL; + dev->legacy_features |= NETIF_F_NETNS_LOCAL; if (sysfs_create_link(&dev->dev.kobj, &rdev->wiphy.dev.kobj, "phy80211")) { -- 1.7.3.1 -- 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