DRIVER: Libertas: Fixed coding style in rx.c
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
200763bb75
commit
819cf15e7c
@@ -196,7 +196,7 @@ int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *skb)
|
|||||||
* before the snap_type.
|
* before the snap_type.
|
||||||
*/
|
*/
|
||||||
p_ethhdr = (struct ethhdr *)
|
p_ethhdr = (struct ethhdr *)
|
||||||
((u8 *) & p_rx_pkt->eth803_hdr
|
((u8 *) &p_rx_pkt->eth803_hdr
|
||||||
+ sizeof(p_rx_pkt->eth803_hdr) + sizeof(p_rx_pkt->rfc1042_hdr)
|
+ sizeof(p_rx_pkt->eth803_hdr) + sizeof(p_rx_pkt->rfc1042_hdr)
|
||||||
- sizeof(p_rx_pkt->eth803_hdr.dest_addr)
|
- sizeof(p_rx_pkt->eth803_hdr.dest_addr)
|
||||||
- sizeof(p_rx_pkt->eth803_hdr.src_addr)
|
- sizeof(p_rx_pkt->eth803_hdr.src_addr)
|
||||||
@@ -213,7 +213,7 @@ int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *skb)
|
|||||||
hdrchop = (u8 *)p_ethhdr - (u8 *)p_rx_pd;
|
hdrchop = (u8 *)p_ethhdr - (u8 *)p_rx_pd;
|
||||||
} else {
|
} else {
|
||||||
lbs_deb_hex(LBS_DEB_RX, "RX Data: LLC/SNAP",
|
lbs_deb_hex(LBS_DEB_RX, "RX Data: LLC/SNAP",
|
||||||
(u8 *) & p_rx_pkt->rfc1042_hdr,
|
(u8 *) &p_rx_pkt->rfc1042_hdr,
|
||||||
sizeof(p_rx_pkt->rfc1042_hdr));
|
sizeof(p_rx_pkt->rfc1042_hdr));
|
||||||
|
|
||||||
/* Chop off the rxpd */
|
/* Chop off the rxpd */
|
||||||
@@ -313,7 +313,7 @@ static int process_rxed_802_11_packet(struct lbs_private *priv,
|
|||||||
p_rx_pkt = (struct rx80211packethdr *) skb->data;
|
p_rx_pkt = (struct rx80211packethdr *) skb->data;
|
||||||
prxpd = &p_rx_pkt->rx_pd;
|
prxpd = &p_rx_pkt->rx_pd;
|
||||||
|
|
||||||
// lbs_deb_hex(LBS_DEB_RX, "RX Data: Before chop rxpd", skb->data, min(skb->len, 100));
|
/* lbs_deb_hex(LBS_DEB_RX, "RX Data: Before chop rxpd", skb->data, min(skb->len, 100)); */
|
||||||
|
|
||||||
if (skb->len < (ETH_HLEN + 8 + sizeof(struct rxpd))) {
|
if (skb->len < (ETH_HLEN + 8 + sizeof(struct rxpd))) {
|
||||||
lbs_deb_rx("rx err: frame received with bad length\n");
|
lbs_deb_rx("rx err: frame received with bad length\n");
|
||||||
|
Reference in New Issue
Block a user