Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314065
b: refs/heads/master
c: 30e2dd7
h: refs/heads/master
i:
  314063: c1cd268
v: v3
  • Loading branch information
Arik Nemtsov authored and Luciano Coelho committed Jun 5, 2012
1 parent 0866b98 commit 3311ff9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c809f888370d87129d17028d515bb025fe94175
refs/heads/master: 30e2dd798dbd5929f981ec0c77ab8567e8859ad9
12 changes: 12 additions & 0 deletions trunk/drivers/net/wireless/ti/wl18xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,17 @@ wl18xx_get_rx_buf_align(struct wl1271 *wl, u32 rx_desc)
return WLCORE_RX_BUF_ALIGNED;
}

static u32 wl18xx_get_rx_packet_len(struct wl1271 *wl, void *rx_data,
u32 data_len)
{
struct wl1271_rx_descriptor *desc = rx_data;

/* invalid packet */
if (data_len < sizeof(*desc))
return 0;

return data_len - sizeof(*desc);
}

static struct wlcore_ops wl18xx_ops = {
.identify_chip = wl18xx_identify_chip,
Expand All @@ -468,6 +479,7 @@ static struct wlcore_ops wl18xx_ops = {
.set_tx_desc_blocks = wl18xx_set_tx_desc_blocks,
.set_tx_desc_data_len = wl18xx_set_tx_desc_data_len,
.get_rx_buf_align = wl18xx_get_rx_buf_align,
.get_rx_packet_len = wl18xx_get_rx_packet_len,
};

int __devinit wl18xx_probe(struct platform_device *pdev)
Expand Down

0 comments on commit 3311ff9

Please sign in to comment.