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

staging: rtl8723au: Do not byteswap timeout twice

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a113b53c
...@@ -3767,7 +3767,6 @@ void issue_action_BA23a(struct rtw_adapter *padapter, ...@@ -3767,7 +3767,6 @@ void issue_action_BA23a(struct rtw_adapter *padapter,
{ {
u16 start_seq; u16 start_seq;
u16 BA_para_set; u16 BA_para_set;
u16 BA_timeout_value;
u16 BA_starting_seqctrl; u16 BA_starting_seqctrl;
u16 BA_para; u16 BA_para;
int max_rx_ampdu_factor; int max_rx_ampdu_factor;
...@@ -3848,10 +3847,8 @@ void issue_action_BA23a(struct rtw_adapter *padapter, ...@@ -3848,10 +3847,8 @@ void issue_action_BA23a(struct rtw_adapter *padapter,
put_unaligned_le16(BA_para_set, put_unaligned_le16(BA_para_set,
&mgmt->u.action.u.addba_req.capab); &mgmt->u.action.u.addba_req.capab);
BA_timeout_value = 5000;/* 5ms */ /* 5ms */
BA_timeout_value = cpu_to_le16(BA_timeout_value); put_unaligned_le16(5000, &mgmt->u.action.u.addba_req.timeout);
put_unaligned_le16(BA_timeout_value,
&mgmt->u.action.u.addba_req.timeout);
psta = rtw_get_stainfo23a(pstapriv, raddr); psta = rtw_get_stainfo23a(pstapriv, raddr);
if (psta) { if (psta) {
......
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