Lines Matching +full:out +full:- +full:of +full:- +full:band
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 #include <linux/of.h>
33 MHZ_TO_KHZ(chan->center_freq), in wiphy_freq_limits_valid_chan()
45 enum nl80211_band band; in wiphy_freq_limits_apply() local
51 for (band = 0; band < NUM_NL80211_BANDS; band++) { in wiphy_freq_limits_apply()
52 struct ieee80211_supported_band *sband = wiphy->bands[band]; in wiphy_freq_limits_apply()
57 for (i = 0; i < sband->n_channels; i++) { in wiphy_freq_limits_apply()
58 struct ieee80211_channel *chan = &sband->channels[i]; in wiphy_freq_limits_apply()
60 if (chan->flags & IEEE80211_CHAN_DISABLED) in wiphy_freq_limits_apply()
66 pr_debug("Disabling freq %d MHz as it's out of OF limits\n", in wiphy_freq_limits_apply()
67 chan->center_freq); in wiphy_freq_limits_apply()
68 chan->flags |= IEEE80211_CHAN_DISABLED; in wiphy_freq_limits_apply()
91 prop = of_find_property(np, "ieee80211-freq-limit", &len); in wiphy_read_of_freq_limits()
96 dev_err(dev, "ieee80211-freq-limit wrong format"); in wiphy_read_of_freq_limits()
103 err = -ENOMEM; in wiphy_read_of_freq_limits()
111 p = of_prop_next_u32(prop, p, &limit->start_freq_khz); in wiphy_read_of_freq_limits()
113 err = -EINVAL; in wiphy_read_of_freq_limits()
117 p = of_prop_next_u32(prop, p, &limit->end_freq_khz); in wiphy_read_of_freq_limits()
119 err = -EINVAL; in wiphy_read_of_freq_limits()
123 if (!limit->start_freq_khz || in wiphy_read_of_freq_limits()
124 !limit->end_freq_khz || in wiphy_read_of_freq_limits()
125 limit->start_freq_khz >= limit->end_freq_khz) { in wiphy_read_of_freq_limits()
126 err = -EINVAL; in wiphy_read_of_freq_limits()