ar9280.c (228517) | ar9280.c (240449) |
---|---|
1/* 2 * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * | 1/* 2 * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * |
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9280.c 228517 2011-12-15 00:59:11Z adrian $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9280.c 240449 2012-09-13 07:25:41Z adrian $ |
18 */ 19#include "opt_ah.h" 20 21/* 22 * NB: Merlin and later have a simpler RF backend. 23 */ 24#include "ah.h" 25#include "ah_internal.h" --- 81 unchanged lines hidden (view full) --- 107 txctl &~ AR_PHY_CCK_TX_CTRL_JAPAN); 108 } 109 } else { 110 bMode = 0; 111 fracMode = 0; 112 113 switch (frac_n_5g) { 114 case 0: | 18 */ 19#include "opt_ah.h" 20 21/* 22 * NB: Merlin and later have a simpler RF backend. 23 */ 24#include "ah.h" 25#include "ah_internal.h" --- 81 unchanged lines hidden (view full) --- 107 txctl &~ AR_PHY_CCK_TX_CTRL_JAPAN); 108 } 109 } else { 110 bMode = 0; 111 fracMode = 0; 112 113 switch (frac_n_5g) { 114 case 0: |
115 if ((freq % 20) == 0) { | 115 /* 116 * Enable fractional mode for half/quarter rate 117 * channels. 118 * 119 * This is from the Linux ath9k code, rather than 120 * the Atheros HAL code. 121 */ 122 if (IEEE80211_IS_CHAN_QUARTER(chan) || 123 IEEE80211_IS_CHAN_HALF(chan)) 124 aModeRefSel = 0; 125 else if ((freq % 20) == 0) { |
116 aModeRefSel = 3; 117 } else if ((freq % 10) == 0) { 118 aModeRefSel = 2; 119 } 120 if (aModeRefSel) break; 121 case 1: 122 default: 123 aModeRefSel = 0; --- 271 unchanged lines hidden --- | 126 aModeRefSel = 3; 127 } else if ((freq % 10) == 0) { 128 aModeRefSel = 2; 129 } 130 if (aModeRefSel) break; 131 case 1: 132 default: 133 aModeRefSel = 0; --- 271 unchanged lines hidden --- |