Lines Matching refs:modes
736 struct wpa_hw_modes *modes; in wpa_driver_test_get_hw_feature_data() local
740 modes = os_zalloc(*num_modes * sizeof(struct wpa_hw_modes)); in wpa_driver_test_get_hw_feature_data()
741 if (modes == NULL) in wpa_driver_test_get_hw_feature_data()
743 modes[0].mode = WPA_MODE_IEEE80211G; in wpa_driver_test_get_hw_feature_data()
744 modes[0].num_channels = 1; in wpa_driver_test_get_hw_feature_data()
745 modes[0].num_rates = 1; in wpa_driver_test_get_hw_feature_data()
746 modes[0].channels = os_zalloc(sizeof(struct wpa_channel_data)); in wpa_driver_test_get_hw_feature_data()
747 modes[0].rates = os_zalloc(sizeof(struct wpa_rate_data)); in wpa_driver_test_get_hw_feature_data()
748 if (modes[0].channels == NULL || modes[0].rates == NULL) { in wpa_driver_test_get_hw_feature_data()
749 ieee80211_sta_free_hw_features(modes, *num_modes); in wpa_driver_test_get_hw_feature_data()
752 modes[0].channels[0].chan = 1; in wpa_driver_test_get_hw_feature_data()
753 modes[0].channels[0].freq = 2412; in wpa_driver_test_get_hw_feature_data()
754 modes[0].channels[0].flag = WPA_CHAN_W_SCAN | WPA_CHAN_W_ACTIVE_SCAN; in wpa_driver_test_get_hw_feature_data()
755 modes[0].rates[0].rate = 10; in wpa_driver_test_get_hw_feature_data()
756 modes[0].rates[0].flags = WPA_RATE_BASIC | WPA_RATE_SUPPORTED | in wpa_driver_test_get_hw_feature_data()
759 return modes; in wpa_driver_test_get_hw_feature_data()