Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1497445
| From | Ivan Safonov <insafonov@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 16/34] staging:r8188eu: remove rf_chip member of hal_data_8188e structure |
| Date | 2016-10-07 20:20 +0200 |
| Message-ID | <spHUt-4gr-1@gated-at.bofh.it> (permalink) |
| References | <spHB7-3PS-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This member is constant.
Signed-off-by: Ivan Safonov <insafonov@gmail.com>
---
drivers/staging/rtl8188eu/hal/phy.c | 13 +------------
drivers/staging/rtl8188eu/hal/usb_halinit.c | 6 ------
drivers/staging/rtl8188eu/include/rtl8188e_hal.h | 1 -
3 files changed, 1 insertion(+), 19 deletions(-)
diff --git a/drivers/staging/rtl8188eu/hal/phy.c b/drivers/staging/rtl8188eu/hal/phy.c
index 5192ef7..84ffc01 100644
--- a/drivers/staging/rtl8188eu/hal/phy.c
+++ b/drivers/staging/rtl8188eu/hal/phy.c
@@ -210,13 +210,6 @@ static void phy_set_bw_mode_callback(struct adapter *adapt)
u8 reg_bw_opmode;
u8 reg_prsr_rsc;
- if (hal_data->rf_chip == RF_PSEUDO_11N)
- return;
-
- /* There is no 40MHz mode in RF_8225. */
- if (hal_data->rf_chip == RF_8225)
- return;
-
if (adapt->bDriverStopped)
return;
@@ -265,8 +258,7 @@ static void phy_set_bw_mode_callback(struct adapter *adapt)
}
/* Set RF related register */
- if (hal_data->rf_chip == RF_6052)
- rtl88eu_phy_rf6052_set_bandwidth(adapt, hal_data->CurrentChannelBW);
+ rtl88eu_phy_rf6052_set_bandwidth(adapt, hal_data->CurrentChannelBW);
}
void rtw_hal_set_bwmode(struct adapter *adapt, enum ht_channel_width bandwidth,
@@ -307,9 +299,6 @@ void rtw_hal_set_chan(struct adapter *adapt, u8 channel)
struct hal_data_8188e *hal_data = adapt->HalData;
u8 tmpchannel = hal_data->CurrentChannel;
- if (hal_data->rf_chip == RF_PSEUDO_11N)
- return;
-
if (channel == 0)
channel = 1;
diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c b/drivers/staging/rtl8188eu/hal/usb_halinit.c
index 87e379e..71d6ade 100644
--- a/drivers/staging/rtl8188eu/hal/usb_halinit.c
+++ b/drivers/staging/rtl8188eu/hal/usb_halinit.c
@@ -1096,18 +1096,12 @@ static void _ReadPROMContent(
readAdapterInfo_8188EU(Adapter);
}
-static void _ReadRFType(struct adapter *Adapter)
-{
- Adapter->HalData->rf_chip = RF_6052;
-}
-
void rtw_hal_read_chip_info(struct adapter *Adapter)
{
unsigned long start = jiffies;
MSG_88E("====> %s\n", __func__);
- _ReadRFType(Adapter);/* rf_chip -> _InitRFType() */
_ReadPROMContent(Adapter);
MSG_88E("<==== %s in %d ms\n", __func__,
diff --git a/drivers/staging/rtl8188eu/include/rtl8188e_hal.h b/drivers/staging/rtl8188eu/include/rtl8188e_hal.h
index 53c975a..226e89b 100644
--- a/drivers/staging/rtl8188eu/include/rtl8188e_hal.h
+++ b/drivers/staging/rtl8188eu/include/rtl8188e_hal.h
@@ -201,7 +201,6 @@ struct hal_data_8188e {
u16 BasicRateSet;
/* rf_ctrl */
- u8 rf_chip;
u8 NumTotalRFPath;
u8 BoardType;
--
2.7.3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 01/34] staging:r8188eu: remove rtw_os_recv_resource_alloc function Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:00 +0200 [PATCH 04/34] staging:r8188eu: remove free_recv_buf_queue_cnt member of recv_priv structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:00 +0200 [PATCH 08/34] staging:r8188eu: remove ff_hwaddr member of recv_priv structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:00 +0200 [PATCH 15/34] staging:r8188eu: remove Antenna_(Lfet|Right) enumeration items Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 29/34] staging:r8188eu: remove free_recvframe_cnt member of recv_priv structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 33/34] staging:r8188eu: refactor recvbuf2recvframe function Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 07/34] staging:r8188eu: remove (u32 cnt) argument of usb_read_port function Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 19/34] staging:r8188eu: refactor rtl88eu_dm_txpower_tracking_callback_thermalmeter function Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 03/34] staging:r8188eu: remove pm_netdev_open function Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 34/34] staging:r8188eu: remove unnecessary type cast for update_recvframe_phyinfo_88e argument Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 11/34] staging:r8188eu: remove bLedStartToLinkBlinkInProgress and bSWLedCtrl members of LED_871x structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 25/34] staging:r8188eu: remove prhdr local variable from rtw_free_stainfo function Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 23/34] staging:r8188eu: remove padapter and free_sz arguments of rtw_os_xmit_resource_free function Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 24/34] staging:r8188eu: remove unused function declerations Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 18/34] staging:r8188eu: remove NumTotalRFPath member of hal_data_8188e structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 32/34] staging:r8188eu: change poiter type from u8 to void for pallocated_frame_buf member of recv_priv structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 02/34] staging:r8188eu: remove wrappers for rtw_hal_inirp_init function Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 14/34] staging:r8188eu: remove unused members of hal_data_8188e structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 20/34] staging:r8188eu: remove bTXPowerTrackingInit member of odm_rf_cal structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 22/34] staging:r8188eu: remove rtw_endofpktfile function Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:10 +0200 [PATCH 16/34] staging:r8188eu: remove rf_chip member of hal_data_8188e structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:20 +0200 [PATCH 17/34] staging:r8188eu: remove RF_TYPE_8190P enumeration Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:20 +0200 [PATCH 12/34] staging:r8188eu: remove bLedOpenDrain member of hal_data_8188e structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:20 +0200 [PATCH 28/34] staging:r8188eu: remove intf_stop member of adapter structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:20 +0200 [PATCH 06/34] staging:r8188eu: change usb_read_port last argument type to (struct *recv_buf) Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:20 +0200 [PATCH 21/34] staging:r8188eu: remove ANTTEST(ALL|A|B) definitions Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:20 +0200 [PATCH 10/34] staging:r8188eu: remove bRegUseLed member of led_priv structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:20 +0200 [PATCH 26/34] staging:r8188eu: change type of the precv_buf member of recv_priv structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:20 +0200 [PATCH 30/34] staging:r8188eu: remove rx_pending_cnt member of recv_priv structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:20 +0200 [PATCH 09/34] staging:r8188eu: remove wrappers for LedControl8188eu function Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:20 +0200 [PATCH 31/34] staging:r8188eu: remove precv_frame_buf member of recv_priv structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:50 +0200 [PATCH 13/34] staging:r8188eu: remove ExternalPA member of hal_data_8188e structure Ivan Safonov <insafonov@gmail.com> - 2016-10-07 20:50 +0200 [PATCH 05/34] staging:r8188eu: remove skb data alignment in r8188eu driver code Ivan Safonov <insafonov@gmail.com> - 2016-10-07 21:10 +0200
csiph-web