rtlwifi: rtl8192cu: Set fw_ready flag
authorTaehee Yoo <ap420073@gmail.com>
Sat, 24 Jan 2015 11:55:40 +0000 (20:55 +0900)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Jan 2015 18:20:09 +0000 (20:20 +0200)
After rtl8192cu download firmware routine, set fw_ready flag.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rtlwifi/rtl8192cu/hw.c

index e5a7c4f81ab8d56194f940a1c48dda46e2b8e5ee..fe4b699a12f5b4d6bdc9d883584d356e9670e24e 100644 (file)
@@ -1000,6 +1000,7 @@ int rtl92cu_hw_init(struct ieee80211_hw *hw)
        local_save_flags(flags);
        local_irq_enable();
 
+       rtlhal->fw_ready = false;
        rtlhal->hw_type = HARDWARE_TYPE_RTL8192CU;
        err = _rtl92cu_init_mac(hw);
        if (err) {
@@ -1013,6 +1014,8 @@ int rtl92cu_hw_init(struct ieee80211_hw *hw)
                err = 1;
                goto exit;
        }
+
+       rtlhal->fw_ready = true;
        rtlhal->last_hmeboxnum = 0; /* h2c */
        _rtl92cu_phy_param_tab_init(hw);
        rtl92cu_phy_mac_config(hw);