dzianis97 / iwidarwin

Automatically exported from code.google.com/p/iwidarwin
0 stars 0 forks source link

should send stat's packet to upper layer in ipw_handle_mgmt_packet? #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
in  ipw_handle_mgmt_packet
following routine exsit.
this dont be called because priv->config is set not CFG_NET_STATS.

    if (priv->config & CFG_NET_STATS) {
        IWI_DEBUG("sending stat packet.\n");

        /* Set the size of the skb to the size of the full
         * ipw header and 802.11 frame */
        skb_put(skb, le16_to_cpu(pkt->u.frame.length) + IPW_RX_FRAME_SIZE);
        /* Advance past the ipw packet header to the 802.11 frame */
        skb_pull(skb, IPW_RX_FRAME_SIZE);

        /* Push the ieee80211_rx_stats before the 802.11 frame */
        memcpy(skb_push(skb, sizeof(*stats)), stats, sizeof(*stats));

        //skb->dev = priv->ieee->dev;

        /* Point raw at the ieee80211_stats */
        /*skb->mac.raw = skb->data;

        skb->pkt_type = PACKET_OTHERHOST;
        skb->protocol = __constant_htons(ETH_P_80211_STATS);
        memset(skb->cb, 0, sizeof(rxb->skb->cb));
        netif_rx(skb);*/
        //ifnet_input(fifnet, skb, (const struct ifnet_stat_increment_param*)stats);

fNetif->inputPacket(skb,mbuf_len(skb),IONetworkInterface::kInputOptionQueuePacke
t);
        // fix me: fushInputQueue is called in interruptOccured with check?
        fNetif->flushInputQueue();
        rxb->skb = NULL;

    }

Original issue reported on code.google.com by kazuh...@gmail.com on 13 Feb 2007 at 2:52

GoogleCodeExporter commented 9 years ago
i'm not sure if its needed. i'll leave it for now

Original comment by jalav...@gmail.com on 13 Feb 2007 at 10:40

GoogleCodeExporter commented 9 years ago

Original comment by jalav...@gmail.com on 9 Mar 2007 at 10:32