diff options
| author | Oleksij Rempel <linux@rempel-privat.de> | 2014-03-01 15:15:59 -0500 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2014-03-17 13:13:07 -0400 |
| commit | 7f5c4c8320f853e17ec1c6dbb78d3753ba76a6cd (patch) | |
| tree | d64b1828e4f0d58bda6a325ed2fc483222a287b7 | |
| parent | 4c9a1f32600b9181558737dede31403c1ca05291 (diff) | |
ath9k_htc: add ath9k_htc_beacon_init (but not use it)
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_beacon.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c b/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c index fc16c10549b1..b9b03c1b4010 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c | |||
| @@ -62,6 +62,28 @@ void ath9k_htc_beaconq_config(struct ath9k_htc_priv *priv) | |||
| 62 | } | 62 | } |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | /* | ||
| 66 | * Both nexttbtt and intval have to be in usecs. | ||
| 67 | */ | ||
| 68 | static void ath9k_htc_beacon_init(struct ath9k_htc_priv *priv, | ||
| 69 | struct ath_beacon_config *conf, | ||
| 70 | bool reset_tsf) | ||
| 71 | { | ||
| 72 | struct ath_hw *ah = priv->ah; | ||
| 73 | int ret __attribute__ ((unused)); | ||
| 74 | __be32 htc_imask = 0; | ||
| 75 | u8 cmd_rsp; | ||
| 76 | |||
| 77 | WMI_CMD(WMI_DISABLE_INTR_CMDID); | ||
| 78 | if (reset_tsf) | ||
| 79 | ath9k_hw_reset_tsf(ah); | ||
| 80 | ath9k_htc_beaconq_config(priv); | ||
| 81 | ath9k_hw_beaconinit(ah, conf->nexttbtt, conf->intval); | ||
| 82 | priv->beacon.bmisscnt = 0; | ||
| 83 | htc_imask = cpu_to_be32(ah->imask); | ||
| 84 | WMI_CMD_BUF(WMI_ENABLE_INTR_CMDID, &htc_imask); | ||
| 85 | } | ||
| 86 | |||
| 65 | static void ath9k_htc_beacon_config_sta(struct ath9k_htc_priv *priv, | 87 | static void ath9k_htc_beacon_config_sta(struct ath9k_htc_priv *priv, |
| 66 | struct ath_beacon_config *bss_conf) | 88 | struct ath_beacon_config *bss_conf) |
| 67 | { | 89 | { |
