1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +00:00

Fetch the channel survey code from the HAL.

This information is currently not being populated by any of the HAL
modules.
This commit is contained in:
Adrian Chadd 2012-04-28 08:15:40 +00:00
parent f452e9d26e
commit 9dc50580ff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234750
2 changed files with 9 additions and 0 deletions

View File

@ -320,6 +320,7 @@ struct ath_hal_5212 {
struct ar5212AniParams ah_aniParams5; /* 5GHz parameters */
struct ar5212AniState *ah_curani; /* cached last reference */
struct ar5212AniState ah_ani[AH_MAXCHAN]; /* per-channel state */
HAL_CHANNEL_SURVEY ah_chansurvey[AH_MAXCHAN]; /* channel survey */
/* AR5416 uses some of the AR5212 ANI code; these are the ANI methods */
HAL_BOOL (*ah_aniControl) (struct ath_hal *, HAL_ANI_CMD cmd, int param);

View File

@ -1090,6 +1090,14 @@ ar5212GetDiagState(struct ath_hal *ah, int request,
return AH_FALSE;
return ar5212AniSetParams(ah, args, args);
}
break;
case HAL_DIAG_CHANSURVEY:
if (AH_PRIVATE(ah)->ah_curchan == NULL)
return AH_FALSE;
*result =
&ahp->ah_chansurvey[AH_PRIVATE(ah)->ah_curchan->ic_devdata];
*resultsize = sizeof(HAL_CHANNEL_SURVEY);
return AH_TRUE;
}
return AH_FALSE;
}