staging: r8188eu: remove bNotifyChannelChange member of struct adapter
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:29:19 +0000 (22:29 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:23:21 +0000 (11:23 +0200)
Default value of this variable used only to produce debug output.

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

index a3b50cc15d30a98959b29cbccd24537d8bc27452..8e7605ef950ad01dcdfeb3ec27bd6e766fa802d8 100644 (file)
@@ -341,9 +341,6 @@ void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigne
 {
        u8 center_ch;
 
-       if (padapter->bNotifyChannelChange)
-               DBG_88E("[%s] ch = %d, offset = %d, bwmode = %d\n", __func__, channel, channel_offset, bwmode);
-
        if ((bwmode == HT_CHANNEL_WIDTH_20) ||
            (channel_offset == HAL_PRIME_CHNL_OFFSET_DONT_CARE)) {
                /* SelectChannel(padapter, channel); */
index a83bbea9be93b8e3a2c2b5faa5e3e9b7f3931cc6..0c2b54f75151c3a90b821c480d711cd8e77068c5 100644 (file)
@@ -295,9 +295,6 @@ static void phy_sw_chnl_callback(struct adapter *adapt, u8 channel)
        u32 param1, param2;
        struct hal_data_8188e *hal_data = GET_HAL_DATA(adapt);
 
-       if (adapt->bNotifyChannelChange)
-               DBG_88E("[%s] ch = %d\n", __func__, channel);
-
        phy_set_tx_power_level(adapt, channel);
 
        param1 = RF_CHNLBW;
index 55506a7da1a4bd22d47f12c84e9a5fc8e3b93b84..384a09b18095eda3018315c062d2496e60b4da35 100644 (file)
@@ -223,9 +223,6 @@ struct adapter {
        u8 bReadPortCancel;
        u8 bWritePortCancel;
        u8 bRxRSSIDisplay;
-       /* The driver will show up the desired channel number
-        * when this flag is 1. */
-       u8 bNotifyChannelChange;
 
        struct mutex hw_init_mutex;
 
index c494845814cd76df2991b47ca50088039154f38b..23dbb6ca7d328c93c22d9019c403dc612bbe5019 100644 (file)
@@ -821,7 +821,6 @@ static u8 rtw_init_default_value(struct adapter *padapter)
        padapter->bReadPortCancel = false;
        padapter->bWritePortCancel = false;
        padapter->bRxRSSIDisplay = 0;
-       padapter->bNotifyChannelChange = 0;
        return _SUCCESS;
 }