]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/wireless/wl12xx/wl1271_main.c
wl1271: fix notifier interface supported test
[net-next-2.6.git] / drivers / net / wireless / wl12xx / wl1271_main.c
index b61cd102752f65a4ef30fb84e2f97324b4d0ce51..55aa813c82c7deade563181671c8f358e1a3854a 100644 (file)
@@ -852,7 +852,7 @@ static int wl1271_dev_notify(struct notifier_block *me, unsigned long what,
                if (wl == wl_temp)
                        break;
        }
-       if (wl == NULL)
+       if (wl != wl_temp)
                return NOTIFY_DONE;
 
        /* Get the interface IP address for the device. "ifa" will become