Add a method to explicitly disable radar reporting if required.
This commit is contained in:
parent
e9d8a3ab4b
commit
c9b690d37a
@ -145,6 +145,26 @@ ath_dfs_radar_enable(struct ath_softc *sc, struct ieee80211_channel *chan)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Explicity disable radar reporting.
|
||||||
|
*
|
||||||
|
* Return 0 if it was disabled, < 0 on error.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
ath_dfs_radar_disable(struct ath_softc *sc)
|
||||||
|
{
|
||||||
|
#if 0
|
||||||
|
HAL_PHYERR_PARAM pe;
|
||||||
|
|
||||||
|
(void) ath_hal_getdfsthresh(sc->sc_ah, &pe);
|
||||||
|
pe.pe_enabled = 0;
|
||||||
|
(void) ath_hal_enabledfs(sc->sc_ah, &pe);
|
||||||
|
return (0);
|
||||||
|
#else
|
||||||
|
return (0);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Process DFS related PHY errors
|
* Process DFS related PHY errors
|
||||||
*
|
*
|
||||||
|
@ -35,6 +35,7 @@ extern int ath_dfs_attach(struct ath_softc *sc);
|
|||||||
extern int ath_dfs_detach(struct ath_softc *sc);
|
extern int ath_dfs_detach(struct ath_softc *sc);
|
||||||
extern int ath_dfs_radar_enable(struct ath_softc *,
|
extern int ath_dfs_radar_enable(struct ath_softc *,
|
||||||
struct ieee80211_channel *chan);
|
struct ieee80211_channel *chan);
|
||||||
|
extern int ath_dfs_radar_disable(struct ath_softc *sc);
|
||||||
extern void ath_dfs_process_phy_err(struct ath_softc *sc, struct mbuf *m,
|
extern void ath_dfs_process_phy_err(struct ath_softc *sc, struct mbuf *m,
|
||||||
uint64_t tsf, struct ath_rx_status *rxstat);
|
uint64_t tsf, struct ath_rx_status *rxstat);
|
||||||
extern int ath_dfs_process_radar_event(struct ath_softc *sc,
|
extern int ath_dfs_process_radar_event(struct ath_softc *sc,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user