From owner-cvs-src-old@FreeBSD.ORG Wed Jan 28 18:00:46 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F47F1065680 for ; Wed, 28 Jan 2009 18:00:46 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0897D8FC14 for ; Wed, 28 Jan 2009 18:00:46 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0SI0jW0084986 for ; Wed, 28 Jan 2009 18:00:45 GMT (envelope-from sam@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0SI0jxS084985 for cvs-src-old@freebsd.org; Wed, 28 Jan 2009 18:00:45 GMT (envelope-from sam@repoman.freebsd.org) Message-Id: <200901281800.n0SI0jxS084985@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to sam@repoman.freebsd.org using -f From: Sam Leffler Date: Wed, 28 Jan 2009 18:00:22 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/conf options src/sys/dev/ath if_ath.c if_athvar.h src/sys/dev/ath/ath_hal ah.c ah.h ah_internal.h ah_regdomain.c src/sys/dev/ath/ath_hal/ar5210 ar5210.h ar5210_attach.c ar5210_misc.c ar5210_reset.c ar5210_xmit.c ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2009 18:00:46 -0000 sam 2009-01-28 18:00:22 UTC FreeBSD src repository Modified files: sys/conf options sys/dev/ath if_ath.c if_athvar.h sys/dev/ath/ath_hal ah.c ah.h ah_internal.h ah_regdomain.c sys/dev/ath/ath_hal/ar5210 ar5210.h ar5210_attach.c ar5210_misc.c ar5210_reset.c ar5210_xmit.c sys/dev/ath/ath_hal/ar5211 ar5211.h ar5211_attach.c ar5211_misc.c ar5211_reset.c ar5211_xmit.c sys/dev/ath/ath_hal/ar5212 ar2316.c ar2317.c ar2413.c ar2425.c ar5111.c ar5112.c ar5212.h ar5212_ani.c ar5212_attach.c ar5212_misc.c ar5212_reset.c ar5212_xmit.c ar5413.c sys/dev/ath/ath_hal/ar5312 ar5312.h ar5312_reset.c sys/dev/ath/ath_hal/ar5416 ar2133.c ar5416.h ar5416_ani.c ar5416_cal.c ar5416_cal.h ar5416_reset.c ar5416_xmit.c Log: SVN rev 187831 on 2009-01-28 18:00:22Z by sam Overhaul regulatory support: o remove HAL_CHANNEL; convert the hal to use net80211 channels; this mostly involves mechanical changes to variable names and channel attribute macros o gut HAL_CHANNEL_PRIVATE as most of the contents are now redundant with the net80211 channel available o change api for ath_hal_init_channels: no more reglass id's, no more outdoor indication (was a noop), anM contents o add ath_hal_getchannels to have the hal construct a channel list without altering runtime state; this is used to retrieve the calibration list for the device in ath_getradiocaps o add ath_hal_set_channels to take a channel list and regulatory data from above and construct internal state to match (maps frequencies for 900MHz cards, setup for CTL lookups, etc) o compact the private channel table: we keep one private channel per frequency instead of one per HAL_CHANNEL; this gives a big space savings and potentially improves ani and calibration by sharing state (to be seen; didn't see anything in testing); a new config option AH_MAXCHAN controls the table size (default to 96 which was chosen to be ~3x the largest expected size) o shrink ani state and change to mirror private channel table (one entry per frequency indexed by ic_devdata) o move ani state flags to private channel state o remove country codes; use net80211 definitions instead o remove GSM regulatory support; it's no longer needed now that we pass in channel lists from above o consolidate ADHOC_NO_11A attribute with DISALLOW_ADHOC_11A o simplify initial channel list construction based on the EEPROM contents; we preserve country code support for now but may want to just fallback to a WWR sku and dispatch the discovered country code up to user space so the channel list can be constructed using the master regdomain tables o defer to net80211 for max antenna gain o eliminate sorting of internal channel table; now that we use ic_devdata as an index, table lookups are O(1) o remove internal copy of the country code; the public one is sufficient o remove AH_SUPPORT_11D conditional compilation; we always support 11d o remove ath_hal_ispublicsafetysku; not needed any more o remove ath_hal_isgsmsku; no more GSM stuff o move Conformance Test Limit (CTL) state from private channel to a lookup using per-band pointers cached in the private state block o remove regulatory class id support; was unused and belongs in net80211 o fix channel list construction to set IEEE80211_CHAN_NOADHOC, IEEE80211_CHAN_NOHOSTAP, and IEEE80211_CHAN_4MSXMIT o remove private channel flags CHANNEL_DFS and CHANNEL_4MS_LIMIT; these are now set in the constructed net80211 channel o store CHANNEL_NFCREQUIRED (Noise Floor Required) channel attribute in one of the driver-private flag bits of the net80211 channel o move 900MHz frequency mapping into the hal; the mapped frequency is stored in the private channel and used throughout the hal (no more mapping in the driver and/or net80211) o remove ath_hal_mhz2ieee; it's no longer needed as net80211 does the calculation and available in the net80211 channel o change noise floor calibration logic to work with compacted private channel table setup; this may require revisiting as we no longer can distinguish channel attributes (e.g. 11b vs 11g vs turbo) but since the data is used only to calculate status data we can live with it for now o change ah_getChipPowerLimits internal method to operate on a single channel instead of all channels in the private channel table o add ath_hal_gethwchannel to map a net80211 channel to a h/w frequency (always the same except for 900MHz channels) o add HAL_EEBADREG and HAL_EEBADCC status codes to better identify regulatory problems o remove CTRY_DEBUG and CTRY_DEFAULT enum's; these come from net80211 now o change ath_hal_getwirelessmodes to really return wireless modes supported by the hardware (was previously applying regulatory constraints) o return channel interference status with IEEE80211_CHANSTATE_CWINT (should change to a callback so hal api's can take const pointers) o remove some #define's no longer needed with the inclusion of Sponsored by: Carlson Wireless Revision Changes Path 1.658 +1 -1 src/sys/conf/options 1.3 +36 -95 src/sys/dev/ath/ath_hal/ah.c 1.2 +61 -107 src/sys/dev/ath/ath_hal/ah.h 1.3 +98 -111 src/sys/dev/ath/ath_hal/ah_internal.h 1.3 +818 -1282 src/sys/dev/ath/ath_hal/ah_regdomain.c 1.2 +11 -9 src/sys/dev/ath/ath_hal/ar5210/ar5210.h 1.2 +10 -17 src/sys/dev/ath/ath_hal/ar5210/ar5210_attach.c 1.2 +4 -3 src/sys/dev/ath/ath_hal/ar5210/ar5210_misc.c 1.3 +36 -37 src/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c 1.2 +4 -4 src/sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c 1.2 +14 -12 src/sys/dev/ath/ath_hal/ar5211/ar5211.h 1.2 +13 -19 src/sys/dev/ath/ath_hal/ar5211/ar5211_attach.c 1.3 +5 -5 src/sys/dev/ath/ath_hal/ar5211/ar5211_misc.c 1.3 +154 -172 src/sys/dev/ath/ath_hal/ar5211/ar5211_reset.c 1.2 +4 -4 src/sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c 1.2 +42 -46 src/sys/dev/ath/ath_hal/ar5212/ar2316.c 1.2 +39 -42 src/sys/dev/ath/ath_hal/ar5212/ar2317.c 1.2 +47 -50 src/sys/dev/ath/ath_hal/ar5212/ar2413.c 1.2 +44 -47 src/sys/dev/ath/ath_hal/ar5212/ar2425.c 1.3 +39 -31 src/sys/dev/ath/ath_hal/ar5212/ar5111.c 1.2 +69 -61 src/sys/dev/ath/ath_hal/ar5212/ar5112.c 1.2 +35 -29 src/sys/dev/ath/ath_hal/ar5212/ar5212.h 1.3 +28 -61 src/sys/dev/ath/ath_hal/ar5212/ar5212_ani.c 1.2 +4 -5 src/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c 1.4 +10 -12 src/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c 1.3 +280 -306 src/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c 1.2 +4 -4 src/sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c 1.2 +59 -54 src/sys/dev/ath/ath_hal/ar5212/ar5413.c 1.3 +5 -3 src/sys/dev/ath/ath_hal/ar5312/ar5312.h 1.3 +65 -97 src/sys/dev/ath/ath_hal/ar5312/ar5312_reset.c 1.2 +14 -19 src/sys/dev/ath/ath_hal/ar5416/ar2133.c 1.2 +12 -9 src/sys/dev/ath/ath_hal/ar5416/ar5416.h 1.2 +28 -60 src/sys/dev/ath/ath_hal/ar5416/ar5416_ani.c 1.2 +33 -46 src/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c 1.2 +7 -6 src/sys/dev/ath/ath_hal/ar5416/ar5416_cal.h 1.3 +212 -271 src/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c 1.2 +2 -2 src/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c 1.227 +62 -282 src/sys/dev/ath/if_ath.c 1.78 +1 -1 src/sys/dev/ath/if_athvar.h