diff options
author | John W. Linville <linville@tuxdriver.com> | 2013-02-08 13:16:17 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-02-08 13:16:17 -0500 |
commit | f5237f278f30a92401539a54f87ee0c717b6f818 (patch) | |
tree | 209d4fd6fb00e660c76ca8ac5d4caed59dbb9957 /drivers/net/wireless/rtlwifi | |
parent | b285109dde7b873b5dc671ef1b3ae3090f4bc72f (diff) | |
parent | b26f5f09ebdeb85ab152344cc1d6d484a3ce967d (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'drivers/net/wireless/rtlwifi')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rc.c | 15 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192de/dm.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723ae/fw.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723ae/hw.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723ae/phy.c | 20 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723ae/trx.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/usb.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/wifi.h | 2 |
11 files changed, 13 insertions, 57 deletions
diff --git a/drivers/net/wireless/rtlwifi/rc.c b/drivers/net/wireless/rtlwifi/rc.c index c1e065f136ba..204f46c4510d 100644 --- a/drivers/net/wireless/rtlwifi/rc.c +++ b/drivers/net/wireless/rtlwifi/rc.c | |||
@@ -217,19 +217,6 @@ static void rtl_tx_status(void *ppriv, | |||
217 | } | 217 | } |
218 | } | 218 | } |
219 | 219 | ||
220 | static void rtl_rate_init(void *ppriv, | ||
221 | struct ieee80211_supported_band *sband, | ||
222 | struct ieee80211_sta *sta, void *priv_sta) | ||
223 | { | ||
224 | } | ||
225 | |||
226 | static void rtl_rate_update(void *ppriv, | ||
227 | struct ieee80211_supported_band *sband, | ||
228 | struct ieee80211_sta *sta, void *priv_sta, | ||
229 | u32 changed) | ||
230 | { | ||
231 | } | ||
232 | |||
233 | static void *rtl_rate_alloc(struct ieee80211_hw *hw, | 220 | static void *rtl_rate_alloc(struct ieee80211_hw *hw, |
234 | struct dentry *debugfsdir) | 221 | struct dentry *debugfsdir) |
235 | { | 222 | { |
@@ -274,8 +261,6 @@ static struct rate_control_ops rtl_rate_ops = { | |||
274 | .free = rtl_rate_free, | 261 | .free = rtl_rate_free, |
275 | .alloc_sta = rtl_rate_alloc_sta, | 262 | .alloc_sta = rtl_rate_alloc_sta, |
276 | .free_sta = rtl_rate_free_sta, | 263 | .free_sta = rtl_rate_free_sta, |
277 | .rate_init = rtl_rate_init, | ||
278 | .rate_update = rtl_rate_update, | ||
279 | .tx_status = rtl_tx_status, | 264 | .tx_status = rtl_tx_status, |
280 | .get_rate = rtl_get_rate, | 265 | .get_rate = rtl_get_rate, |
281 | }; | 266 | }; |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c b/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c index 1cdf5a271c9f..b793a659a465 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c +++ b/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c | |||
@@ -669,7 +669,8 @@ static void rtl92c_dm_txpower_tracking_callback_thermalmeter(struct ieee80211_hw | |||
669 | u8 thermalvalue, delta, delta_lck, delta_iqk; | 669 | u8 thermalvalue, delta, delta_lck, delta_iqk; |
670 | long ele_a, ele_d, temp_cck, val_x, value32; | 670 | long ele_a, ele_d, temp_cck, val_x, value32; |
671 | long val_y, ele_c = 0; | 671 | long val_y, ele_c = 0; |
672 | u8 ofdm_index[2], cck_index = 0, ofdm_index_old[2], cck_index_old = 0; | 672 | u8 ofdm_index[2], ofdm_index_old[2], cck_index_old = 0; |
673 | s8 cck_index = 0; | ||
673 | int i; | 674 | int i; |
674 | bool is2t = IS_92C_SERIAL(rtlhal->version); | 675 | bool is2t = IS_92C_SERIAL(rtlhal->version); |
675 | s8 txpwr_level[2] = {0, 0}; | 676 | s8 txpwr_level[2] = {0, 0}; |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c index b7e6607e6b6d..d9e659f92767 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | |||
@@ -76,7 +76,7 @@ static int rtl92cu_init_sw_vars(struct ieee80211_hw *hw) | |||
76 | GFP_KERNEL, hw, rtl_fw_cb); | 76 | GFP_KERNEL, hw, rtl_fw_cb); |
77 | 77 | ||
78 | 78 | ||
79 | return 0; | 79 | return err; |
80 | } | 80 | } |
81 | 81 | ||
82 | static void rtl92cu_deinit_sw_vars(struct ieee80211_hw *hw) | 82 | static void rtl92cu_deinit_sw_vars(struct ieee80211_hw *hw) |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/dm.c b/drivers/net/wireless/rtlwifi/rtl8192de/dm.c index fd8df233ff22..5251fb8a111e 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192de/dm.c +++ b/drivers/net/wireless/rtlwifi/rtl8192de/dm.c | |||
@@ -841,9 +841,9 @@ static void rtl92d_dm_txpower_tracking_callback_thermalmeter( | |||
841 | long ele_a = 0, ele_d, temp_cck, val_x, value32; | 841 | long ele_a = 0, ele_d, temp_cck, val_x, value32; |
842 | long val_y, ele_c = 0; | 842 | long val_y, ele_c = 0; |
843 | u8 ofdm_index[2]; | 843 | u8 ofdm_index[2]; |
844 | u8 cck_index = 0; | 844 | s8 cck_index = 0; |
845 | u8 ofdm_index_old[2]; | 845 | u8 ofdm_index_old[2]; |
846 | u8 cck_index_old = 0; | 846 | s8 cck_index_old = 0; |
847 | u8 index; | 847 | u8 index; |
848 | int i; | 848 | int i; |
849 | bool is2t = IS_92D_SINGLEPHY(rtlhal->version); | 849 | bool is2t = IS_92D_SINGLEPHY(rtlhal->version); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8723ae/fw.c b/drivers/net/wireless/rtlwifi/rtl8723ae/fw.c index f55b1767ef57..35cb8f83eed4 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723ae/fw.c +++ b/drivers/net/wireless/rtlwifi/rtl8723ae/fw.c | |||
@@ -252,7 +252,7 @@ static void _rtl8723ae_fill_h2c_command(struct ieee80211_hw *hw, | |||
252 | u16 box_reg = 0, box_extreg = 0; | 252 | u16 box_reg = 0, box_extreg = 0; |
253 | u8 u1tmp; | 253 | u8 u1tmp; |
254 | bool isfw_rd = false; | 254 | bool isfw_rd = false; |
255 | bool bwrite_sucess = false; | 255 | bool bwrite_success = false; |
256 | u8 wait_h2c_limmit = 100; | 256 | u8 wait_h2c_limmit = 100; |
257 | u8 wait_writeh2c_limmit = 100; | 257 | u8 wait_writeh2c_limmit = 100; |
258 | u8 boxcontent[4], boxextcontent[2]; | 258 | u8 boxcontent[4], boxextcontent[2]; |
@@ -291,7 +291,7 @@ static void _rtl8723ae_fill_h2c_command(struct ieee80211_hw *hw, | |||
291 | } | 291 | } |
292 | } | 292 | } |
293 | 293 | ||
294 | while (!bwrite_sucess) { | 294 | while (!bwrite_success) { |
295 | wait_writeh2c_limmit--; | 295 | wait_writeh2c_limmit--; |
296 | if (wait_writeh2c_limmit == 0) { | 296 | if (wait_writeh2c_limmit == 0) { |
297 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, | 297 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, |
@@ -429,7 +429,7 @@ static void _rtl8723ae_fill_h2c_command(struct ieee80211_hw *hw, | |||
429 | break; | 429 | break; |
430 | } | 430 | } |
431 | 431 | ||
432 | bwrite_sucess = true; | 432 | bwrite_success = true; |
433 | 433 | ||
434 | rtlhal->last_hmeboxnum = boxnum + 1; | 434 | rtlhal->last_hmeboxnum = boxnum + 1; |
435 | if (rtlhal->last_hmeboxnum == 4) | 435 | if (rtlhal->last_hmeboxnum == 4) |
@@ -512,7 +512,6 @@ static bool _rtl8723ae_cmd_send_packet(struct ieee80211_hw *hw, | |||
512 | struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); | 512 | struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); |
513 | struct rtl8192_tx_ring *ring; | 513 | struct rtl8192_tx_ring *ring; |
514 | struct rtl_tx_desc *pdesc; | 514 | struct rtl_tx_desc *pdesc; |
515 | u8 own; | ||
516 | unsigned long flags; | 515 | unsigned long flags; |
517 | struct sk_buff *pskb = NULL; | 516 | struct sk_buff *pskb = NULL; |
518 | 517 | ||
@@ -525,7 +524,6 @@ static bool _rtl8723ae_cmd_send_packet(struct ieee80211_hw *hw, | |||
525 | spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); | 524 | spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); |
526 | 525 | ||
527 | pdesc = &ring->desc[0]; | 526 | pdesc = &ring->desc[0]; |
528 | own = (u8) rtlpriv->cfg->ops->get_desc((u8 *) pdesc, true, HW_DESC_OWN); | ||
529 | 527 | ||
530 | rtlpriv->cfg->ops->fill_tx_cmddesc(hw, (u8 *) pdesc, 1, 1, skb); | 528 | rtlpriv->cfg->ops->fill_tx_cmddesc(hw, (u8 *) pdesc, 1, 1, skb); |
531 | 529 | ||
diff --git a/drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.c b/drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.c index 887d521fe690..68c28340f791 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.c +++ b/drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.c | |||
@@ -1433,7 +1433,6 @@ static void _rtl8723ae_dm_bt_coexist_2_ant(struct ieee80211_hw *hw) | |||
1433 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 1433 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
1434 | struct rtl_hal *rtlhal = rtl_hal(rtlpriv); | 1434 | struct rtl_hal *rtlhal = rtl_hal(rtlpriv); |
1435 | struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); | 1435 | struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); |
1436 | u8 bt_retry_cnt; | ||
1437 | u8 bt_info_original; | 1436 | u8 bt_info_original; |
1438 | RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_DMESG, | 1437 | RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_DMESG, |
1439 | "[BTCoex] Get bt info by fw!!\n"); | 1438 | "[BTCoex] Get bt info by fw!!\n"); |
@@ -1445,7 +1444,6 @@ static void _rtl8723ae_dm_bt_coexist_2_ant(struct ieee80211_hw *hw) | |||
1445 | "[BTCoex] c2h for btInfo not rcvd yet!!\n"); | 1444 | "[BTCoex] c2h for btInfo not rcvd yet!!\n"); |
1446 | } | 1445 | } |
1447 | 1446 | ||
1448 | bt_retry_cnt = rtlhal->hal_coex_8723.bt_retry_cnt; | ||
1449 | bt_info_original = rtlhal->hal_coex_8723.c2h_bt_info_original; | 1447 | bt_info_original = rtlhal->hal_coex_8723.c2h_bt_info_original; |
1450 | 1448 | ||
1451 | /* when bt inquiry or page scan, we have to set h2c 0x25 | 1449 | /* when bt inquiry or page scan, we have to set h2c 0x25 |
diff --git a/drivers/net/wireless/rtlwifi/rtl8723ae/hw.c b/drivers/net/wireless/rtlwifi/rtl8723ae/hw.c index 0a8c03863fb2..149804816ac4 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723ae/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8723ae/hw.c | |||
@@ -703,11 +703,9 @@ static void _rtl8723ae_hw_configure(struct ieee80211_hw *hw) | |||
703 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 703 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
704 | struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw); | 704 | struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw); |
705 | u8 reg_bw_opmode; | 705 | u8 reg_bw_opmode; |
706 | u32 reg_ratr, reg_prsr; | 706 | u32 reg_prsr; |
707 | 707 | ||
708 | reg_bw_opmode = BW_OPMODE_20MHZ; | 708 | reg_bw_opmode = BW_OPMODE_20MHZ; |
709 | reg_ratr = RATE_ALL_CCK | RATE_ALL_OFDM_AG | | ||
710 | RATE_ALL_OFDM_1SS | RATE_ALL_OFDM_2SS; | ||
711 | reg_prsr = RATE_ALL_CCK | RATE_ALL_OFDM_AG; | 709 | reg_prsr = RATE_ALL_CCK | RATE_ALL_OFDM_AG; |
712 | 710 | ||
713 | rtl_write_byte(rtlpriv, REG_INIRTS_RATE_SEL, 0x8); | 711 | rtl_write_byte(rtlpriv, REG_INIRTS_RATE_SEL, 0x8); |
@@ -2030,7 +2028,7 @@ bool rtl8723ae_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 *valid) | |||
2030 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 2028 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
2031 | struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); | 2029 | struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); |
2032 | struct rtl_phy *rtlphy = &(rtlpriv->phy); | 2030 | struct rtl_phy *rtlphy = &(rtlpriv->phy); |
2033 | enum rf_pwrstate e_rfpowerstate_toset, cur_rfstate; | 2031 | enum rf_pwrstate e_rfpowerstate_toset; |
2034 | u8 u1tmp; | 2032 | u8 u1tmp; |
2035 | bool actuallyset = false; | 2033 | bool actuallyset = false; |
2036 | 2034 | ||
@@ -2049,8 +2047,6 @@ bool rtl8723ae_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 *valid) | |||
2049 | spin_unlock(&rtlpriv->locks.rf_ps_lock); | 2047 | spin_unlock(&rtlpriv->locks.rf_ps_lock); |
2050 | } | 2048 | } |
2051 | 2049 | ||
2052 | cur_rfstate = ppsc->rfpwr_state; | ||
2053 | |||
2054 | rtl_write_byte(rtlpriv, REG_GPIO_IO_SEL_2, | 2050 | rtl_write_byte(rtlpriv, REG_GPIO_IO_SEL_2, |
2055 | rtl_read_byte(rtlpriv, REG_GPIO_IO_SEL_2)&~(BIT(1))); | 2051 | rtl_read_byte(rtlpriv, REG_GPIO_IO_SEL_2)&~(BIT(1))); |
2056 | 2052 | ||
diff --git a/drivers/net/wireless/rtlwifi/rtl8723ae/phy.c b/drivers/net/wireless/rtlwifi/rtl8723ae/phy.c index 3d8536bb0d2b..eafbb18dd48e 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723ae/phy.c +++ b/drivers/net/wireless/rtlwifi/rtl8723ae/phy.c | |||
@@ -614,17 +614,11 @@ bool rtl8723ae_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, | |||
614 | { | 614 | { |
615 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 615 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
616 | int i; | 616 | int i; |
617 | bool rtstatus = true; | ||
618 | u32 *radioa_array_table; | 617 | u32 *radioa_array_table; |
619 | u32 *radiob_array_table; | 618 | u16 radioa_arraylen; |
620 | u16 radioa_arraylen, radiob_arraylen; | ||
621 | 619 | ||
622 | radioa_arraylen = Rtl8723ERADIOA_1TARRAYLENGTH; | 620 | radioa_arraylen = Rtl8723ERADIOA_1TARRAYLENGTH; |
623 | radioa_array_table = RTL8723E_RADIOA_1TARRAY; | 621 | radioa_array_table = RTL8723E_RADIOA_1TARRAY; |
624 | radiob_arraylen = RTL8723E_RADIOB_1TARRAYLENGTH; | ||
625 | radiob_array_table = RTL8723E_RADIOB_1TARRAY; | ||
626 | |||
627 | rtstatus = true; | ||
628 | 622 | ||
629 | switch (rfpath) { | 623 | switch (rfpath) { |
630 | case RF90_PATH_A: | 624 | case RF90_PATH_A: |
@@ -1531,11 +1525,8 @@ static void _rtl8723ae_phy_iq_calibrate(struct ieee80211_hw *hw, | |||
1531 | 0x522, 0x550, 0x551, 0x040 | 1525 | 0x522, 0x550, 0x551, 0x040 |
1532 | }; | 1526 | }; |
1533 | const u32 retrycount = 2; | 1527 | const u32 retrycount = 2; |
1534 | u32 bbvalue; | ||
1535 | 1528 | ||
1536 | if (t == 0) { | 1529 | if (t == 0) { |
1537 | bbvalue = rtl_get_bbreg(hw, 0x800, MASKDWORD); | ||
1538 | |||
1539 | phy_save_adda_regs(hw, adda_reg, rtlphy->adda_backup, 16); | 1530 | phy_save_adda_regs(hw, adda_reg, rtlphy->adda_backup, 16); |
1540 | phy_save_mac_regs(hw, iqk_mac_reg, rtlphy->iqk_mac_backup); | 1531 | phy_save_mac_regs(hw, iqk_mac_reg, rtlphy->iqk_mac_backup); |
1541 | } | 1532 | } |
@@ -1712,8 +1703,7 @@ void rtl8723ae_phy_iq_calibrate(struct ieee80211_hw *hw, bool recovery) | |||
1712 | long result[4][8]; | 1703 | long result[4][8]; |
1713 | u8 i, final_candidate; | 1704 | u8 i, final_candidate; |
1714 | bool patha_ok, pathb_ok; | 1705 | bool patha_ok, pathb_ok; |
1715 | long reg_e94, reg_e9c, reg_ea4, reg_eac, reg_eb4, reg_ebc, reg_ec4, | 1706 | long reg_e94, reg_e9c, reg_ea4, reg_eb4, reg_ebc, reg_tmp = 0; |
1716 | reg_ecc, reg_tmp = 0; | ||
1717 | bool is12simular, is13simular, is23simular; | 1707 | bool is12simular, is13simular, is23simular; |
1718 | bool start_conttx = false, singletone = false; | 1708 | bool start_conttx = false, singletone = false; |
1719 | u32 iqk_bb_reg[10] = { | 1709 | u32 iqk_bb_reg[10] = { |
@@ -1780,21 +1770,15 @@ void rtl8723ae_phy_iq_calibrate(struct ieee80211_hw *hw, bool recovery) | |||
1780 | reg_e94 = result[i][0]; | 1770 | reg_e94 = result[i][0]; |
1781 | reg_e9c = result[i][1]; | 1771 | reg_e9c = result[i][1]; |
1782 | reg_ea4 = result[i][2]; | 1772 | reg_ea4 = result[i][2]; |
1783 | reg_eac = result[i][3]; | ||
1784 | reg_eb4 = result[i][4]; | 1773 | reg_eb4 = result[i][4]; |
1785 | reg_ebc = result[i][5]; | 1774 | reg_ebc = result[i][5]; |
1786 | reg_ec4 = result[i][6]; | ||
1787 | reg_ecc = result[i][7]; | ||
1788 | } | 1775 | } |
1789 | if (final_candidate != 0xff) { | 1776 | if (final_candidate != 0xff) { |
1790 | rtlphy->reg_e94 = reg_e94 = result[final_candidate][0]; | 1777 | rtlphy->reg_e94 = reg_e94 = result[final_candidate][0]; |
1791 | rtlphy->reg_e9c = reg_e9c = result[final_candidate][1]; | 1778 | rtlphy->reg_e9c = reg_e9c = result[final_candidate][1]; |
1792 | reg_ea4 = result[final_candidate][2]; | 1779 | reg_ea4 = result[final_candidate][2]; |
1793 | reg_eac = result[final_candidate][3]; | ||
1794 | rtlphy->reg_eb4 = reg_eb4 = result[final_candidate][4]; | 1780 | rtlphy->reg_eb4 = reg_eb4 = result[final_candidate][4]; |
1795 | rtlphy->reg_ebc = reg_ebc = result[final_candidate][5]; | 1781 | rtlphy->reg_ebc = reg_ebc = result[final_candidate][5]; |
1796 | reg_ec4 = result[final_candidate][6]; | ||
1797 | reg_ecc = result[final_candidate][7]; | ||
1798 | patha_ok = pathb_ok = true; | 1782 | patha_ok = pathb_ok = true; |
1799 | } else { | 1783 | } else { |
1800 | rtlphy->reg_e94 = rtlphy->reg_eb4 = 0x100; | 1784 | rtlphy->reg_e94 = rtlphy->reg_eb4 = 0x100; |
diff --git a/drivers/net/wireless/rtlwifi/rtl8723ae/trx.c b/drivers/net/wireless/rtlwifi/rtl8723ae/trx.c index ce8ad12bce5b..b1fd2b328abf 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723ae/trx.c +++ b/drivers/net/wireless/rtlwifi/rtl8723ae/trx.c | |||
@@ -244,7 +244,6 @@ static void _rtl8723ae_translate_rx_signal_stuff(struct ieee80211_hw *hw, | |||
244 | struct ieee80211_hdr *hdr; | 244 | struct ieee80211_hdr *hdr; |
245 | u8 *tmp_buf; | 245 | u8 *tmp_buf; |
246 | u8 *praddr; | 246 | u8 *praddr; |
247 | u8 *psaddr; | ||
248 | __le16 fc; | 247 | __le16 fc; |
249 | u16 type; | 248 | u16 type; |
250 | bool packet_matchbssid, packet_toself, packet_beacon = false; | 249 | bool packet_matchbssid, packet_toself, packet_beacon = false; |
@@ -255,7 +254,6 @@ static void _rtl8723ae_translate_rx_signal_stuff(struct ieee80211_hw *hw, | |||
255 | fc = hdr->frame_control; | 254 | fc = hdr->frame_control; |
256 | type = WLAN_FC_GET_TYPE(fc); | 255 | type = WLAN_FC_GET_TYPE(fc); |
257 | praddr = hdr->addr1; | 256 | praddr = hdr->addr1; |
258 | psaddr = ieee80211_get_SA(hdr); | ||
259 | 257 | ||
260 | packet_matchbssid = ((IEEE80211_FTYPE_CTL != type) && | 258 | packet_matchbssid = ((IEEE80211_FTYPE_CTL != type) && |
261 | (!compare_ether_addr(mac->bssid, | 259 | (!compare_ether_addr(mac->bssid, |
diff --git a/drivers/net/wireless/rtlwifi/usb.c b/drivers/net/wireless/rtlwifi/usb.c index 1535efda3d52..d42bbe21ba6e 100644 --- a/drivers/net/wireless/rtlwifi/usb.c +++ b/drivers/net/wireless/rtlwifi/usb.c | |||
@@ -825,8 +825,6 @@ static void _rtl_usb_transmit(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
825 | u32 ep_num; | 825 | u32 ep_num; |
826 | struct urb *_urb = NULL; | 826 | struct urb *_urb = NULL; |
827 | struct sk_buff *_skb = NULL; | 827 | struct sk_buff *_skb = NULL; |
828 | struct sk_buff_head *skb_list; | ||
829 | struct usb_anchor *urb_list; | ||
830 | 828 | ||
831 | WARN_ON(NULL == rtlusb->usb_tx_aggregate_hdl); | 829 | WARN_ON(NULL == rtlusb->usb_tx_aggregate_hdl); |
832 | if (unlikely(IS_USB_STOP(rtlusb))) { | 830 | if (unlikely(IS_USB_STOP(rtlusb))) { |
@@ -836,7 +834,6 @@ static void _rtl_usb_transmit(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
836 | return; | 834 | return; |
837 | } | 835 | } |
838 | ep_num = rtlusb->ep_map.ep_mapping[qnum]; | 836 | ep_num = rtlusb->ep_map.ep_mapping[qnum]; |
839 | skb_list = &rtlusb->tx_skb_queue[ep_num]; | ||
840 | _skb = skb; | 837 | _skb = skb; |
841 | _urb = _rtl_usb_tx_urb_setup(hw, _skb, ep_num); | 838 | _urb = _rtl_usb_tx_urb_setup(hw, _skb, ep_num); |
842 | if (unlikely(!_urb)) { | 839 | if (unlikely(!_urb)) { |
@@ -844,7 +841,6 @@ static void _rtl_usb_transmit(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
844 | "Can't allocate urb. Drop skb!\n"); | 841 | "Can't allocate urb. Drop skb!\n"); |
845 | return; | 842 | return; |
846 | } | 843 | } |
847 | urb_list = &rtlusb->tx_pending[ep_num]; | ||
848 | _rtl_submit_tx_urb(hw, _urb); | 844 | _rtl_submit_tx_urb(hw, _urb); |
849 | } | 845 | } |
850 | 846 | ||
diff --git a/drivers/net/wireless/rtlwifi/wifi.h b/drivers/net/wireless/rtlwifi/wifi.h index 21a5f4f4a135..f13258a8d995 100644 --- a/drivers/net/wireless/rtlwifi/wifi.h +++ b/drivers/net/wireless/rtlwifi/wifi.h | |||
@@ -1702,7 +1702,7 @@ struct rtl_works { | |||
1702 | 1702 | ||
1703 | struct rtl_debug { | 1703 | struct rtl_debug { |
1704 | u32 dbgp_type[DBGP_TYPE_MAX]; | 1704 | u32 dbgp_type[DBGP_TYPE_MAX]; |
1705 | u32 global_debuglevel; | 1705 | int global_debuglevel; |
1706 | u64 global_debugcomponents; | 1706 | u64 global_debugcomponents; |
1707 | 1707 | ||
1708 | /* add for proc debug */ | 1708 | /* add for proc debug */ |