X-Git-Url: http://git.ozo.com/?p=madwifi%2F.git;a=blobdiff_plain;f=net80211%2Fieee80211_linux.c;h=a97bedb72675d397a713fa364641e4397e7b02b6;hp=c954aeb652b09fcc995f13ecf9ff6c1f4abe4d77;hb=f83c3d758e024e717c77c03b6f2f8ceccff0f004;hpb=0196108e9c2cf2bd44a8543ddedb280c6a03a50f diff --git a/net80211/ieee80211_linux.c b/net80211/ieee80211_linux.c index c954aeb..a97bedb 100644 --- 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) { - 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)