net: wireless: bcmdhd: update disconnect event to upper layer
[linux-3.10.git] / drivers / net / wireless / bcmdhd / wl_cfg80211.c
index fbd75dd..d78522d 100644 (file)
@@ -8888,11 +8888,11 @@ wl_notify_connect_status(struct bcm_cfg80211 *cfg, bcm_struct_cfgdev *cfgdev,
                                                WL_ERR(("WLC_DISASSOC error %d\n", err));
                                                err = 0;
                                        }
-                                       cfg80211_disconnected(ndev, reason, NULL, 0, GFP_KERNEL);
-                                       wl_link_down(cfg);
-                                       wl_init_prof(cfg, ndev);
                                        memset(&cfg->last_roamed_addr, 0, ETHER_ADDR_LEN);
                                }
+                               cfg80211_disconnected(ndev, reason, NULL, 0, GFP_KERNEL);
+                               wl_link_down(cfg);
+                               wl_init_prof(cfg, ndev);
                        }
                        else if (wl_get_drv_status(cfg, CONNECTING, ndev)) {
                                printk("link down, during connecting\n");