cfg80211/wext: fix message ordering
[pandora-kernel.git] / net / wireless / core.c
index ea93f4b..4043f71 100644 (file)
@@ -985,8 +985,12 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
                if (ret)
                        return notifier_from_errno(ret);
                break;
+       default:
+               return NOTIFY_DONE;
        }
 
+       wireless_nlevent_flush();
+
        return NOTIFY_DONE;
 }