Lines Matching refs:modes
2630 struct hostapd_hw_modes *modes; in wpa_driver_test_get_hw_feature_data() local
2635 modes = os_zalloc(*num_modes * sizeof(struct hostapd_hw_modes)); in wpa_driver_test_get_hw_feature_data()
2636 if (modes == NULL) in wpa_driver_test_get_hw_feature_data()
2638 modes[0].mode = HOSTAPD_MODE_IEEE80211G; in wpa_driver_test_get_hw_feature_data()
2639 modes[0].num_channels = 11; in wpa_driver_test_get_hw_feature_data()
2640 modes[0].num_rates = 12; in wpa_driver_test_get_hw_feature_data()
2641 modes[0].channels = in wpa_driver_test_get_hw_feature_data()
2643 modes[0].rates = os_zalloc(modes[0].num_rates * sizeof(int)); in wpa_driver_test_get_hw_feature_data()
2644 if (modes[0].channels == NULL || modes[0].rates == NULL) in wpa_driver_test_get_hw_feature_data()
2647 modes[0].channels[i].chan = i + 1; in wpa_driver_test_get_hw_feature_data()
2648 modes[0].channels[i].freq = 2412 + 5 * i; in wpa_driver_test_get_hw_feature_data()
2649 modes[0].channels[i].flag = 0; in wpa_driver_test_get_hw_feature_data()
2651 modes[0].rates[0] = 10; in wpa_driver_test_get_hw_feature_data()
2652 modes[0].rates[1] = 20; in wpa_driver_test_get_hw_feature_data()
2653 modes[0].rates[2] = 55; in wpa_driver_test_get_hw_feature_data()
2654 modes[0].rates[3] = 110; in wpa_driver_test_get_hw_feature_data()
2655 modes[0].rates[4] = 60; in wpa_driver_test_get_hw_feature_data()
2656 modes[0].rates[5] = 90; in wpa_driver_test_get_hw_feature_data()
2657 modes[0].rates[6] = 120; in wpa_driver_test_get_hw_feature_data()
2658 modes[0].rates[7] = 180; in wpa_driver_test_get_hw_feature_data()
2659 modes[0].rates[8] = 240; in wpa_driver_test_get_hw_feature_data()
2660 modes[0].rates[9] = 360; in wpa_driver_test_get_hw_feature_data()
2661 modes[0].rates[10] = 480; in wpa_driver_test_get_hw_feature_data()
2662 modes[0].rates[11] = 540; in wpa_driver_test_get_hw_feature_data()
2664 modes[1].mode = HOSTAPD_MODE_IEEE80211B; in wpa_driver_test_get_hw_feature_data()
2665 modes[1].num_channels = 11; in wpa_driver_test_get_hw_feature_data()
2666 modes[1].num_rates = 4; in wpa_driver_test_get_hw_feature_data()
2667 modes[1].channels = in wpa_driver_test_get_hw_feature_data()
2669 modes[1].rates = os_zalloc(modes[1].num_rates * sizeof(int)); in wpa_driver_test_get_hw_feature_data()
2670 if (modes[1].channels == NULL || modes[1].rates == NULL) in wpa_driver_test_get_hw_feature_data()
2673 modes[1].channels[i].chan = i + 1; in wpa_driver_test_get_hw_feature_data()
2674 modes[1].channels[i].freq = 2412 + 5 * i; in wpa_driver_test_get_hw_feature_data()
2675 modes[1].channels[i].flag = 0; in wpa_driver_test_get_hw_feature_data()
2677 modes[1].rates[0] = 10; in wpa_driver_test_get_hw_feature_data()
2678 modes[1].rates[1] = 20; in wpa_driver_test_get_hw_feature_data()
2679 modes[1].rates[2] = 55; in wpa_driver_test_get_hw_feature_data()
2680 modes[1].rates[3] = 110; in wpa_driver_test_get_hw_feature_data()
2682 modes[2].mode = HOSTAPD_MODE_IEEE80211A; in wpa_driver_test_get_hw_feature_data()
2683 modes[2].num_channels = 1; in wpa_driver_test_get_hw_feature_data()
2684 modes[2].num_rates = 8; in wpa_driver_test_get_hw_feature_data()
2685 modes[2].channels = os_zalloc(sizeof(struct hostapd_channel_data)); in wpa_driver_test_get_hw_feature_data()
2686 modes[2].rates = os_zalloc(modes[2].num_rates * sizeof(int)); in wpa_driver_test_get_hw_feature_data()
2687 if (modes[2].channels == NULL || modes[2].rates == NULL) in wpa_driver_test_get_hw_feature_data()
2689 modes[2].channels[0].chan = 60; in wpa_driver_test_get_hw_feature_data()
2690 modes[2].channels[0].freq = 5300; in wpa_driver_test_get_hw_feature_data()
2691 modes[2].channels[0].flag = 0; in wpa_driver_test_get_hw_feature_data()
2692 modes[2].rates[0] = 60; in wpa_driver_test_get_hw_feature_data()
2693 modes[2].rates[1] = 90; in wpa_driver_test_get_hw_feature_data()
2694 modes[2].rates[2] = 120; in wpa_driver_test_get_hw_feature_data()
2695 modes[2].rates[3] = 180; in wpa_driver_test_get_hw_feature_data()
2696 modes[2].rates[4] = 240; in wpa_driver_test_get_hw_feature_data()
2697 modes[2].rates[5] = 360; in wpa_driver_test_get_hw_feature_data()
2698 modes[2].rates[6] = 480; in wpa_driver_test_get_hw_feature_data()
2699 modes[2].rates[7] = 540; in wpa_driver_test_get_hw_feature_data()
2701 return modes; in wpa_driver_test_get_hw_feature_data()
2704 if (modes) { in wpa_driver_test_get_hw_feature_data()
2706 os_free(modes[i].channels); in wpa_driver_test_get_hw_feature_data()
2707 os_free(modes[i].rates); in wpa_driver_test_get_hw_feature_data()
2709 os_free(modes); in wpa_driver_test_get_hw_feature_data()