Commit a4f3d3c7 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Remove never set struct rtw_adapter->bNotifyChannelChange

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c3a3e226
...@@ -360,10 +360,6 @@ void set_channel_bwmode23a(struct rtw_adapter *padapter, unsigned char channel, ...@@ -360,10 +360,6 @@ void set_channel_bwmode23a(struct rtw_adapter *padapter, unsigned char channel,
{ {
u8 center_ch; 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 || if (bwmode == HT_CHANNEL_WIDTH_20 ||
channel_offset == HAL_PRIME_CHNL_OFFSET_DONT_CARE) { channel_offset == HAL_PRIME_CHNL_OFFSET_DONT_CARE) {
/* SelectChannel23a(padapter, channel); */ /* SelectChannel23a(padapter, channel); */
......
...@@ -1098,9 +1098,6 @@ static void _PHY_SwChnl8723A(struct rtw_adapter *Adapter, u8 channel) ...@@ -1098,9 +1098,6 @@ static void _PHY_SwChnl8723A(struct rtw_adapter *Adapter, u8 channel)
u32 param1, param2; u32 param1, param2;
struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter); 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 */ /* s1. pre common command - CmdID_SetTxPowerLevel */
PHY_SetTxPowerLevel8723A(Adapter, channel); PHY_SetTxPowerLevel8723A(Adapter, channel);
......
...@@ -257,8 +257,6 @@ struct rtw_adapter { ...@@ -257,8 +257,6 @@ struct rtw_adapter {
u8 bFWReady; u8 bFWReady;
u8 bReadPortCancel; u8 bReadPortCancel;
u8 bWritePortCancel; u8 bWritePortCancel;
/* The driver will show the desired chan nor when this flag is 1. */
u8 bNotifyChannelChange;
/* extend to support multi interface */ /* extend to support multi interface */
/* IFACE_ID0 is equals to PRIMARY_ADAPTER */ /* IFACE_ID0 is equals to PRIMARY_ADAPTER */
......
...@@ -425,7 +425,6 @@ static int rtw_init_default_value(struct rtw_adapter *padapter) ...@@ -425,7 +425,6 @@ static int rtw_init_default_value(struct rtw_adapter *padapter)
/* misc. */ /* misc. */
padapter->bReadPortCancel = false; padapter->bReadPortCancel = false;
padapter->bWritePortCancel = false; padapter->bWritePortCancel = false;
padapter->bNotifyChannelChange = 0;
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment