diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi')
-rw-r--r-- | drivers/net/wireless/rtlwifi/base.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/core.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/pci.c | 16 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192ce/trx.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/trx.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/trx.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192de/trx.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192de/trx.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192se/trx.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192se/trx.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/usb.c | 15 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/wifi.h | 13 |
13 files changed, 51 insertions, 31 deletions
diff --git a/drivers/net/wireless/rtlwifi/base.c b/drivers/net/wireless/rtlwifi/base.c index 942e56b77b60..59381fe8ed06 100644 --- a/drivers/net/wireless/rtlwifi/base.c +++ b/drivers/net/wireless/rtlwifi/base.c | |||
@@ -1341,9 +1341,8 @@ int rtl_send_smps_action(struct ieee80211_hw *hw, | |||
1341 | rtlpriv->cfg->ops->update_rate_tbl(hw, sta, 0); | 1341 | rtlpriv->cfg->ops->update_rate_tbl(hw, sta, 0); |
1342 | 1342 | ||
1343 | info->control.rates[0].idx = 0; | 1343 | info->control.rates[0].idx = 0; |
1344 | info->control.sta = sta; | ||
1345 | info->band = hw->conf.channel->band; | 1344 | info->band = hw->conf.channel->band; |
1346 | rtlpriv->intf_ops->adapter_tx(hw, skb, &tcb_desc); | 1345 | rtlpriv->intf_ops->adapter_tx(hw, sta, skb, &tcb_desc); |
1347 | } | 1346 | } |
1348 | err_free: | 1347 | err_free: |
1349 | return 0; | 1348 | return 0; |
diff --git a/drivers/net/wireless/rtlwifi/core.c b/drivers/net/wireless/rtlwifi/core.c index a18ad2a98938..a7c0e52869ba 100644 --- a/drivers/net/wireless/rtlwifi/core.c +++ b/drivers/net/wireless/rtlwifi/core.c | |||
@@ -124,7 +124,9 @@ static void rtl_op_stop(struct ieee80211_hw *hw) | |||
124 | mutex_unlock(&rtlpriv->locks.conf_mutex); | 124 | mutex_unlock(&rtlpriv->locks.conf_mutex); |
125 | } | 125 | } |
126 | 126 | ||
127 | static void rtl_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | 127 | static void rtl_op_tx(struct ieee80211_hw *hw, |
128 | struct ieee80211_tx_control *control, | ||
129 | struct sk_buff *skb) | ||
128 | { | 130 | { |
129 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 131 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
130 | struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); | 132 | struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); |
@@ -138,8 +140,8 @@ static void rtl_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
138 | if (!test_bit(RTL_STATUS_INTERFACE_START, &rtlpriv->status)) | 140 | if (!test_bit(RTL_STATUS_INTERFACE_START, &rtlpriv->status)) |
139 | goto err_free; | 141 | goto err_free; |
140 | 142 | ||
141 | if (!rtlpriv->intf_ops->waitq_insert(hw, skb)) | 143 | if (!rtlpriv->intf_ops->waitq_insert(hw, control->sta, skb)) |
142 | rtlpriv->intf_ops->adapter_tx(hw, skb, &tcb_desc); | 144 | rtlpriv->intf_ops->adapter_tx(hw, control->sta, skb, &tcb_desc); |
143 | 145 | ||
144 | return; | 146 | return; |
145 | 147 | ||
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c index 80f75d3ba84a..aad9d44c0a51 100644 --- a/drivers/net/wireless/rtlwifi/pci.c +++ b/drivers/net/wireless/rtlwifi/pci.c | |||
@@ -504,7 +504,7 @@ static void _rtl_pci_tx_chk_waitq(struct ieee80211_hw *hw) | |||
504 | _rtl_update_earlymode_info(hw, skb, | 504 | _rtl_update_earlymode_info(hw, skb, |
505 | &tcb_desc, tid); | 505 | &tcb_desc, tid); |
506 | 506 | ||
507 | rtlpriv->intf_ops->adapter_tx(hw, skb, &tcb_desc); | 507 | rtlpriv->intf_ops->adapter_tx(hw, NULL, skb, &tcb_desc); |
508 | } | 508 | } |
509 | } | 509 | } |
510 | } | 510 | } |
@@ -929,7 +929,7 @@ static void _rtl_pci_prepare_bcn_tasklet(struct ieee80211_hw *hw) | |||
929 | info = IEEE80211_SKB_CB(pskb); | 929 | info = IEEE80211_SKB_CB(pskb); |
930 | pdesc = &ring->desc[0]; | 930 | pdesc = &ring->desc[0]; |
931 | rtlpriv->cfg->ops->fill_tx_desc(hw, hdr, (u8 *) pdesc, | 931 | rtlpriv->cfg->ops->fill_tx_desc(hw, hdr, (u8 *) pdesc, |
932 | info, pskb, BEACON_QUEUE, &tcb_desc); | 932 | info, NULL, pskb, BEACON_QUEUE, &tcb_desc); |
933 | 933 | ||
934 | __skb_queue_tail(&ring->queue, pskb); | 934 | __skb_queue_tail(&ring->queue, pskb); |
935 | 935 | ||
@@ -1305,11 +1305,10 @@ int rtl_pci_reset_trx_ring(struct ieee80211_hw *hw) | |||
1305 | } | 1305 | } |
1306 | 1306 | ||
1307 | static bool rtl_pci_tx_chk_waitq_insert(struct ieee80211_hw *hw, | 1307 | static bool rtl_pci_tx_chk_waitq_insert(struct ieee80211_hw *hw, |
1308 | struct ieee80211_sta *sta, | ||
1308 | struct sk_buff *skb) | 1309 | struct sk_buff *skb) |
1309 | { | 1310 | { |
1310 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 1311 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
1311 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); | ||
1312 | struct ieee80211_sta *sta = info->control.sta; | ||
1313 | struct rtl_sta_info *sta_entry = NULL; | 1312 | struct rtl_sta_info *sta_entry = NULL; |
1314 | u8 tid = rtl_get_tid(skb); | 1313 | u8 tid = rtl_get_tid(skb); |
1315 | 1314 | ||
@@ -1337,13 +1336,14 @@ static bool rtl_pci_tx_chk_waitq_insert(struct ieee80211_hw *hw, | |||
1337 | return true; | 1336 | return true; |
1338 | } | 1337 | } |
1339 | 1338 | ||
1340 | static int rtl_pci_tx(struct ieee80211_hw *hw, struct sk_buff *skb, | 1339 | static int rtl_pci_tx(struct ieee80211_hw *hw, |
1341 | struct rtl_tcb_desc *ptcb_desc) | 1340 | struct ieee80211_sta *sta, |
1341 | struct sk_buff *skb, | ||
1342 | struct rtl_tcb_desc *ptcb_desc) | ||
1342 | { | 1343 | { |
1343 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 1344 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
1344 | struct rtl_sta_info *sta_entry = NULL; | 1345 | struct rtl_sta_info *sta_entry = NULL; |
1345 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); | 1346 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); |
1346 | struct ieee80211_sta *sta = info->control.sta; | ||
1347 | struct rtl8192_tx_ring *ring; | 1347 | struct rtl8192_tx_ring *ring; |
1348 | struct rtl_tx_desc *pdesc; | 1348 | struct rtl_tx_desc *pdesc; |
1349 | u8 idx; | 1349 | u8 idx; |
@@ -1418,7 +1418,7 @@ static int rtl_pci_tx(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
1418 | rtlpriv->cfg->ops->led_control(hw, LED_CTL_TX); | 1418 | rtlpriv->cfg->ops->led_control(hw, LED_CTL_TX); |
1419 | 1419 | ||
1420 | rtlpriv->cfg->ops->fill_tx_desc(hw, hdr, (u8 *)pdesc, | 1420 | rtlpriv->cfg->ops->fill_tx_desc(hw, hdr, (u8 *)pdesc, |
1421 | info, skb, hw_queue, ptcb_desc); | 1421 | info, sta, skb, hw_queue, ptcb_desc); |
1422 | 1422 | ||
1423 | __skb_queue_tail(&ring->queue, skb); | 1423 | __skb_queue_tail(&ring->queue, skb); |
1424 | 1424 | ||
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c index 52166640f167..390d6d4fcaa0 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c +++ b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | |||
@@ -596,7 +596,9 @@ bool rtl92ce_rx_query_desc(struct ieee80211_hw *hw, | |||
596 | 596 | ||
597 | void rtl92ce_tx_fill_desc(struct ieee80211_hw *hw, | 597 | void rtl92ce_tx_fill_desc(struct ieee80211_hw *hw, |
598 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, | 598 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, |
599 | struct ieee80211_tx_info *info, struct sk_buff *skb, | 599 | struct ieee80211_tx_info *info, |
600 | struct ieee80211_sta *sta, | ||
601 | struct sk_buff *skb, | ||
600 | u8 hw_queue, struct rtl_tcb_desc *tcb_desc) | 602 | u8 hw_queue, struct rtl_tcb_desc *tcb_desc) |
601 | { | 603 | { |
602 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 604 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
@@ -604,7 +606,6 @@ void rtl92ce_tx_fill_desc(struct ieee80211_hw *hw, | |||
604 | struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); | 606 | struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); |
605 | struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); | 607 | struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); |
606 | bool defaultadapter = true; | 608 | bool defaultadapter = true; |
607 | struct ieee80211_sta *sta; | ||
608 | u8 *pdesc = pdesc_tx; | 609 | u8 *pdesc = pdesc_tx; |
609 | u16 seq_number; | 610 | u16 seq_number; |
610 | __le16 fc = hdr->frame_control; | 611 | __le16 fc = hdr->frame_control; |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.h b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.h index c4adb9777365..a7cdd514cb2e 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.h +++ b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.h | |||
@@ -713,6 +713,7 @@ struct rx_desc_92c { | |||
713 | void rtl92ce_tx_fill_desc(struct ieee80211_hw *hw, | 713 | void rtl92ce_tx_fill_desc(struct ieee80211_hw *hw, |
714 | struct ieee80211_hdr *hdr, | 714 | struct ieee80211_hdr *hdr, |
715 | u8 *pdesc, struct ieee80211_tx_info *info, | 715 | u8 *pdesc, struct ieee80211_tx_info *info, |
716 | struct ieee80211_sta *sta, | ||
716 | struct sk_buff *skb, u8 hw_queue, | 717 | struct sk_buff *skb, u8 hw_queue, |
717 | struct rtl_tcb_desc *ptcb_desc); | 718 | struct rtl_tcb_desc *ptcb_desc); |
718 | bool rtl92ce_rx_query_desc(struct ieee80211_hw *hw, | 719 | bool rtl92ce_rx_query_desc(struct ieee80211_hw *hw, |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c index 2e6eb356a93e..27863d773790 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c | |||
@@ -496,7 +496,9 @@ static void _rtl_tx_desc_checksum(u8 *txdesc) | |||
496 | 496 | ||
497 | void rtl92cu_tx_fill_desc(struct ieee80211_hw *hw, | 497 | void rtl92cu_tx_fill_desc(struct ieee80211_hw *hw, |
498 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, | 498 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, |
499 | struct ieee80211_tx_info *info, struct sk_buff *skb, | 499 | struct ieee80211_tx_info *info, |
500 | struct ieee80211_sta *sta, | ||
501 | struct sk_buff *skb, | ||
500 | u8 queue_index, | 502 | u8 queue_index, |
501 | struct rtl_tcb_desc *tcb_desc) | 503 | struct rtl_tcb_desc *tcb_desc) |
502 | { | 504 | { |
@@ -504,7 +506,6 @@ void rtl92cu_tx_fill_desc(struct ieee80211_hw *hw, | |||
504 | struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); | 506 | struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); |
505 | struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); | 507 | struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); |
506 | bool defaultadapter = true; | 508 | bool defaultadapter = true; |
507 | struct ieee80211_sta *sta = info->control.sta = info->control.sta; | ||
508 | u8 *qc = ieee80211_get_qos_ctl(hdr); | 509 | u8 *qc = ieee80211_get_qos_ctl(hdr); |
509 | u8 tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; | 510 | u8 tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; |
510 | u16 seq_number; | 511 | u16 seq_number; |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.h b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.h index 332b06e78b00..725c53accc58 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.h +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.h | |||
@@ -420,7 +420,9 @@ struct sk_buff *rtl8192c_tx_aggregate_hdl(struct ieee80211_hw *, | |||
420 | struct sk_buff_head *); | 420 | struct sk_buff_head *); |
421 | void rtl92cu_tx_fill_desc(struct ieee80211_hw *hw, | 421 | void rtl92cu_tx_fill_desc(struct ieee80211_hw *hw, |
422 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, | 422 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, |
423 | struct ieee80211_tx_info *info, struct sk_buff *skb, | 423 | struct ieee80211_tx_info *info, |
424 | struct ieee80211_sta *sta, | ||
425 | struct sk_buff *skb, | ||
424 | u8 queue_index, | 426 | u8 queue_index, |
425 | struct rtl_tcb_desc *tcb_desc); | 427 | struct rtl_tcb_desc *tcb_desc); |
426 | void rtl92cu_fill_fake_txdesc(struct ieee80211_hw *hw, u8 * pDesc, | 428 | void rtl92cu_fill_fake_txdesc(struct ieee80211_hw *hw, u8 * pDesc, |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/trx.c b/drivers/net/wireless/rtlwifi/rtl8192de/trx.c index f80690d82c11..4686f340b9d6 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192de/trx.c +++ b/drivers/net/wireless/rtlwifi/rtl8192de/trx.c | |||
@@ -551,7 +551,9 @@ static void _rtl92de_insert_emcontent(struct rtl_tcb_desc *ptcb_desc, | |||
551 | 551 | ||
552 | void rtl92de_tx_fill_desc(struct ieee80211_hw *hw, | 552 | void rtl92de_tx_fill_desc(struct ieee80211_hw *hw, |
553 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, | 553 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, |
554 | struct ieee80211_tx_info *info, struct sk_buff *skb, | 554 | struct ieee80211_tx_info *info, |
555 | struct ieee80211_sta *sta, | ||
556 | struct sk_buff *skb, | ||
555 | u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) | 557 | u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) |
556 | { | 558 | { |
557 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 559 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
@@ -559,7 +561,6 @@ void rtl92de_tx_fill_desc(struct ieee80211_hw *hw, | |||
559 | struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); | 561 | struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); |
560 | struct rtl_hal *rtlhal = rtl_hal(rtlpriv); | 562 | struct rtl_hal *rtlhal = rtl_hal(rtlpriv); |
561 | struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); | 563 | struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); |
562 | struct ieee80211_sta *sta = info->control.sta; | ||
563 | u8 *pdesc = pdesc_tx; | 564 | u8 *pdesc = pdesc_tx; |
564 | u16 seq_number; | 565 | u16 seq_number; |
565 | __le16 fc = hdr->frame_control; | 566 | __le16 fc = hdr->frame_control; |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/trx.h b/drivers/net/wireless/rtlwifi/rtl8192de/trx.h index 057a52431b00..c1b5dfb79d53 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192de/trx.h +++ b/drivers/net/wireless/rtlwifi/rtl8192de/trx.h | |||
@@ -730,6 +730,7 @@ struct rx_desc_92d { | |||
730 | void rtl92de_tx_fill_desc(struct ieee80211_hw *hw, | 730 | void rtl92de_tx_fill_desc(struct ieee80211_hw *hw, |
731 | struct ieee80211_hdr *hdr, | 731 | struct ieee80211_hdr *hdr, |
732 | u8 *pdesc, struct ieee80211_tx_info *info, | 732 | u8 *pdesc, struct ieee80211_tx_info *info, |
733 | struct ieee80211_sta *sta, | ||
733 | struct sk_buff *skb, u8 hw_queue, | 734 | struct sk_buff *skb, u8 hw_queue, |
734 | struct rtl_tcb_desc *ptcb_desc); | 735 | struct rtl_tcb_desc *ptcb_desc); |
735 | bool rtl92de_rx_query_desc(struct ieee80211_hw *hw, | 736 | bool rtl92de_rx_query_desc(struct ieee80211_hw *hw, |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/trx.c b/drivers/net/wireless/rtlwifi/rtl8192se/trx.c index 36d1cb3aef8a..28c53fb12aeb 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192se/trx.c +++ b/drivers/net/wireless/rtlwifi/rtl8192se/trx.c | |||
@@ -591,14 +591,15 @@ bool rtl92se_rx_query_desc(struct ieee80211_hw *hw, struct rtl_stats *stats, | |||
591 | 591 | ||
592 | void rtl92se_tx_fill_desc(struct ieee80211_hw *hw, | 592 | void rtl92se_tx_fill_desc(struct ieee80211_hw *hw, |
593 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, | 593 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, |
594 | struct ieee80211_tx_info *info, struct sk_buff *skb, | 594 | struct ieee80211_tx_info *info, |
595 | struct ieee80211_sta *sta, | ||
596 | struct sk_buff *skb, | ||
595 | u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) | 597 | u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) |
596 | { | 598 | { |
597 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 599 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
598 | struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); | 600 | struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); |
599 | struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); | 601 | struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); |
600 | struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); | 602 | struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); |
601 | struct ieee80211_sta *sta = info->control.sta; | ||
602 | u8 *pdesc = pdesc_tx; | 603 | u8 *pdesc = pdesc_tx; |
603 | u16 seq_number; | 604 | u16 seq_number; |
604 | __le16 fc = hdr->frame_control; | 605 | __le16 fc = hdr->frame_control; |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/trx.h b/drivers/net/wireless/rtlwifi/rtl8192se/trx.h index 011e7b0695f2..64dd66f287c1 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192se/trx.h +++ b/drivers/net/wireless/rtlwifi/rtl8192se/trx.h | |||
@@ -31,6 +31,7 @@ | |||
31 | 31 | ||
32 | void rtl92se_tx_fill_desc(struct ieee80211_hw *hw, struct ieee80211_hdr *hdr, | 32 | void rtl92se_tx_fill_desc(struct ieee80211_hw *hw, struct ieee80211_hdr *hdr, |
33 | u8 *pdesc, struct ieee80211_tx_info *info, | 33 | u8 *pdesc, struct ieee80211_tx_info *info, |
34 | struct ieee80211_sta *sta, | ||
34 | struct sk_buff *skb, u8 hw_queue, | 35 | struct sk_buff *skb, u8 hw_queue, |
35 | struct rtl_tcb_desc *ptcb_desc); | 36 | struct rtl_tcb_desc *ptcb_desc); |
36 | void rtl92se_tx_fill_cmddesc(struct ieee80211_hw *hw, u8 *pdesc, bool firstseg, | 37 | void rtl92se_tx_fill_cmddesc(struct ieee80211_hw *hw, u8 *pdesc, bool firstseg, |
diff --git a/drivers/net/wireless/rtlwifi/usb.c b/drivers/net/wireless/rtlwifi/usb.c index aa970fc18a21..914046903cfd 100644 --- a/drivers/net/wireless/rtlwifi/usb.c +++ b/drivers/net/wireless/rtlwifi/usb.c | |||
@@ -848,8 +848,10 @@ static void _rtl_usb_transmit(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
848 | _rtl_submit_tx_urb(hw, _urb); | 848 | _rtl_submit_tx_urb(hw, _urb); |
849 | } | 849 | } |
850 | 850 | ||
851 | static void _rtl_usb_tx_preprocess(struct ieee80211_hw *hw, struct sk_buff *skb, | 851 | static void _rtl_usb_tx_preprocess(struct ieee80211_hw *hw, |
852 | u16 hw_queue) | 852 | struct ieee80211_sta *sta, |
853 | struct sk_buff *skb, | ||
854 | u16 hw_queue) | ||
853 | { | 855 | { |
854 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 856 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
855 | struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); | 857 | struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); |
@@ -891,7 +893,7 @@ static void _rtl_usb_tx_preprocess(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
891 | seq_number += 1; | 893 | seq_number += 1; |
892 | seq_number <<= 4; | 894 | seq_number <<= 4; |
893 | } | 895 | } |
894 | rtlpriv->cfg->ops->fill_tx_desc(hw, hdr, (u8 *)pdesc, info, skb, | 896 | rtlpriv->cfg->ops->fill_tx_desc(hw, hdr, (u8 *)pdesc, info, sta, skb, |
895 | hw_queue, &tcb_desc); | 897 | hw_queue, &tcb_desc); |
896 | if (!ieee80211_has_morefrags(hdr->frame_control)) { | 898 | if (!ieee80211_has_morefrags(hdr->frame_control)) { |
897 | if (qc) | 899 | if (qc) |
@@ -901,7 +903,9 @@ static void _rtl_usb_tx_preprocess(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
901 | rtlpriv->cfg->ops->led_control(hw, LED_CTL_TX); | 903 | rtlpriv->cfg->ops->led_control(hw, LED_CTL_TX); |
902 | } | 904 | } |
903 | 905 | ||
904 | static int rtl_usb_tx(struct ieee80211_hw *hw, struct sk_buff *skb, | 906 | static int rtl_usb_tx(struct ieee80211_hw *hw, |
907 | struct ieee80211_sta *sta, | ||
908 | struct sk_buff *skb, | ||
905 | struct rtl_tcb_desc *dummy) | 909 | struct rtl_tcb_desc *dummy) |
906 | { | 910 | { |
907 | struct rtl_usb *rtlusb = rtl_usbdev(rtl_usbpriv(hw)); | 911 | struct rtl_usb *rtlusb = rtl_usbdev(rtl_usbpriv(hw)); |
@@ -913,7 +917,7 @@ static int rtl_usb_tx(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
913 | if (unlikely(is_hal_stop(rtlhal))) | 917 | if (unlikely(is_hal_stop(rtlhal))) |
914 | goto err_free; | 918 | goto err_free; |
915 | hw_queue = rtlusb->usb_mq_to_hwq(fc, skb_get_queue_mapping(skb)); | 919 | hw_queue = rtlusb->usb_mq_to_hwq(fc, skb_get_queue_mapping(skb)); |
916 | _rtl_usb_tx_preprocess(hw, skb, hw_queue); | 920 | _rtl_usb_tx_preprocess(hw, sta, skb, hw_queue); |
917 | _rtl_usb_transmit(hw, skb, hw_queue); | 921 | _rtl_usb_transmit(hw, skb, hw_queue); |
918 | return NETDEV_TX_OK; | 922 | return NETDEV_TX_OK; |
919 | 923 | ||
@@ -923,6 +927,7 @@ err_free: | |||
923 | } | 927 | } |
924 | 928 | ||
925 | static bool rtl_usb_tx_chk_waitq_insert(struct ieee80211_hw *hw, | 929 | static bool rtl_usb_tx_chk_waitq_insert(struct ieee80211_hw *hw, |
930 | struct ieee80211_sta *sta, | ||
926 | struct sk_buff *skb) | 931 | struct sk_buff *skb) |
927 | { | 932 | { |
928 | return false; | 933 | return false; |
diff --git a/drivers/net/wireless/rtlwifi/wifi.h b/drivers/net/wireless/rtlwifi/wifi.h index cdaa21f29710..40153e7bf702 100644 --- a/drivers/net/wireless/rtlwifi/wifi.h +++ b/drivers/net/wireless/rtlwifi/wifi.h | |||
@@ -122,7 +122,7 @@ enum rt_eeprom_type { | |||
122 | EEPROM_BOOT_EFUSE, | 122 | EEPROM_BOOT_EFUSE, |
123 | }; | 123 | }; |
124 | 124 | ||
125 | enum rtl_status { | 125 | enum ttl_status { |
126 | RTL_STATUS_INTERFACE_START = 0, | 126 | RTL_STATUS_INTERFACE_START = 0, |
127 | }; | 127 | }; |
128 | 128 | ||
@@ -1418,6 +1418,7 @@ struct rtl_hal_ops { | |||
1418 | void (*fill_tx_desc) (struct ieee80211_hw *hw, | 1418 | void (*fill_tx_desc) (struct ieee80211_hw *hw, |
1419 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, | 1419 | struct ieee80211_hdr *hdr, u8 *pdesc_tx, |
1420 | struct ieee80211_tx_info *info, | 1420 | struct ieee80211_tx_info *info, |
1421 | struct ieee80211_sta *sta, | ||
1421 | struct sk_buff *skb, u8 hw_queue, | 1422 | struct sk_buff *skb, u8 hw_queue, |
1422 | struct rtl_tcb_desc *ptcb_desc); | 1423 | struct rtl_tcb_desc *ptcb_desc); |
1423 | void (*fill_fake_txdesc) (struct ieee80211_hw *hw, u8 *pDesc, | 1424 | void (*fill_fake_txdesc) (struct ieee80211_hw *hw, u8 *pDesc, |
@@ -1475,11 +1476,15 @@ struct rtl_intf_ops { | |||
1475 | int (*adapter_start) (struct ieee80211_hw *hw); | 1476 | int (*adapter_start) (struct ieee80211_hw *hw); |
1476 | void (*adapter_stop) (struct ieee80211_hw *hw); | 1477 | void (*adapter_stop) (struct ieee80211_hw *hw); |
1477 | 1478 | ||
1478 | int (*adapter_tx) (struct ieee80211_hw *hw, struct sk_buff *skb, | 1479 | int (*adapter_tx) (struct ieee80211_hw *hw, |
1479 | struct rtl_tcb_desc *ptcb_desc); | 1480 | struct ieee80211_sta *sta, |
1481 | struct sk_buff *skb, | ||
1482 | struct rtl_tcb_desc *ptcb_desc); | ||
1480 | void (*flush)(struct ieee80211_hw *hw, bool drop); | 1483 | void (*flush)(struct ieee80211_hw *hw, bool drop); |
1481 | int (*reset_trx_ring) (struct ieee80211_hw *hw); | 1484 | int (*reset_trx_ring) (struct ieee80211_hw *hw); |
1482 | bool (*waitq_insert) (struct ieee80211_hw *hw, struct sk_buff *skb); | 1485 | bool (*waitq_insert) (struct ieee80211_hw *hw, |
1486 | struct ieee80211_sta *sta, | ||
1487 | struct sk_buff *skb); | ||
1483 | 1488 | ||
1484 | /*pci */ | 1489 | /*pci */ |
1485 | void (*disable_aspm) (struct ieee80211_hw *hw); | 1490 | void (*disable_aspm) (struct ieee80211_hw *hw); |