Lines Matching refs:spec
935 struct hw_mode_spec *spec) in rt2x00lib_probe_hw_modes() argument
944 if (spec->supported_rates & SUPPORT_RATE_CCK) in rt2x00lib_probe_hw_modes()
946 if (spec->supported_rates & SUPPORT_RATE_OFDM) in rt2x00lib_probe_hw_modes()
949 channels = kcalloc(spec->num_channels, sizeof(*channels), GFP_KERNEL); in rt2x00lib_probe_hw_modes()
966 for (i = 0; i < spec->num_channels; i++) { in rt2x00lib_probe_hw_modes()
968 spec->channels[i].channel, in rt2x00lib_probe_hw_modes()
969 spec->channels_info[i].max_power, i); in rt2x00lib_probe_hw_modes()
977 if (spec->supported_bands & SUPPORT_BAND_2GHZ) { in rt2x00lib_probe_hw_modes()
985 &spec->ht, sizeof(spec->ht)); in rt2x00lib_probe_hw_modes()
993 if (spec->supported_bands & SUPPORT_BAND_5GHZ) { in rt2x00lib_probe_hw_modes()
995 spec->num_channels - 14; in rt2x00lib_probe_hw_modes()
1003 &spec->ht, sizeof(spec->ht)); in rt2x00lib_probe_hw_modes()
1026 kfree(rt2x00dev->spec.channels_info); in rt2x00lib_remove_hw()
1031 struct hw_mode_spec *spec = &rt2x00dev->spec; in rt2x00lib_probe_hw() local
1040 status = rt2x00lib_probe_hw_modes(rt2x00dev, spec); in rt2x00lib_probe_hw()