Lines Matching refs:diversity
656 unsigned char diversity;
811 diversity = cfg->an_diversity & 0xFF;
812 if (diversity == AN_DIVERSITY_FACTORY_DEFAULT)
814 else if (diversity == AN_DIVERSITY_ANTENNA_1_ONLY)
816 else if (diversity == AN_DIVERSITY_ANTENNA_2_ONLY)
818 else if (diversity == AN_DIVERSITY_ANTENNA_1_AND_2)
822 diversity = (cfg->an_diversity >> 8) & 0xFF;
823 if (diversity == AN_DIVERSITY_FACTORY_DEFAULT)
825 else if (diversity == AN_DIVERSITY_ANTENNA_1_ONLY)
827 else if (diversity == AN_DIVERSITY_ANTENNA_2_ONLY)
829 else if (diversity == AN_DIVERSITY_ANTENNA_1_AND_2)
897 fprintf(stderr, "\t%s -i iface [-v 0|1] -d val (set diversity)\n", p);
930 u_int16_t diversity = 0;
961 diversity = AN_DIVERSITY_FACTORY_DEFAULT;
964 diversity = AN_DIVERSITY_ANTENNA_1_ONLY;
967 diversity = AN_DIVERSITY_ANTENNA_2_ONLY;
970 diversity = AN_DIVERSITY_ANTENNA_1_AND_2;
973 errx(1, "bad diversity setting: %u", diversity);
978 cfg->an_diversity |= diversity;
981 cfg->an_diversity |= (diversity << 8);
1638 errx(1, "must specify RX or TX diversity");