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:
parent
f452e9d26e
commit
9dc50580ff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234750
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user