ah_regdomain.c (187831) | ah_regdomain.c (188084) |
---|---|
1/* 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2005-2006 Atheros Communications, Inc. 4 * All rights reserved. 5 * 6 * Permission to use, copy, modify, and/or distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * | 1/* 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2005-2006 Atheros Communications, Inc. 4 * All rights reserved. 5 * 6 * Permission to use, copy, modify, and/or distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * |
18 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_regdomain.c 187831 2009-01-28 18:00:22Z sam $ | 18 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_regdomain.c 188084 2009-02-03 19:00:56Z sam $ |
19 */ 20#include "opt_ah.h" 21 22#include "ah.h" 23 24#include <net80211/_ieee80211.h> 25#include <net80211/ieee80211_regdomain.h> 26 --- 2187 unchanged lines hidden (view full) --- 2214 if (chans[j].ic_freq == c->ic_freq) { 2215 c->ic_devdata = chans[j].ic_devdata; 2216 break; 2217 } 2218 if (j < 0) { 2219 /* new entry, assign a private channel entry */ 2220 if (next >= N(AH_PRIVATE(ah)->ah_channels)) { 2221 HALDEBUG(ah, HAL_DEBUG_ANY, | 19 */ 20#include "opt_ah.h" 21 22#include "ah.h" 23 24#include <net80211/_ieee80211.h> 25#include <net80211/ieee80211_regdomain.h> 26 --- 2187 unchanged lines hidden (view full) --- 2214 if (chans[j].ic_freq == c->ic_freq) { 2215 c->ic_devdata = chans[j].ic_devdata; 2216 break; 2217 } 2218 if (j < 0) { 2219 /* new entry, assign a private channel entry */ 2220 if (next >= N(AH_PRIVATE(ah)->ah_channels)) { 2221 HALDEBUG(ah, HAL_DEBUG_ANY, |
2222 "%s: too many channels, max %u\n", | 2222 "%s: too many channels, max %zu\n", |
2223 __func__, N(AH_PRIVATE(ah)->ah_channels)); 2224 return AH_FALSE; 2225 } 2226 /* 2227 * Handle frequency mapping for 900MHz devices. 2228 * The hardware uses 2.4GHz frequencies that are 2229 * down-converted. The 802.11 layer uses the 2230 * true frequencies. --- 176 unchanged lines hidden --- | 2223 __func__, N(AH_PRIVATE(ah)->ah_channels)); 2224 return AH_FALSE; 2225 } 2226 /* 2227 * Handle frequency mapping for 900MHz devices. 2228 * The hardware uses 2.4GHz frequencies that are 2229 * down-converted. The 802.11 layer uses the 2230 * true frequencies. --- 176 unchanged lines hidden --- |