]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: r8188eu: remove in_cta_test member of struct adapter
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:29:40 +0000 (22:29 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:23:21 +0000 (11:23 +0200)
bNotifyChannelChange does not changed after initialization.
"if" branches with in_cta_test != 0 removed too.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/usb_halinit.c
drivers/staging/rtl8188eu/include/drv_types.h

index 363f3a34ddce48abb4ccac7c7a09edbe45107c48..03c143fba56b81825e7e7cb0228b10be3cdfaf56 100644 (file)
@@ -1426,17 +1426,8 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
                                /* enable update TSF */
                                usb_write8(Adapter, REG_BCN_CTRL, usb_read8(Adapter, REG_BCN_CTRL)&(~BIT(4)));
                        }
-                       if ((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE) {
-                               usb_write32(Adapter, REG_RCR, usb_read32(Adapter, REG_RCR)|RCR_CBSSID_BCN);
-                       } else {
-                               if (Adapter->in_cta_test) {
-                                       u32 v = usb_read32(Adapter, REG_RCR);
-                                       v &= ~(RCR_CBSSID_DATA | RCR_CBSSID_BCN);/*  RCR_ADF */
-                                       usb_write32(Adapter, REG_RCR, v);
-                               } else {
-                                       usb_write32(Adapter, REG_RCR, usb_read32(Adapter, REG_RCR)|RCR_CBSSID_BCN);
-                               }
-                       }
+
+                       usb_write32(Adapter, REG_RCR, usb_read32(Adapter, REG_RCR)|RCR_CBSSID_BCN);
                }
                break;
        case HW_VAR_MLME_JOIN:
@@ -1449,13 +1440,7 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
                                /* enable to rx data frame.Accept all data frame */
                                usb_write16(Adapter, REG_RXFLTMAP2, 0xFFFF);
 
-                               if (Adapter->in_cta_test) {
-                                       u32 v = usb_read32(Adapter, REG_RCR);
-                                       v &= ~(RCR_CBSSID_DATA | RCR_CBSSID_BCN);/*  RCR_ADF */
-                                       usb_write32(Adapter, REG_RCR, v);
-                               } else {
-                                       usb_write32(Adapter, REG_RCR, usb_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA|RCR_CBSSID_BCN);
-                               }
+                               usb_write32(Adapter, REG_RCR, usb_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA|RCR_CBSSID_BCN);
 
                                if (check_fwstate(pmlmepriv, WIFI_STATION_STATE))
                                        RetryLimit = (haldata->CustomerID == RT_CID_CCX) ? 7 : 48;
index 384a09b18095eda3018315c062d2496e60b4da35..e5def335fd906daba747b9af9ffbc50116c35fee 100644 (file)
@@ -229,8 +229,6 @@ struct adapter {
        spinlock_t br_ext_lock;
 
        u8      fix_rate;
-
-       unsigned char     in_cta_test;
 };
 
 #define adapter_to_dvobj(adapter) (adapter->dvobj)