u32 libipw_channel_to_freq(struct libipw_device * ieee, u8 channel) { const struct libipw_channel * ch; if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) return 0; ch = libipw_get_channel(ieee, channel); if (!ch->channel) return 0; return ch->freq; }
u32 libipw_channel_to_freq(struct libipw_device * ieee, u8 channel) { const struct libipw_channel * ch; /* Driver needs to initialize the geography map before using * these helper functions */ if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) return 0; ch = libipw_get_channel(ieee, channel); if (!ch->channel) return 0; return ch->freq; }