Skip to content

Commit

Permalink
ath10k: Support generic ct_special access to the fwtest firmware API.
Browse files Browse the repository at this point in the history
Used for some back-door hacks for both CT and stock firmware,
if you know the right IDs and values to use...

Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Nov 16, 2017
1 parent 6074845 commit 46f19a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 9 additions & 2 deletions ath10k-4.13/debug.c
Expand Up @@ -3154,8 +3154,15 @@ static ssize_t ath10k_write_ct_special(struct file *file,
* won't survive through firmware reboots, etc.
*/

/* Send it to the firmware. */
ret = ath10k_wmi_pdev_set_special(ar, id, val);
if ((id & 0xFF0000) == 0xFF0000) {
/* Send it to the firmware through the fwtest (stock-ish) API */
/* Search for WMI_FWTEST_CMDID in core.c */
ret = ath10k_wmi_pdev_set_fwtest(ar, id & 0xFFFF, val);
}
else {
/* Send it to the firmware though ct-special API */
ret = ath10k_wmi_pdev_set_special(ar, id, val);
}
unlock:
mutex_unlock(&ar->conf_mutex);

Expand Down
3 changes: 2 additions & 1 deletion ath10k-4.13/wmi.h
Expand Up @@ -5195,7 +5195,8 @@ enum wmi_10_4_vdev_param {
#define WMI_VDEV_PARAM_TXBF_MU_TX_BFER BIT(3)

#define WMI_TXBF_STS_CAP_OFFSET_LSB 4
#define WMI_TXBF_STS_CAP_OFFSET_MASK 0xf0
#define WMI_TXBF_STS_CAP_OFFSET_MASK 0x70
#define WMI_TXBF_CONF_IMPLICIT_BF BIT(7)
#define WMI_BF_SOUND_DIM_OFFSET_LSB 8
#define WMI_BF_SOUND_DIM_OFFSET_MASK 0xf00

Expand Down

0 comments on commit 46f19a6

Please sign in to comment.