r8192e_pci driver broken 3.14+
Sean MacLennan
seanm at seanm.ca
Sat Apr 19 18:10:37 UTC 2014
A sparse error fixup removed a htons() which is required for the driver
to function. Put the htons() back.
Signed-off-by: Sean MacLennan <seanm at seanm.ca>
---
diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192e/rtllib_tx.c
index 11d0a9d..3e79bff 100644
--- a/drivers/staging/rtl8192e/rtllib_tx.c
+++ b/drivers/staging/rtl8192e/rtllib_tx.c
@@ -171,7 +171,7 @@ inline int rtllib_put_snap(u8 *data, u16 h_proto)
snap->oui[1] = oui[1];
snap->oui[2] = oui[2];
- *(u16 *)(data + SNAP_SIZE) = h_proto;
+ *(u16 *)(data + SNAP_SIZE) = htons(h_proto);
return SNAP_SIZE + sizeof(u16);
}
More information about the devel
mailing list