git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cfg80211: assign device type in netdev notifier callback
[pandora-kernel.git]
/
net
/
wireless
/
core.c
diff --git
a/net/wireless/core.c
b/net/wireless/core.c
index
45b2be3
..
e6f02e9
100644
(file)
--- a/
net/wireless/core.c
+++ b/
net/wireless/core.c
@@
-625,6
+625,10
@@
static void wdev_cleanup_work(struct work_struct *work)
dev_put(wdev->netdev);
}
dev_put(wdev->netdev);
}
+static struct device_type wiphy_type = {
+ .name = "wlan",
+};
+
static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
unsigned long state,
void *ndev)
static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
unsigned long state,
void *ndev)
@@
-641,6
+645,9
@@
static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
WARN_ON(wdev->iftype == NL80211_IFTYPE_UNSPECIFIED);
switch (state) {
WARN_ON(wdev->iftype == NL80211_IFTYPE_UNSPECIFIED);
switch (state) {
+ case NETDEV_POST_INIT:
+ SET_NETDEV_DEVTYPE(dev, &wiphy_type);
+ break;
case NETDEV_REGISTER:
/*
* NB: cannot take rdev->mtx here because this may be
case NETDEV_REGISTER:
/*
* NB: cannot take rdev->mtx here because this may be