diff options
Diffstat (limited to 'drivers/net/wireless/libertas/rx.c')
-rw-r--r-- | drivers/net/wireless/libertas/rx.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/net/wireless/libertas/rx.c b/drivers/net/wireless/libertas/rx.c index 9f18a19cc49d..2daf8ffdb7e1 100644 --- a/drivers/net/wireless/libertas/rx.c +++ b/drivers/net/wireless/libertas/rx.c | |||
@@ -160,15 +160,8 @@ int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *skb) | |||
160 | p_rx_pd = (struct rxpd *) skb->data; | 160 | p_rx_pd = (struct rxpd *) skb->data; |
161 | p_rx_pkt = (struct rxpackethdr *) ((u8 *)p_rx_pd + | 161 | p_rx_pkt = (struct rxpackethdr *) ((u8 *)p_rx_pd + |
162 | le32_to_cpu(p_rx_pd->pkt_ptr)); | 162 | le32_to_cpu(p_rx_pd->pkt_ptr)); |
163 | if (priv->mesh_dev) { | 163 | |
164 | if (priv->mesh_fw_ver == MESH_FW_OLD) { | 164 | dev = lbs_mesh_set_dev(priv, dev, p_rx_pd); |
165 | if (p_rx_pd->rx_control & RxPD_MESH_FRAME) | ||
166 | dev = priv->mesh_dev; | ||
167 | } else if (priv->mesh_fw_ver == MESH_FW_NEW) { | ||
168 | if (p_rx_pd->u.bss.bss_num == MESH_IFACE_ID) | ||
169 | dev = priv->mesh_dev; | ||
170 | } | ||
171 | } | ||
172 | 165 | ||
173 | lbs_deb_hex(LBS_DEB_RX, "RX Data: Before chop rxpd", skb->data, | 166 | lbs_deb_hex(LBS_DEB_RX, "RX Data: Before chop rxpd", skb->data, |
174 | min_t(unsigned int, skb->len, 100)); | 167 | min_t(unsigned int, skb->len, 100)); |