Lines Matching defs:range
553 * Wireless Handler : get capability range
561 struct iw_range *range = (struct iw_range *) extra;
568 memset(range, 0, sizeof(struct iw_range));
569 range->min_nwid = 0x0000;
570 range->max_nwid = 0x0000;
571 range->num_channels = 14;
576 range->freq[k].i = i + 1; // List index
577 range->freq[k].m = frequency_list[i] * 100000;
578 range->freq[k++].e = 1; // Values in table in MHz -> * 10^5 * 10
580 range->num_frequency = k;
582 range->max_qual.qual = 100;
583 range->max_qual.level = 0;
584 range->max_qual.noise = 0;
585 range->sensitivity = 255;
588 range->bitrate[i] = abySupportedRates[i] * 500000;
589 if(range->bitrate[i] == 0)
592 range->num_bitrates = i;
598 range->throughput = 5 * 1000 * 1000;
600 range->throughput = 1.5 * 1000 * 1000;
602 range->min_rts = 0;
603 range->max_rts = 2312;
604 range->min_frag = 256;
605 range->max_frag = 2312;
609 range->num_encoding_sizes = 3;
611 range->encoding_size[0] = 5;
613 range->encoding_size[1] = 13;
615 range->encoding_size[2] = 32;
617 range->max_encoding_tokens = 4;
619 range->enc_capa = IW_ENC_CAPA_WPA | IW_ENC_CAPA_WPA2 |
622 range->min_pmp = 0;
623 range->max_pmp = 1000000;// 1 secs
624 range->min_pmt = 0;
625 range->max_pmt = 1000000;// 1 secs
626 range->pmp_flags = IW_POWER_PERIOD;
627 range->pmt_flags = IW_POWER_TIMEOUT;
628 range->pm_capa = IW_POWER_PERIOD | IW_POWER_TIMEOUT | IW_POWER_ALL_R;
632 range->txpower[0] = 100;
633 range->num_txpower = 1;
634 range->txpower_capa = IW_TXPOW_MWATT;
635 range->we_version_source = SUPPORTED_WIRELESS_EXT;
636 range->we_version_compiled = WIRELESS_EXT;
637 range->retry_capa = IW_RETRY_LIMIT | IW_RETRY_LIFETIME;
638 range->retry_flags = IW_RETRY_LIMIT;
639 range->r_time_flags = IW_RETRY_LIFETIME;
640 range->min_retry = 1;
641 range->max_retry = 65535;
642 range->min_r_time = 1024;
643 range->max_r_time = 65535 * 1024;
647 range->avg_qual.qual = 6;
648 range->avg_qual.level = 176; // -80 dBm
649 range->avg_qual.noise = 0;