Lines Matching +full:convert +full:- +full:rate
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>,
14 driver Copyright(c) 2003 - 2004 Intel Corporation.
31 /* Lightweight function to convert a frequency (in Mhz) to a channel number. */
40 channel = (freq - 2407) / 5; in b43legacy_freq_to_channel_bg()
51 /* Lightweight function to convert a channel number to a frequency (in Mhz). */
73 int b43legacy_is_cck_rate(int rate) in b43legacy_is_cck_rate() argument
75 return (rate == B43legacy_CCK_RATE_1MB || in b43legacy_is_cck_rate()
76 rate == B43legacy_CCK_RATE_2MB || in b43legacy_is_cck_rate()
77 rate == B43legacy_CCK_RATE_5MB || in b43legacy_is_cck_rate()
78 rate == B43legacy_CCK_RATE_11MB); in b43legacy_is_cck_rate()
82 int b43legacy_is_ofdm_rate(int rate) in b43legacy_is_ofdm_rate() argument
84 return !b43legacy_is_cck_rate(rate); in b43legacy_is_ofdm_rate()