libertas: TX packet is radiotap iff it comes from rtap_dev
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 10 Dec 2007 03:00:55 +0000 (22:00 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:06:28 +0000 (15:06 -0800)
Fix one of the barriers to simultaneous radiotap and normal operation --
stop misinterpreting the TX packets on the normal devices. We're also
going to have to clone the incoming skbs and feed them into both
devices, and there seem to be firmware problems with staying associated
too. But this is a reasonable start...

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/tx.c

index aefe52419baa9a7931294f5775bed97d4b000f0b..c2881a9907c06a4a779823281ba89a21454fc4c7 100644 (file)
@@ -105,7 +105,7 @@ int lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
        p802x_hdr = skb->data;
        pkt_len = skb->len;
 
-       if (priv->monitormode != LBS_MONITOR_OFF) {
+       if (dev == priv->rtap_net_dev) {
                struct tx_radiotap_hdr *rtap_hdr = (void *)skb->data;
 
                /* set txpd fields from the radiotap header */