core.c (92fd4d4d67b945c0766416284d4ab236b31542c4) | core.c (e9c0268f02f8970149158a9b7ea1e5c1c45c819d) |
---|---|
1/* 2 * This is the linux wireless configuration interface. 3 * 4 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 5 */ 6 | 1/* 2 * This is the linux wireless configuration interface. 3 * 4 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 5 */ 6 |
7#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 8 |
|
7#include <linux/if.h> 8#include <linux/module.h> 9#include <linux/err.h> 10#include <linux/list.h> 11#include <linux/slab.h> 12#include <linux/nl80211.h> 13#include <linux/debugfs.h> 14#include <linux/notifier.h> --- 196 unchanged lines hidden (view full) --- 211 if (result) 212 return result; 213 214 if (rdev->wiphy.debugfsdir && 215 !debugfs_rename(rdev->wiphy.debugfsdir->d_parent, 216 rdev->wiphy.debugfsdir, 217 rdev->wiphy.debugfsdir->d_parent, 218 newname)) | 9#include <linux/if.h> 10#include <linux/module.h> 11#include <linux/err.h> 12#include <linux/list.h> 13#include <linux/slab.h> 14#include <linux/nl80211.h> 15#include <linux/debugfs.h> 16#include <linux/notifier.h> --- 196 unchanged lines hidden (view full) --- 213 if (result) 214 return result; 215 216 if (rdev->wiphy.debugfsdir && 217 !debugfs_rename(rdev->wiphy.debugfsdir->d_parent, 218 rdev->wiphy.debugfsdir, 219 rdev->wiphy.debugfsdir->d_parent, 220 newname)) |
219 printk(KERN_ERR "cfg80211: failed to rename debugfs dir to %s!\n", 220 newname); | 221 pr_err("failed to rename debugfs dir to %s!\n", newname); |
221 222 nl80211_notify_dev_rename(rdev); 223 224 return 0; 225} 226 227int cfg80211_switch_netns(struct cfg80211_registered_device *rdev, 228 struct net *net) --- 465 unchanged lines hidden (view full) --- 694 mutex_lock(&rdev->devlist_mtx); 695 list_add_rcu(&wdev->list, &rdev->netdev_list); 696 rdev->devlist_generation++; 697 /* can only change netns with wiphy */ 698 dev->features |= NETIF_F_NETNS_LOCAL; 699 700 if (sysfs_create_link(&dev->dev.kobj, &rdev->wiphy.dev.kobj, 701 "phy80211")) { | 222 223 nl80211_notify_dev_rename(rdev); 224 225 return 0; 226} 227 228int cfg80211_switch_netns(struct cfg80211_registered_device *rdev, 229 struct net *net) --- 465 unchanged lines hidden (view full) --- 695 mutex_lock(&rdev->devlist_mtx); 696 list_add_rcu(&wdev->list, &rdev->netdev_list); 697 rdev->devlist_generation++; 698 /* can only change netns with wiphy */ 699 dev->features |= NETIF_F_NETNS_LOCAL; 700 701 if (sysfs_create_link(&dev->dev.kobj, &rdev->wiphy.dev.kobj, 702 "phy80211")) { |
702 printk(KERN_ERR "wireless: failed to add phy80211 " 703 "symlink to netdev!\n"); | 703 pr_err("failed to add phy80211 symlink to netdev!\n"); |
704 } 705 wdev->netdev = dev; 706 wdev->sme_state = CFG80211_SME_IDLE; 707 mutex_unlock(&rdev->devlist_mtx); 708#ifdef CONFIG_CFG80211_WEXT 709 wdev->wext.default_key = -1; 710 wdev->wext.default_mgmt_key = -1; 711 wdev->wext.connect.auth_type = NL80211_AUTHTYPE_AUTOMATIC; --- 208 unchanged lines hidden --- | 704 } 705 wdev->netdev = dev; 706 wdev->sme_state = CFG80211_SME_IDLE; 707 mutex_unlock(&rdev->devlist_mtx); 708#ifdef CONFIG_CFG80211_WEXT 709 wdev->wext.default_key = -1; 710 wdev->wext.default_mgmt_key = -1; 711 wdev->wext.connect.auth_type = NL80211_AUTHTYPE_AUTOMATIC; --- 208 unchanged lines hidden --- |