libertas: remove unreachable code from process_rxed_802_11_packet()
The function is only ever called if we're in rtap mode. So the bit in it which is conditional on rtap mode seems a little superfluous. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Родитель
2eb188a1c5
Коммит
180be755ae
|
@ -355,13 +355,7 @@ static int process_rxed_802_11_packet(struct lbs_private *priv,
|
||||||
skb->len, sizeof(struct rxpd), skb->len - sizeof(struct rxpd));
|
skb->len, sizeof(struct rxpd), skb->len - sizeof(struct rxpd));
|
||||||
|
|
||||||
/* create the exported radio header */
|
/* create the exported radio header */
|
||||||
if (priv->monitormode == LBS_MONITOR_OFF) {
|
|
||||||
/* no radio header */
|
|
||||||
/* chop the rxpd */
|
|
||||||
skb_pull(skb, sizeof(struct rxpd));
|
|
||||||
}
|
|
||||||
|
|
||||||
else {
|
|
||||||
/* radiotap header */
|
/* radiotap header */
|
||||||
radiotap_hdr.hdr.it_version = 0;
|
radiotap_hdr.hdr.it_version = 0;
|
||||||
/* XXX must check this value for pad */
|
/* XXX must check this value for pad */
|
||||||
|
@ -393,13 +387,8 @@ static int process_rxed_802_11_packet(struct lbs_private *priv,
|
||||||
__func__);
|
__func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
pradiotap_hdr =
|
pradiotap_hdr = (void *)skb_push(skb, sizeof(struct rx_radiotap_hdr));
|
||||||
(struct rx_radiotap_hdr *)skb_push(skb,
|
memcpy(pradiotap_hdr, &radiotap_hdr, sizeof(struct rx_radiotap_hdr));
|
||||||
sizeof(struct
|
|
||||||
rx_radiotap_hdr));
|
|
||||||
memcpy(pradiotap_hdr, &radiotap_hdr,
|
|
||||||
sizeof(struct rx_radiotap_hdr));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Take the data rate from the rxpd structure
|
/* Take the data rate from the rxpd structure
|
||||||
* only if the rate is auto
|
* only if the rate is auto
|
||||||
|
|
Загрузка…
Ссылка в новой задаче