projects
/
madwifi
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use netdev_notifier_info_to_dev(), needed for Linux 3.11+
[madwifi/.git]
/
net80211
/
ieee80211_linux.c
diff --git
a/net80211/ieee80211_linux.c
b/net80211/ieee80211_linux.c
index c954aeb652b09fcc995f13ecf9ff6c1f4abe4d77..a97bedb72675d397a713fa364641e4397e7b02b6 100644
(file)
--- a/
net80211/ieee80211_linux.c
+++ b/
net80211/ieee80211_linux.c
@@
-1186,7
+1186,7
@@
static int
ieee80211_rcv_dev_event(struct notifier_block *this, unsigned long event,
void *ptr)
{
ieee80211_rcv_dev_event(struct notifier_block *this, unsigned long event,
void *ptr)
{
- struct net_device *dev =
(struct net_device *)ptr
;
+ struct net_device *dev =
netdev_notifier_info_to_dev(ptr)
;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
if (!dev || dev->open != &ieee80211_open)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
if (!dev || dev->open != &ieee80211_open)