Lines Matching full:fc
777 ieee80211_is_ctl(__le16 fc) in ieee80211_is_ctl() argument
781 fc &= htole16(IEEE80211_FC0_TYPE_MASK); in ieee80211_is_ctl()
784 return (fc == v); in ieee80211_is_ctl()
789 ieee80211_is_data(__le16 fc) in ieee80211_is_data() argument
793 fc &= htole16(IEEE80211_FC0_TYPE_MASK); in ieee80211_is_data()
796 return (fc == v); in ieee80211_is_data()
801 ieee80211_is_data_qos(__le16 fc) in ieee80211_is_data_qos() argument
805 fc &= htole16(IEEE80211_FC0_SUBTYPE_QOS_DATA | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_data_qos()
808 return (fc == v); in ieee80211_is_data_qos()
813 ieee80211_is_mgmt(__le16 fc) in ieee80211_is_mgmt() argument
817 fc &= htole16(IEEE80211_FC0_TYPE_MASK); in ieee80211_is_mgmt()
820 return (fc == v); in ieee80211_is_mgmt()
826 ieee80211_hdrlen(__le16 fc) in ieee80211_hdrlen() argument
830 if (ieee80211_is_ctl(fc)) { in ieee80211_hdrlen()
831 switch (fc & htole16(IEEE80211_FC0_SUBTYPE_MASK)) { in ieee80211_hdrlen()
842 if (ieee80211_is_data(fc)) { in ieee80211_hdrlen()
843 if ((fc & htole16(IEEE80211_FC1_DIR_MASK << 8)) == in ieee80211_hdrlen()
846 if ((fc & htole16(IEEE80211_FC0_SUBTYPE_QOS_DATA | in ieee80211_hdrlen()
853 if (ieee80211_is_mgmt(fc)) { in ieee80211_hdrlen()
855 printf("XXX-BZ %s: TODO? fc %#04x size %u\n", in ieee80211_hdrlen()
856 __func__, fc, size); in ieee80211_hdrlen()
865 ieee80211_is_trigger(__le16 fc) in ieee80211_is_trigger() argument
869 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_trigger()
872 return (fc == v); in ieee80211_is_trigger()
876 ieee80211_is_action(__le16 fc) in ieee80211_is_action() argument
880 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_action()
883 return (fc == v); in ieee80211_is_action()
887 ieee80211_is_probe_resp(__le16 fc) in ieee80211_is_probe_resp() argument
891 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_probe_resp()
894 return (fc == v); in ieee80211_is_probe_resp()
898 ieee80211_is_auth(__le16 fc) in ieee80211_is_auth() argument
902 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_auth()
905 return (fc == v); in ieee80211_is_auth()
909 ieee80211_is_assoc_req(__le16 fc) in ieee80211_is_assoc_req() argument
913 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_assoc_req()
916 return (fc == v); in ieee80211_is_assoc_req()
920 ieee80211_is_assoc_resp(__le16 fc) in ieee80211_is_assoc_resp() argument
924 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_assoc_resp()
927 return (fc == v); in ieee80211_is_assoc_resp()
931 ieee80211_is_reassoc_req(__le16 fc) in ieee80211_is_reassoc_req() argument
935 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_reassoc_req()
938 return (fc == v); in ieee80211_is_reassoc_req()
942 ieee80211_is_reassoc_resp(__le16 fc) in ieee80211_is_reassoc_resp() argument
946 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_reassoc_resp()
949 return (fc == v); in ieee80211_is_reassoc_resp()
953 ieee80211_is_disassoc(__le16 fc) in ieee80211_is_disassoc() argument
957 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_disassoc()
960 return (fc == v); in ieee80211_is_disassoc()
964 ieee80211_is_data_present(__le16 fc) in ieee80211_is_data_present() argument
969 fc &= htole16(IEEE80211_FC0_TYPE_MASK | IEEE80211_FC0_SUBTYPE_NODATA); in ieee80211_is_data_present()
972 return (fc == v); in ieee80211_is_data_present()
976 ieee80211_is_deauth(__le16 fc) in ieee80211_is_deauth() argument
980 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_deauth()
983 return (fc == v); in ieee80211_is_deauth()
987 ieee80211_is_beacon(__le16 fc) in ieee80211_is_beacon() argument
996 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_beacon()
999 return (fc == v); in ieee80211_is_beacon()
1004 ieee80211_is_probe_req(__le16 fc) in ieee80211_is_probe_req() argument
1008 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_probe_req()
1011 return (fc == v); in ieee80211_is_probe_req()
1015 ieee80211_has_protected(__le16 fc) in ieee80211_has_protected() argument
1018 return (fc & htole16(IEEE80211_FC1_PROTECTED << 8)); in ieee80211_has_protected()
1022 ieee80211_is_back_req(__le16 fc) in ieee80211_is_back_req() argument
1026 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_back_req()
1029 return (fc == v); in ieee80211_is_back_req()
1036 __le16 fc; in ieee80211_is_bufferable_mmpdu() local
1039 fc = mgmt->frame_control; in ieee80211_is_bufferable_mmpdu()
1044 if (!ieee80211_is_mgmt(fc)) in ieee80211_is_bufferable_mmpdu()
1046 if (ieee80211_is_action(fc)) /* XXX FTM? */ in ieee80211_is_bufferable_mmpdu()
1048 if (ieee80211_is_disassoc(fc)) in ieee80211_is_bufferable_mmpdu()
1050 if (ieee80211_is_deauth(fc)) in ieee80211_is_bufferable_mmpdu()
1059 ieee80211_is_nullfunc(__le16 fc) in ieee80211_is_nullfunc() argument
1063 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_nullfunc()
1066 return (fc == v); in ieee80211_is_nullfunc()
1070 ieee80211_is_qos_nullfunc(__le16 fc) in ieee80211_is_qos_nullfunc() argument
1074 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_qos_nullfunc()
1077 return (fc == v); in ieee80211_is_qos_nullfunc()
1081 ieee80211_is_any_nullfunc(__le16 fc) in ieee80211_is_any_nullfunc() argument
1084 return (ieee80211_is_nullfunc(fc) || ieee80211_is_qos_nullfunc(fc)); in ieee80211_is_any_nullfunc()
1088 ieee80211_is_pspoll(__le16 fc) in ieee80211_is_pspoll() argument
1092 fc &= htole16(IEEE80211_FC0_SUBTYPE_MASK | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_pspoll()
1095 return (fc == v); in ieee80211_is_pspoll()
1099 ieee80211_has_a4(__le16 fc) in ieee80211_has_a4() argument
1103 fc &= htole16((IEEE80211_FC1_DIR_TODS | IEEE80211_FC1_DIR_FROMDS) << 8); in ieee80211_has_a4()
1106 return (fc == v); in ieee80211_has_a4()
1110 ieee80211_has_order(__le16 fc) in ieee80211_has_order() argument
1113 return (fc & htole16(IEEE80211_FC1_ORDER << 8)); in ieee80211_has_order()
1117 ieee80211_has_retry(__le16 fc) in ieee80211_has_retry() argument
1120 return (fc & htole16(IEEE80211_FC1_RETRY << 8)); in ieee80211_has_retry()
1125 ieee80211_has_fromds(__le16 fc) in ieee80211_has_fromds() argument
1128 return (fc & htole16(IEEE80211_FC1_DIR_FROMDS << 8)); in ieee80211_has_fromds()
1132 ieee80211_has_tods(__le16 fc) in ieee80211_has_tods() argument
1135 return (fc & htole16(IEEE80211_FC1_DIR_TODS << 8)); in ieee80211_has_tods()
1166 ieee80211_is_first_frag(__le16 fc) in ieee80211_is_first_frag() argument
1194 ieee80211_has_pm(__le16 fc) in ieee80211_has_pm() argument
1201 ieee80211_has_morefrags(__le16 fc) in ieee80211_has_morefrags() argument
1204 fc &= htole16(IEEE80211_FC1_MORE_FRAG << 8); in ieee80211_has_morefrags()
1205 return (fc != 0); in ieee80211_has_morefrags()