Lines Matching refs:ipw_rt
7738 struct ipw_rt_hdr *ipw_rt; in ipw_handle_data_packet_monitor() local
7774 ipw_rt = (struct ipw_rt_hdr *)rxb->skb->data; in ipw_handle_data_packet_monitor()
7776 ipw_rt->rt_hdr.it_version = PKTHDR_RADIOTAP_VERSION; in ipw_handle_data_packet_monitor()
7777 ipw_rt->rt_hdr.it_pad = 0; /* always good to zero */ in ipw_handle_data_packet_monitor()
7778 ipw_rt->rt_hdr.it_len = cpu_to_le16(sizeof(struct ipw_rt_hdr)); /* total header+data */ in ipw_handle_data_packet_monitor()
7781 ipw_rt->rt_hdr.it_present = cpu_to_le32( in ipw_handle_data_packet_monitor()
7791 ipw_rt->rt_flags = 0; in ipw_handle_data_packet_monitor()
7792 ipw_rt->rt_tsf = (u64)(frame->parent_tsf[3] << 24 | in ipw_handle_data_packet_monitor()
7798 ipw_rt->rt_dbmsignal = antsignal; in ipw_handle_data_packet_monitor()
7799 ipw_rt->rt_dbmnoise = (s8) le16_to_cpu(frame->noise); in ipw_handle_data_packet_monitor()
7802 ipw_rt->rt_channel = cpu_to_le16(ieee80211chan2mhz(received_channel)); in ipw_handle_data_packet_monitor()
7804 ipw_rt->rt_chbitmask = in ipw_handle_data_packet_monitor()
7807 ipw_rt->rt_chbitmask = in ipw_handle_data_packet_monitor()
7810 ipw_rt->rt_chbitmask = in ipw_handle_data_packet_monitor()
7817 ipw_rt->rt_rate = 2; in ipw_handle_data_packet_monitor()
7820 ipw_rt->rt_rate = 4; in ipw_handle_data_packet_monitor()
7823 ipw_rt->rt_rate = 10; in ipw_handle_data_packet_monitor()
7826 ipw_rt->rt_rate = 12; in ipw_handle_data_packet_monitor()
7829 ipw_rt->rt_rate = 18; in ipw_handle_data_packet_monitor()
7832 ipw_rt->rt_rate = 22; in ipw_handle_data_packet_monitor()
7835 ipw_rt->rt_rate = 24; in ipw_handle_data_packet_monitor()
7838 ipw_rt->rt_rate = 36; in ipw_handle_data_packet_monitor()
7841 ipw_rt->rt_rate = 48; in ipw_handle_data_packet_monitor()
7844 ipw_rt->rt_rate = 72; in ipw_handle_data_packet_monitor()
7847 ipw_rt->rt_rate = 96; in ipw_handle_data_packet_monitor()
7850 ipw_rt->rt_rate = 108; in ipw_handle_data_packet_monitor()
7853 ipw_rt->rt_rate = 0; in ipw_handle_data_packet_monitor()
7858 ipw_rt->rt_antenna = (antennaAndPhy & 3); /* Is this right? */ in ipw_handle_data_packet_monitor()
7862 ipw_rt->rt_flags |= IEEE80211_RADIOTAP_F_SHORTPRE; in ipw_handle_data_packet_monitor()
7905 struct ipw_rt_hdr *ipw_rt; in ipw_handle_promiscuous_rx() local
7975 ipw_rt = (void *)skb->data; in ipw_handle_promiscuous_rx()
7980 memcpy(ipw_rt->payload, hdr, len); in ipw_handle_promiscuous_rx()
7982 ipw_rt->rt_hdr.it_version = PKTHDR_RADIOTAP_VERSION; in ipw_handle_promiscuous_rx()
7983 ipw_rt->rt_hdr.it_pad = 0; /* always good to zero */ in ipw_handle_promiscuous_rx()
7984 ipw_rt->rt_hdr.it_len = cpu_to_le16(sizeof(*ipw_rt)); /* total header+data */ in ipw_handle_promiscuous_rx()
7987 skb_put(skb, sizeof(*ipw_rt) + len); in ipw_handle_promiscuous_rx()
7990 ipw_rt->rt_hdr.it_present = cpu_to_le32( in ipw_handle_promiscuous_rx()
8000 ipw_rt->rt_flags = 0; in ipw_handle_promiscuous_rx()
8001 ipw_rt->rt_tsf = (u64)(frame->parent_tsf[3] << 24 | in ipw_handle_promiscuous_rx()
8007 ipw_rt->rt_dbmsignal = signal; in ipw_handle_promiscuous_rx()
8008 ipw_rt->rt_dbmnoise = noise; in ipw_handle_promiscuous_rx()
8011 ipw_rt->rt_channel = cpu_to_le16(ieee80211chan2mhz(channel)); in ipw_handle_promiscuous_rx()
8013 ipw_rt->rt_chbitmask = in ipw_handle_promiscuous_rx()
8016 ipw_rt->rt_chbitmask = in ipw_handle_promiscuous_rx()
8019 ipw_rt->rt_chbitmask = in ipw_handle_promiscuous_rx()
8026 ipw_rt->rt_rate = 2; in ipw_handle_promiscuous_rx()
8029 ipw_rt->rt_rate = 4; in ipw_handle_promiscuous_rx()
8032 ipw_rt->rt_rate = 10; in ipw_handle_promiscuous_rx()
8035 ipw_rt->rt_rate = 12; in ipw_handle_promiscuous_rx()
8038 ipw_rt->rt_rate = 18; in ipw_handle_promiscuous_rx()
8041 ipw_rt->rt_rate = 22; in ipw_handle_promiscuous_rx()
8044 ipw_rt->rt_rate = 24; in ipw_handle_promiscuous_rx()
8047 ipw_rt->rt_rate = 36; in ipw_handle_promiscuous_rx()
8050 ipw_rt->rt_rate = 48; in ipw_handle_promiscuous_rx()
8053 ipw_rt->rt_rate = 72; in ipw_handle_promiscuous_rx()
8056 ipw_rt->rt_rate = 96; in ipw_handle_promiscuous_rx()
8059 ipw_rt->rt_rate = 108; in ipw_handle_promiscuous_rx()
8062 ipw_rt->rt_rate = 0; in ipw_handle_promiscuous_rx()
8067 ipw_rt->rt_antenna = (phy_flags & 3); in ipw_handle_promiscuous_rx()
8071 ipw_rt->rt_flags |= IEEE80211_RADIOTAP_F_SHORTPRE; in ipw_handle_promiscuous_rx()