Staging: rtl8192e: Revert one previous commit

This patch reverts commit  450246465a ("Staging: rtl8192e:
Fix incorrect type in assignment in rtl819x_BAProc.c") as it is
changing code and introducing bug to skip the endian conversion.
Here, tmp variable is used to hold the endian-corrected values
and network-data requires fixed endianness.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Vaishali Thakkar 2014-10-29 19:30:41 +05:30 committed by Greg Kroah-Hartman
parent 92be2d4d3c
commit c65a5a562e
1 changed files with 5 additions and 5 deletions

View File

@ -115,14 +115,14 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst,
if (ACT_ADDBARSP == type) {
RT_TRACE(COMP_DBG, "====>to send ADDBARSP\n");
tmp = StatusCode;
tmp = cpu_to_le16(StatusCode);
memcpy(tag, (u8 *)&tmp, 2);
tag += 2;
}
tmp = pBA->BaParamSet.shortData;
tmp = cpu_to_le16(pBA->BaParamSet.shortData);
memcpy(tag, (u8 *)&tmp, 2);
tag += 2;
tmp = pBA->BaTimeoutValue;
tmp = cpu_to_le16(pBA->BaTimeoutValue);
memcpy(tag, (u8 *)&tmp, 2);
tag += 2;
@ -178,10 +178,10 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,
*tag++ = ACT_CAT_BA;
*tag++ = ACT_DELBA;
tmp = DelbaParamSet.shortData;
tmp = cpu_to_le16(DelbaParamSet.shortData);
memcpy(tag, (u8 *)&tmp, 2);
tag += 2;
tmp = ReasonCode;
tmp = cpu_to_le16(ReasonCode);
memcpy(tag, (u8 *)&tmp, 2);
tag += 2;