Lines Matching refs:ipw_rt
7692 struct ipw_rt_hdr *ipw_rt; in ipw_handle_data_packet_monitor() local
7728 ipw_rt = (struct ipw_rt_hdr *)rxb->skb->data; in ipw_handle_data_packet_monitor()
7730 ipw_rt->rt_hdr.it_version = PKTHDR_RADIOTAP_VERSION; in ipw_handle_data_packet_monitor()
7731 ipw_rt->rt_hdr.it_pad = 0; /* always good to zero */ in ipw_handle_data_packet_monitor()
7732 ipw_rt->rt_hdr.it_len = cpu_to_le16(sizeof(struct ipw_rt_hdr)); /* total header+data */ in ipw_handle_data_packet_monitor()
7735 ipw_rt->rt_hdr.it_present = cpu_to_le32( in ipw_handle_data_packet_monitor()
7745 ipw_rt->rt_flags = 0; in ipw_handle_data_packet_monitor()
7746 ipw_rt->rt_tsf = (u64)(frame->parent_tsf[3] << 24 | in ipw_handle_data_packet_monitor()
7752 ipw_rt->rt_dbmsignal = antsignal; in ipw_handle_data_packet_monitor()
7753 ipw_rt->rt_dbmnoise = (s8) le16_to_cpu(frame->noise); in ipw_handle_data_packet_monitor()
7756 ipw_rt->rt_channel = cpu_to_le16(ieee80211chan2mhz(received_channel)); in ipw_handle_data_packet_monitor()
7758 ipw_rt->rt_chbitmask = in ipw_handle_data_packet_monitor()
7761 ipw_rt->rt_chbitmask = in ipw_handle_data_packet_monitor()
7764 ipw_rt->rt_chbitmask = in ipw_handle_data_packet_monitor()
7771 ipw_rt->rt_rate = 2; in ipw_handle_data_packet_monitor()
7774 ipw_rt->rt_rate = 4; in ipw_handle_data_packet_monitor()
7777 ipw_rt->rt_rate = 10; in ipw_handle_data_packet_monitor()
7780 ipw_rt->rt_rate = 12; in ipw_handle_data_packet_monitor()
7783 ipw_rt->rt_rate = 18; in ipw_handle_data_packet_monitor()
7786 ipw_rt->rt_rate = 22; in ipw_handle_data_packet_monitor()
7789 ipw_rt->rt_rate = 24; in ipw_handle_data_packet_monitor()
7792 ipw_rt->rt_rate = 36; in ipw_handle_data_packet_monitor()
7795 ipw_rt->rt_rate = 48; in ipw_handle_data_packet_monitor()
7798 ipw_rt->rt_rate = 72; in ipw_handle_data_packet_monitor()
7801 ipw_rt->rt_rate = 96; in ipw_handle_data_packet_monitor()
7804 ipw_rt->rt_rate = 108; in ipw_handle_data_packet_monitor()
7807 ipw_rt->rt_rate = 0; in ipw_handle_data_packet_monitor()
7812 ipw_rt->rt_antenna = (antennaAndPhy & 3); /* Is this right? */ in ipw_handle_data_packet_monitor()
7816 ipw_rt->rt_flags |= IEEE80211_RADIOTAP_F_SHORTPRE; in ipw_handle_data_packet_monitor()
7859 struct ipw_rt_hdr *ipw_rt; in ipw_handle_promiscuous_rx() local
7929 ipw_rt = (void *)skb->data; in ipw_handle_promiscuous_rx()
7934 memcpy(ipw_rt->payload, hdr, len); in ipw_handle_promiscuous_rx()
7936 ipw_rt->rt_hdr.it_version = PKTHDR_RADIOTAP_VERSION; in ipw_handle_promiscuous_rx()
7937 ipw_rt->rt_hdr.it_pad = 0; /* always good to zero */ in ipw_handle_promiscuous_rx()
7938 ipw_rt->rt_hdr.it_len = cpu_to_le16(sizeof(*ipw_rt)); /* total header+data */ in ipw_handle_promiscuous_rx()
7941 skb_put(skb, sizeof(*ipw_rt) + len); in ipw_handle_promiscuous_rx()
7944 ipw_rt->rt_hdr.it_present = cpu_to_le32( in ipw_handle_promiscuous_rx()
7954 ipw_rt->rt_flags = 0; in ipw_handle_promiscuous_rx()
7955 ipw_rt->rt_tsf = (u64)(frame->parent_tsf[3] << 24 | in ipw_handle_promiscuous_rx()
7961 ipw_rt->rt_dbmsignal = signal; in ipw_handle_promiscuous_rx()
7962 ipw_rt->rt_dbmnoise = noise; in ipw_handle_promiscuous_rx()
7965 ipw_rt->rt_channel = cpu_to_le16(ieee80211chan2mhz(channel)); in ipw_handle_promiscuous_rx()
7967 ipw_rt->rt_chbitmask = in ipw_handle_promiscuous_rx()
7970 ipw_rt->rt_chbitmask = in ipw_handle_promiscuous_rx()
7973 ipw_rt->rt_chbitmask = in ipw_handle_promiscuous_rx()
7980 ipw_rt->rt_rate = 2; in ipw_handle_promiscuous_rx()
7983 ipw_rt->rt_rate = 4; in ipw_handle_promiscuous_rx()
7986 ipw_rt->rt_rate = 10; in ipw_handle_promiscuous_rx()
7989 ipw_rt->rt_rate = 12; in ipw_handle_promiscuous_rx()
7992 ipw_rt->rt_rate = 18; in ipw_handle_promiscuous_rx()
7995 ipw_rt->rt_rate = 22; in ipw_handle_promiscuous_rx()
7998 ipw_rt->rt_rate = 24; in ipw_handle_promiscuous_rx()
8001 ipw_rt->rt_rate = 36; in ipw_handle_promiscuous_rx()
8004 ipw_rt->rt_rate = 48; in ipw_handle_promiscuous_rx()
8007 ipw_rt->rt_rate = 72; in ipw_handle_promiscuous_rx()
8010 ipw_rt->rt_rate = 96; in ipw_handle_promiscuous_rx()
8013 ipw_rt->rt_rate = 108; in ipw_handle_promiscuous_rx()
8016 ipw_rt->rt_rate = 0; in ipw_handle_promiscuous_rx()
8021 ipw_rt->rt_antenna = (phy_flags & 3); in ipw_handle_promiscuous_rx()
8025 ipw_rt->rt_flags |= IEEE80211_RADIOTAP_F_SHORTPRE; in ipw_handle_promiscuous_rx()