staging: r8188eu: remove rwdinfo member of struct adapter
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:30:06 +0000 (22:30 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:23:21 +0000 (11:23 +0200)
Only default value of wdinfo was used.

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

index a37dc2900f45ace5dc4d8e17848501e1b6b39527..f9ad01a4fd3f2b80be7422d281800feb6b5baf93 100644 (file)
@@ -156,11 +156,6 @@ void rtl8188e_HalDmWatchDog(struct adapter *Adapter)
 
        rtw_hal_get_hwreg(Adapter, HW_VAR_FWLPS_RF_ON, (u8 *)(&fw_ps_awake));
 
-       /*  Fw is under p2p powersaving mode, driver should stop dynamic mechanism. */
-       /*  modifed by thomas. 2011.06.11. */
-       if (Adapter->wdinfo.p2p_ps_mode)
-               fw_ps_awake = false;
-
        /* ODM */
        pmlmepriv = &Adapter->mlmepriv;
 
index e0bdd801ed7563434604a6669f8907218dcdcfaa..1190e98c70172610c3cf76f2b60a055a7ca9c815 100644 (file)
@@ -188,8 +188,6 @@ struct adapter {
        struct  hostapd_priv    *phostapdpriv;
 #endif
 
-       struct wifidirect_info  wdinfo;
-
        void *HalData;
        struct hal_ops  HalFunc;