rtlwifi: rtl8192cu: Remove setting REG_BCN_MAX_ERR code in _rtl92cu_set_media_status().
authorTaehee Yoo <ap420073@gmail.com>
Sat, 9 May 2015 09:15:23 +0000 (18:15 +0900)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 May 2015 10:43:05 +0000 (13:43 +0300)
Initialization routine set REG_BCN_MAX_ERR to 0xFF.
also _rtl92cu_set_media_status set REG_BCN_MAX_ERR to same value.
so i remove this code.

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

index d310d55d800efd584f9dd9a6d8e143539c0c777c..3c1639ba7f99a8f355b932118f513897f14a90cc 100644 (file)
@@ -1323,7 +1323,6 @@ static int _rtl92cu_set_media_status(struct ieee80211_hw *hw,
        enum led_ctl_mode ledaction = LED_CTL_NO_LINK;
 
        bt_msr &= 0xfc;
-       rtl_write_byte(rtlpriv, REG_BCN_MAX_ERR, 0xFF);
        if (type == NL80211_IFTYPE_UNSPECIFIED || type ==
            NL80211_IFTYPE_STATION) {
                _rtl92cu_stop_tx_beacon(hw);