rtlwifi: rtl8192ce: Set fw_ready flag
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 10 Dec 2014 20:38:29 +0000 (14:38 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Dec 2014 18:46:20 +0000 (13:46 -0500)
The setting of this flag was missed in previous modifications.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192ce/hw.c

index d2ec5160bbf05dd5be42d70a4780292dc8768d58..5c646d5f7bb83e9b3492c33401ae5de810ced7d5 100644 (file)
@@ -955,6 +955,7 @@ int rtl92ce_hw_init(struct ieee80211_hw *hw)
        local_save_flags(flags);
        local_irq_enable();
 
+       rtlhal->fw_ready = false;
        rtlpriv->intf_ops->disable_aspm(hw);
        rtstatus = _rtl92ce_init_mac(hw);
        if (!rtstatus) {
@@ -971,6 +972,7 @@ int rtl92ce_hw_init(struct ieee80211_hw *hw)
                goto exit;
        }
 
+       rtlhal->fw_ready = true;
        rtlhal->last_hmeboxnum = 0;
        rtl92c_phy_mac_config(hw);
        /* because last function modify RCR, so we update