summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2014-07-01 10:11:20 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-08 15:51:37 -0700
commita4f3d3c776140bb739353ca8614fd1105c696d97 (patch)
tree662f925cf4b2bd83a9d48c24ae81fbeabf4b3250
parentc3a3e226113dc43a0acdca3b98a7e175cc8b622b (diff)
downloadlinux-a4f3d3c776140bb739353ca8614fd1105c696d97.tar.bz2
staging: rtl8723au: Remove never set struct rtw_adapter->bNotifyChannelChange
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723au/core/rtw_wlan_util.c4
-rw-r--r--drivers/staging/rtl8723au/hal/rtl8723a_phycfg.c3
-rw-r--r--drivers/staging/rtl8723au/include/drv_types.h2
-rw-r--r--drivers/staging/rtl8723au/os_dep/os_intfs.c1
4 files changed, 0 insertions, 10 deletions
diff --git a/drivers/staging/rtl8723au/core/rtw_wlan_util.c b/drivers/staging/rtl8723au/core/rtw_wlan_util.c
index 66e72e267310..25dae51fa979 100644
--- a/drivers/staging/rtl8723au/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8723au/core/rtw_wlan_util.c
@@ -360,10 +360,6 @@ void set_channel_bwmode23a(struct rtw_adapter *padapter, unsigned char channel,
{
u8 center_ch;
- if (padapter->bNotifyChannelChange)
- DBG_8723A("[%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) {
/* SelectChannel23a(padapter, channel); */
diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_phycfg.c b/drivers/staging/rtl8723au/hal/rtl8723a_phycfg.c
index d23525e664fb..8a6ba63151cd 100644
--- a/drivers/staging/rtl8723au/hal/rtl8723a_phycfg.c
+++ b/drivers/staging/rtl8723au/hal/rtl8723a_phycfg.c
@@ -1098,9 +1098,6 @@ static void _PHY_SwChnl8723A(struct rtw_adapter *Adapter, u8 channel)
u32 param1, param2;
struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter);
- if (Adapter->bNotifyChannelChange)
- DBG_8723A("[%s] ch = %d\n", __func__, channel);
-
/* s1. pre common command - CmdID_SetTxPowerLevel */
PHY_SetTxPowerLevel8723A(Adapter, channel);
diff --git a/drivers/staging/rtl8723au/include/drv_types.h b/drivers/staging/rtl8723au/include/drv_types.h
index 3ef9d7a045f2..c06de681c74f 100644
--- a/drivers/staging/rtl8723au/include/drv_types.h
+++ b/drivers/staging/rtl8723au/include/drv_types.h
@@ -257,8 +257,6 @@ struct rtw_adapter {
u8 bFWReady;
u8 bReadPortCancel;
u8 bWritePortCancel;
- /* The driver will show the desired chan nor when this flag is 1. */
- u8 bNotifyChannelChange;
/* extend to support multi interface */
/* IFACE_ID0 is equals to PRIMARY_ADAPTER */
diff --git a/drivers/staging/rtl8723au/os_dep/os_intfs.c b/drivers/staging/rtl8723au/os_dep/os_intfs.c
index 7fa5c4c0c8ba..d72305dc800f 100644
--- a/drivers/staging/rtl8723au/os_dep/os_intfs.c
+++ b/drivers/staging/rtl8723au/os_dep/os_intfs.c
@@ -425,7 +425,6 @@ static int rtw_init_default_value(struct rtw_adapter *padapter)
/* misc. */
padapter->bReadPortCancel = false;
padapter->bWritePortCancel = false;
- padapter->bNotifyChannelChange = 0;
return ret;
}