Lines Matching refs:fc

44 	u16 fc = le16_to_cpu(hdr->frame_control);  in libipw_monitor_rx()  local
48 skb_pull(skb, libipw_get_hdrlen(fc)); in libipw_monitor_rx()
235 u16 fc, ethertype; in libipw_is_eapol_frame() local
243 fc = le16_to_cpu(hdr->frame_ctl); in libipw_is_eapol_frame()
246 if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == in libipw_is_eapol_frame()
251 } else if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == in libipw_is_eapol_frame()
338 u16 fc, type, stype, sc; in libipw_rx() local
362 fc = le16_to_cpu(hdr->frame_ctl); in libipw_rx()
363 type = WLAN_FC_GET_TYPE(fc); in libipw_rx()
364 stype = WLAN_FC_GET_STYPE(fc); in libipw_rx()
367 hdrlen = libipw_get_hdrlen(fc); in libipw_rx()
456 if (!crypt && (fc & IEEE80211_FCTL_PROTECTED)) { in libipw_rx()
470 fc & IEEE80211_FCTL_PROTECTED && ieee->host_decrypt && in libipw_rx()
495 switch (fc & (IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS)) { in libipw_rx()
517 if (hostap_rx_frame_wds(ieee, hdr, fc, &wds)) in libipw_rx()
525 (fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == in libipw_rx()
573 if ((fc & IEEE80211_FCTL_PROTECTED) && can_be_decrypted && in libipw_rx()
582 if ((frag != 0) || (fc & IEEE80211_FCTL_MOREFRAGS)) { in libipw_rx()
591 (fc & IEEE80211_FCTL_MOREFRAGS) != 0, in libipw_rx()
621 if (fc & IEEE80211_FCTL_MOREFRAGS) { in libipw_rx()
637 if ((fc & IEEE80211_FCTL_PROTECTED) && can_be_decrypted && in libipw_rx()
642 if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !ieee->open_wep) { in libipw_rx()
655 if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !ieee->open_wep && in libipw_rx()
665 if (!can_be_decrypted && (fc & IEEE80211_FCTL_PROTECTED) && in libipw_rx()
759 if (wds && ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == in libipw_rx()
841 u16 fc; in libipw_rx_any() local
853 fc = le16_to_cpu(hdr->frame_ctl); in libipw_rx_any()
855 if ((fc & IEEE80211_FCTL_VERS) != 0) in libipw_rx_any()
858 switch (fc & IEEE80211_FCTL_FTYPE) { in libipw_rx_any()
878 if ((fc & (IEEE80211_FCTL_TODS+IEEE80211_FCTL_FROMDS)) == 0) { in libipw_rx_any()
893 if ((fc & (IEEE80211_FCTL_TODS+IEEE80211_FCTL_FROMDS)) == IEEE80211_FCTL_FROMDS) { in libipw_rx_any()
1525 static inline int is_beacon(__le16 fc) in is_beacon() argument
1527 return (WLAN_FC_GET_STYPE(le16_to_cpu(fc)) == IEEE80211_STYPE_BEACON); in is_beacon()