Deleted Added
full compact
ar5212_misc.c (234750) ar5212_misc.c (234774)
1/*
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-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) 2002-2009 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-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/ar5212/ar5212_misc.c 234750 2012-04-28 08:15:40Z adrian $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c 234774 2012-04-28 22:03:19Z adrian $
18 */
19#include "opt_ah.h"
20
21#include "ah.h"
22#include "ah_internal.h"
23#include "ah_devid.h"
24#include "ah_desc.h" /* NB: for HAL_PHYERR* */
25

--- 1061 unchanged lines hidden (view full) ---

1087 return AH_TRUE;
1088 } else {
1089 if (argsize != sizeof(struct ar5212AniParams))
1090 return AH_FALSE;
1091 return ar5212AniSetParams(ah, args, args);
1092 }
1093 break;
1094 case HAL_DIAG_CHANSURVEY:
18 */
19#include "opt_ah.h"
20
21#include "ah.h"
22#include "ah_internal.h"
23#include "ah_devid.h"
24#include "ah_desc.h" /* NB: for HAL_PHYERR* */
25

--- 1061 unchanged lines hidden (view full) ---

1087 return AH_TRUE;
1088 } else {
1089 if (argsize != sizeof(struct ar5212AniParams))
1090 return AH_FALSE;
1091 return ar5212AniSetParams(ah, args, args);
1092 }
1093 break;
1094 case HAL_DIAG_CHANSURVEY:
1095 if (AH_PRIVATE(ah)->ah_curchan == NULL)
1096 return AH_FALSE;
1097 *result =
1098 &ahp->ah_chansurvey[AH_PRIVATE(ah)->ah_curchan->ic_devdata];
1095 *result = &ahp->ah_chansurvey;
1099 *resultsize = sizeof(HAL_CHANNEL_SURVEY);
1100 return AH_TRUE;
1101 }
1102 return AH_FALSE;
1103}
1104
1105/*
1106 * Check whether there's an in-progress NF completion.

--- 147 unchanged lines hidden ---
1096 *resultsize = sizeof(HAL_CHANNEL_SURVEY);
1097 return AH_TRUE;
1098 }
1099 return AH_FALSE;
1100}
1101
1102/*
1103 * Check whether there's an in-progress NF completion.

--- 147 unchanged lines hidden ---