Lines Matching +full:1 +full:mhz
7 * modification, are permitted provided that: (1) source code distributions
53 #define IEEE802_11_KID_LEN 1
195 u_char ssid[33]; /* 32 + 1 for null */
205 uint8_t text[254]; /* 1-253 + 1 for null */
238 #define E_RATES 1
430 * 0 for 20 MHz, 1 for 40 MHz;
432 * 0 for a long guard interval, 1 for a short guard interval.
434 static const float ieee80211_float_htrates[MAX_MCS_INDEX+1][2][2] = {
436 { /* 20 Mhz */ { 6.5f, /* SGI */ 7.2f, },
437 /* 40 Mhz */ { 13.5f, /* SGI */ 15.0f, },
440 /* MCS 1 */
441 { /* 20 Mhz */ { 13.0f, /* SGI */ 14.4f, },
442 /* 40 Mhz */ { 27.0f, /* SGI */ 30.0f, },
446 { /* 20 Mhz */ { 19.5f, /* SGI */ 21.7f, },
447 /* 40 Mhz */ { 40.5f, /* SGI */ 45.0f, },
451 { /* 20 Mhz */ { 26.0f, /* SGI */ 28.9f, },
452 /* 40 Mhz */ { 54.0f, /* SGI */ 60.0f, },
456 { /* 20 Mhz */ { 39.0f, /* SGI */ 43.3f, },
457 /* 40 Mhz */ { 81.0f, /* SGI */ 90.0f, },
461 { /* 20 Mhz */ { 52.0f, /* SGI */ 57.8f, },
462 /* 40 Mhz */ { 108.0f, /* SGI */ 120.0f, },
466 { /* 20 Mhz */ { 58.5f, /* SGI */ 65.0f, },
467 /* 40 Mhz */ { 121.5f, /* SGI */ 135.0f, },
471 { /* 20 Mhz */ { 65.0f, /* SGI */ 72.2f, },
472 /* 40 Mhz */ { 135.0f, /* SGI */ 150.0f, },
476 { /* 20 Mhz */ { 13.0f, /* SGI */ 14.4f, },
477 /* 40 Mhz */ { 27.0f, /* SGI */ 30.0f, },
481 { /* 20 Mhz */ { 26.0f, /* SGI */ 28.9f, },
482 /* 40 Mhz */ { 54.0f, /* SGI */ 60.0f, },
486 { /* 20 Mhz */ { 39.0f, /* SGI */ 43.3f, },
487 /* 40 Mhz */ { 81.0f, /* SGI */ 90.0f, },
491 { /* 20 Mhz */ { 52.0f, /* SGI */ 57.8f, },
492 /* 40 Mhz */ { 108.0f, /* SGI */ 120.0f, },
496 { /* 20 Mhz */ { 78.0f, /* SGI */ 86.7f, },
497 /* 40 Mhz */ { 162.0f, /* SGI */ 180.0f, },
501 { /* 20 Mhz */ { 104.0f, /* SGI */ 115.6f, },
502 /* 40 Mhz */ { 216.0f, /* SGI */ 240.0f, },
506 { /* 20 Mhz */ { 117.0f, /* SGI */ 130.0f, },
507 /* 40 Mhz */ { 243.0f, /* SGI */ 270.0f, },
511 { /* 20 Mhz */ { 130.0f, /* SGI */ 144.4f, },
512 /* 40 Mhz */ { 270.0f, /* SGI */ 300.0f, },
516 { /* 20 Mhz */ { 19.5f, /* SGI */ 21.7f, },
517 /* 40 Mhz */ { 40.5f, /* SGI */ 45.0f, },
521 { /* 20 Mhz */ { 39.0f, /* SGI */ 43.3f, },
522 /* 40 Mhz */ { 81.0f, /* SGI */ 90.0f, },
526 { /* 20 Mhz */ { 58.5f, /* SGI */ 65.0f, },
527 /* 40 Mhz */ { 121.5f, /* SGI */ 135.0f, },
531 { /* 20 Mhz */ { 78.0f, /* SGI */ 86.7f, },
532 /* 40 Mhz */ { 162.0f, /* SGI */ 180.0f, },
536 { /* 20 Mhz */ { 117.0f, /* SGI */ 130.0f, },
537 /* 40 Mhz */ { 243.0f, /* SGI */ 270.0f, },
541 { /* 20 Mhz */ { 156.0f, /* SGI */ 173.3f, },
542 /* 40 Mhz */ { 324.0f, /* SGI */ 360.0f, },
546 { /* 20 Mhz */ { 175.5f, /* SGI */ 195.0f, },
547 /* 40 Mhz */ { 364.5f, /* SGI */ 405.0f, },
551 { /* 20 Mhz */ { 195.0f, /* SGI */ 216.7f, },
552 /* 40 Mhz */ { 405.0f, /* SGI */ 450.0f, },
556 { /* 20 Mhz */ { 26.0f, /* SGI */ 28.9f, },
557 /* 40 Mhz */ { 54.0f, /* SGI */ 60.0f, },
561 { /* 20 Mhz */ { 52.0f, /* SGI */ 57.8f, },
562 /* 40 Mhz */ { 108.0f, /* SGI */ 120.0f, },
566 { /* 20 Mhz */ { 78.0f, /* SGI */ 86.7f, },
567 /* 40 Mhz */ { 162.0f, /* SGI */ 180.0f, },
571 { /* 20 Mhz */ { 104.0f, /* SGI */ 115.6f, },
572 /* 40 Mhz */ { 216.0f, /* SGI */ 240.0f, },
576 { /* 20 Mhz */ { 156.0f, /* SGI */ 173.3f, },
577 /* 40 Mhz */ { 324.0f, /* SGI */ 360.0f, },
581 { /* 20 Mhz */ { 208.0f, /* SGI */ 231.1f, },
582 /* 40 Mhz */ { 432.0f, /* SGI */ 480.0f, },
586 { /* 20 Mhz */ { 234.0f, /* SGI */ 260.0f, },
587 /* 40 Mhz */ { 486.0f, /* SGI */ 540.0f, },
591 { /* 20 Mhz */ { 260.0f, /* SGI */ 288.9f, },
592 /* 40 Mhz */ { 540.0f, /* SGI */ 600.0f, },
596 { /* 20 Mhz */ { 0.0f, /* SGI */ 0.0f, }, /* not valid */
597 /* 40 Mhz */ { 6.0f, /* SGI */ 6.7f, },
601 { /* 20 Mhz */ { 39.0f, /* SGI */ 43.3f, },
602 /* 40 Mhz */ { 81.0f, /* SGI */ 90.0f, },
606 { /* 20 Mhz */ { 52.0f, /* SGI */ 57.8f, },
607 /* 40 Mhz */ { 108.0f, /* SGI */ 120.0f, },
611 { /* 20 Mhz */ { 65.0f, /* SGI */ 72.2f, },
612 /* 40 Mhz */ { 135.0f, /* SGI */ 150.0f, },
616 { /* 20 Mhz */ { 58.5f, /* SGI */ 65.0f, },
617 /* 40 Mhz */ { 121.5f, /* SGI */ 135.0f, },
621 { /* 20 Mhz */ { 78.0f, /* SGI */ 86.7f, },
622 /* 40 Mhz */ { 162.0f, /* SGI */ 180.0f, },
626 { /* 20 Mhz */ { 97.5f, /* SGI */ 108.3f, },
627 /* 40 Mhz */ { 202.5f, /* SGI */ 225.0f, },
631 { /* 20 Mhz */ { 52.0f, /* SGI */ 57.8f, },
632 /* 40 Mhz */ { 108.0f, /* SGI */ 120.0f, },
636 { /* 20 Mhz */ { 65.0f, /* SGI */ 72.2f, },
637 /* 40 Mhz */ { 135.0f, /* SGI */ 150.0f, },
641 { /* 20 Mhz */ { 65.0f, /* SGI */ 72.2f, },
642 /* 40 Mhz */ { 135.0f, /* SGI */ 150.0f, },
646 { /* 20 Mhz */ { 78.0f, /* SGI */ 86.7f, },
647 /* 40 Mhz */ { 162.0f, /* SGI */ 180.0f, },
651 { /* 20 Mhz */ { 91.0f, /* SGI */ 101.1f, },
652 /* 40 Mhz */ { 189.0f, /* SGI */ 210.0f, },
656 { /* 20 Mhz */ { 91.0f, /* SGI */ 101.1f, },
657 /* 40 Mhz */ { 189.0f, /* SGI */ 210.0f, },
661 { /* 20 Mhz */ { 104.0f, /* SGI */ 115.6f, },
662 /* 40 Mhz */ { 216.0f, /* SGI */ 240.0f, },
666 { /* 20 Mhz */ { 78.0f, /* SGI */ 86.7f, },
667 /* 40 Mhz */ { 162.0f, /* SGI */ 180.0f, },
671 { /* 20 Mhz */ { 97.5f, /* SGI */ 108.3f, },
672 /* 40 Mhz */ { 202.5f, /* SGI */ 225.0f, },
676 { /* 20 Mhz */ { 97.5f, /* SGI */ 108.3f, },
677 /* 40 Mhz */ { 202.5f, /* SGI */ 225.0f, },
681 { /* 20 Mhz */ { 117.0f, /* SGI */ 130.0f, },
682 /* 40 Mhz */ { 243.0f, /* SGI */ 270.0f, },
686 { /* 20 Mhz */ { 136.5f, /* SGI */ 151.7f, },
687 /* 40 Mhz */ { 283.5f, /* SGI */ 315.0f, },
691 { /* 20 Mhz */ { 136.5f, /* SGI */ 151.7f, },
692 /* 40 Mhz */ { 283.5f, /* SGI */ 315.0f, },
696 { /* 20 Mhz */ { 156.0f, /* SGI */ 173.3f, },
697 /* 40 Mhz */ { 324.0f, /* SGI */ 360.0f, },
701 { /* 20 Mhz */ { 65.0f, /* SGI */ 72.2f, },
702 /* 40 Mhz */ { 135.0f, /* SGI */ 150.0f, },
706 { /* 20 Mhz */ { 78.0f, /* SGI */ 86.7f, },
707 /* 40 Mhz */ { 162.0f, /* SGI */ 180.0f, },
711 { /* 20 Mhz */ { 91.0f, /* SGI */ 101.1f, },
712 /* 40 Mhz */ { 189.0f, /* SGI */ 210.0f, },
716 { /* 20 Mhz */ { 78.0f, /* SGI */ 86.7f, },
717 /* 40 Mhz */ { 162.0f, /* SGI */ 180.0f, },
721 { /* 20 Mhz */ { 91.0f, /* SGI */ 101.1f, },
722 /* 40 Mhz */ { 189.0f, /* SGI */ 210.0f, },
726 { /* 20 Mhz */ { 104.0f, /* SGI */ 115.6f, },
727 /* 40 Mhz */ { 216.0f, /* SGI */ 240.0f, },
731 { /* 20 Mhz */ { 117.0f, /* SGI */ 130.0f, },
732 /* 40 Mhz */ { 243.0f, /* SGI */ 270.0f, },
736 { /* 20 Mhz */ { 104.0f, /* SGI */ 115.6f, },
737 /* 40 Mhz */ { 216.0f, /* SGI */ 240.0f, },
741 { /* 20 Mhz */ { 117.0f, /* SGI */ 130.0f, },
742 /* 40 Mhz */ { 243.0f, /* SGI */ 270.0f, },
746 { /* 20 Mhz */ { 130.0f, /* SGI */ 144.4f, },
747 /* 40 Mhz */ { 270.0f, /* SGI */ 300.0f, },
751 { /* 20 Mhz */ { 130.0f, /* SGI */ 144.4f, },
752 /* 40 Mhz */ { 270.0f, /* SGI */ 300.0f, },
756 { /* 20 Mhz */ { 143.0f, /* SGI */ 158.9f, },
757 /* 40 Mhz */ { 297.0f, /* SGI */ 330.0f, },
761 { /* 20 Mhz */ { 97.5f, /* SGI */ 108.3f, },
762 /* 40 Mhz */ { 202.5f, /* SGI */ 225.0f, },
766 { /* 20 Mhz */ { 117.0f, /* SGI */ 130.0f, },
767 /* 40 Mhz */ { 243.0f, /* SGI */ 270.0f, },
771 { /* 20 Mhz */ { 136.5f, /* SGI */ 151.7f, },
772 /* 40 Mhz */ { 283.5f, /* SGI */ 315.0f, },
776 { /* 20 Mhz */ { 117.0f, /* SGI */ 130.0f, },
777 /* 40 Mhz */ { 243.0f, /* SGI */ 270.0f, },
781 { /* 20 Mhz */ { 136.5f, /* SGI */ 151.7f, },
782 /* 40 Mhz */ { 283.5f, /* SGI */ 315.0f, },
786 { /* 20 Mhz */ { 156.0f, /* SGI */ 173.3f, },
787 /* 40 Mhz */ { 324.0f, /* SGI */ 360.0f, },
791 { /* 20 Mhz */ { 175.5f, /* SGI */ 195.0f, },
792 /* 40 Mhz */ { 364.5f, /* SGI */ 405.0f, },
796 { /* 20 Mhz */ { 156.0f, /* SGI */ 173.3f, },
797 /* 40 Mhz */ { 324.0f, /* SGI */ 360.0f, },
801 { /* 20 Mhz */ { 175.5f, /* SGI */ 195.0f, },
802 /* 40 Mhz */ { 364.5f, /* SGI */ 405.0f, },
806 { /* 20 Mhz */ { 195.0f, /* SGI */ 216.7f, },
807 /* 40 Mhz */ { 405.0f, /* SGI */ 450.0f, },
811 { /* 20 Mhz */ { 195.0f, /* SGI */ 216.7f, },
812 /* 40 Mhz */ { 405.0f, /* SGI */ 450.0f, },
816 { /* 20 Mhz */ { 214.5f, /* SGI */ 238.3f, },
817 /* 40 Mhz */ { 445.5f, /* SGI */ 495.0f, },
826 "Unspecified failure", /* 1 */
1002 "Unspecified reason", /* 1 */
1045 "operational mode (e.g. an HT BSS change from 40 MHz channel "
1046 "to 20 MHz channel)", /* 31 */
1124 return 1; in wep_print()
1157 elementlen = GET_U_1(p + offset + 1); in parse_elements()
1170 if (ssid.length > sizeof(ssid.ssid) - 1) in parse_elements()
1186 pbody->ssid_present = 1; in parse_elements()
1195 sizeof(challenge.text) - 1) in parse_elements()
1212 pbody->challenge_present = 1; in parse_elements()
1244 pbody->rates_present = 1; in parse_elements()
1251 if (ds.length != 1) { in parse_elements()
1257 offset += 1; in parse_elements()
1258 length -= 1; in parse_elements()
1268 pbody->ds_present = 1; in parse_elements()
1281 offset += 1; in parse_elements()
1282 length -= 1; in parse_elements()
1284 offset += 1; in parse_elements()
1285 length -= 1; in parse_elements()
1301 pbody->cf_present = 1; in parse_elements()
1316 offset += 1; in parse_elements()
1317 length -= 1; in parse_elements()
1319 offset += 1; in parse_elements()
1320 length -= 1; in parse_elements()
1322 offset += 1; in parse_elements()
1323 length -= 1; in parse_elements()
1336 pbody->tim_present = 1; in parse_elements()
1341 ND_PRINT("(1) unhandled element_id (%u) ", in parse_elements()
1351 return 1; in parse_elements()
1566 return 1; in handle_atim()
1587 return 1; in handle_disassoc()
1617 if ((pbody.auth_alg == 1) && in handle_auth()
1670 return 1; in handle_deauth()
1677 (v) == 1 ? ND_PRINT("MIMOPwrSave"): \
1681 (v) == 1 ? ND_PRINT("ADDBA Response"): \
1686 (v) == 1 ? ND_PRINT("Report"): \
1690 (v) == 1 ? ND_PRINT("Confirm"): \
1695 (v) == 1 ? ND_PRINT("Report"): \
1702 (v) == 1 ? ND_PRINT("HWMP"): \
1715 (v) == 1 ? ND_PRINT("Proxy Update Confirmation"): \
1718 (v) == 1 ? ND_PRINT("Peering Open"): \
1738 case 0: ND_PRINT("Spectrum Management Act#%u", GET_U_1(p + 1)); break; in handle_action()
1739 case 1: ND_PRINT("QoS Act#%u", GET_U_1(p + 1)); break; in handle_action()
1740 case 2: ND_PRINT("DLS Act#%u", GET_U_1(p + 1)); break; in handle_action()
1741 case 3: ND_PRINT("BA "); PRINT_BA_ACTION(GET_U_1(p + 1)); break; in handle_action()
1742 case 7: ND_PRINT("HT "); PRINT_HT_ACTION(GET_U_1(p + 1)); break; in handle_action()
1743 case 13: ND_PRINT("MeshAction "); PRINT_MESH_ACTION(GET_U_1(p + 1)); break; in handle_action()
1746 PRINT_MULTIHOP_ACTION(GET_U_1(p + 1)); break; in handle_action()
1749 PRINT_SELFPROT_ACTION(GET_U_1(p + 1)); break; in handle_action()
1750 case 127: ND_PRINT("Vendor Act#%u", GET_U_1(p + 1)); break; in handle_action()
1752 ND_PRINT("Reserved(%u) Act#%u", GET_U_1(p), GET_U_1(p + 1)); in handle_action()
1755 return 1; in handle_action()
1801 return 1; in mgmt_body_print()
1870 return 1; in ctrl_body_print()
1878 * To Ds | From DS | Addr 1 | Addr 2 | Addr 3 | Addr 4
1880 * 0 | 1 | DA | BSSID | SA | n/a
1881 * 1 | 0 | BSSID | SA | DA | n/a
1882 * 1 | 1 | RA | TA | DA | SA
2098 return (GET_U_1(p) &~ 3) ? 0 : 6*(1 + (GET_U_1(p) & 3)); in extract_mesh_header_length()
2135 if (ae > 1) in ieee_802_11_hdr_print()
2294 * 1. Redistributions of source code must retain the above copyright
2367 * IEEE80211_RADIOTAP_CHANNEL 2 x uint16_t MHz, bitmap
2369 * Tx/Rx frequency in MHz, followed by flags (see below).
2428 * Transmit power expressed as dBm (decibels from a 1 milliwatt
2447 * uint16_t MHz
2452 * frequency in MHz, the corresponding IEEE channel number, and
2487 IEEE80211_RADIOTAP_FLAGS = 1,
2520 #define IEEE80211_CHAN_GSM 0x01000 /* 900 MHz spectrum channel */
2579 #define IEEE80211_RADIOTAP_MCS_BANDWIDTH_40 1
2586 #define IEEE80211_RADIOTAP_MCS_STBC_1 1
2655 ND_PRINT("%u MHz", freq); in print_chaninfo()
2656 if (presentflags & (1 << IEEE80211_RADIOTAP_MCS)) { in print_chaninfo()
2667 ND_PRINT(" 11a/10Mhz"); in print_chaninfo()
2669 ND_PRINT(" 11a/5Mhz"); in print_chaninfo()
2675 ND_PRINT(" 11g/10Mhz"); in print_chaninfo()
2677 ND_PRINT(" 11g/5Mhz"); in print_chaninfo()
2762 * MCS 7 at 20 MHz with a long guard interval. in print_radiotap_field()
2801 if (presentflags & (1 << IEEE80211_RADIOTAP_XCHANNEL)) in print_radiotap_field()
2948 "20 MHz", in print_radiotap_field()
2949 "40 MHz", in print_radiotap_field()
2950 "20 MHz (L)", in print_radiotap_field()
2951 "20 MHz (U)" in print_radiotap_field()
2981 … [((flags & IEEE80211_RADIOTAP_MCS_BANDWIDTH_MASK) == IEEE80211_RADIOTAP_MCS_BANDWIDTH_40 ? 1 : 0)] in print_radiotap_field()
2982 [((flags & IEEE80211_RADIOTAP_MCS_SHORT_GI) ? 1 : 0)]; in print_radiotap_field()
3002 ND_PRINT("%.1f Mb/s MCS %u ", htrate, mcs_index); in print_radiotap_field()
3068 "20 MHz", in print_radiotap_field()
3069 "40 MHz", in print_radiotap_field()
3070 "20 MHz (L)", in print_radiotap_field()
3071 "20 MHz (U)", in print_radiotap_field()
3072 "80 MHz", in print_radiotap_field()
3073 "80 MHz (L)", in print_radiotap_field()
3074 "80 MHz (U)", in print_radiotap_field()
3075 "80 MHz (LL)", in print_radiotap_field()
3076 "80 MHz (LU)", in print_radiotap_field()
3077 "80 MHz (UL)", in print_radiotap_field()
3078 "80 MHz (UU)", in print_radiotap_field()
3079 "160 MHz", in print_radiotap_field()
3080 "160 MHz (L)", in print_radiotap_field()
3081 "160 MHz (U)", in print_radiotap_field()
3082 "160 MHz (LL)", in print_radiotap_field()
3083 "160 MHz (LU)", in print_radiotap_field()
3084 "160 MHz (UL)", in print_radiotap_field()
3085 "160 MHz (UU)", in print_radiotap_field()
3086 "160 MHz (LLL)", in print_radiotap_field()
3087 "160 MHz (LLU)", in print_radiotap_field()
3088 "160 MHz (LUL)", in print_radiotap_field()
3089 "160 MHz (UUU)", in print_radiotap_field()
3090 "160 MHz (ULL)", in print_radiotap_field()
3091 "160 MHz (ULU)", in print_radiotap_field()
3092 "160 MHz (UUL)", in print_radiotap_field()
3093 "160 MHz (UUU)", in print_radiotap_field()
3156 return -1; in print_radiotap_field()
3176 #define BITNO_2(x) (((x) & 2) ? 1 : 0) in print_in_radiotap_namespace()
3186 next_present = present & (present - 1); in print_in_radiotap_namespace()
3219 #define BIT(n) (1U << n) in ieee802_11_radio_print()
3264 nd_cpack_advance(&cpacker, sizeof(*hdr)); /* includes the 1st bitmap */ in ieee802_11_radio_print()
3266 (const u_char*)(last_presentp + 1) <= p + len && in ieee802_11_radio_print()
3272 if ((const u_char*)(last_presentp + 1) > p + len) { in ieee802_11_radio_print()
3367 vendor_namespace = 1; in ieee802_11_radio_print()
3376 if (nd_cpack_uint8(ndo, &cpacker, &vendor_oui[1]) != 0) { in ieee802_11_radio_print()
3405 pad = 1; /* Atheros padding */ in ieee802_11_radio_print()