Message ID | 1558087516-666-3-git-send-email-aambure@codeaurora.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | correction in pktlog service connect and pktlog enable command | expand |
Abhishek Ambure <aambure@codeaurora.org> wrote: > PKT log enable command expects pdev id in enable params which is missing > in current configuration. Fill pdev id in pkt log enable wmi command for > correct configuration. > > Fixes: ca996ec56608 ("ath10k: implement wmi-tlv backend") > Tested HW: WCN3990 > Tested FW: WLAN.HL.3.1-00963-QCAHLSWMTPL-1 > > Signed-off-by: Abhishek Ambure <aambure@codeaurora.org> > Signed-off-by: Kalle Valo <kvalo@codeaurora.org> How do I know this doesn't break QCA6174/QCA9377?
Kalle Valo <kvalo@codeaurora.org> writes: > Abhishek Ambure <aambure@codeaurora.org> wrote: > >> PKT log enable command expects pdev id in enable params which is missing >> in current configuration. Fill pdev id in pkt log enable wmi command for >> correct configuration. >> >> Fixes: ca996ec56608 ("ath10k: implement wmi-tlv backend") >> Tested HW: WCN3990 >> Tested FW: WLAN.HL.3.1-00963-QCAHLSWMTPL-1 >> >> Signed-off-by: Abhishek Ambure <aambure@codeaurora.org> >> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> > > How do I know this doesn't break QCA6174/QCA9377? Abhishek mentioned me privately that he is checking this.
diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.c b/drivers/net/wireless/ath/ath10k/wmi-tlv.c index 582fb11..8a209f8 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -2981,6 +2981,8 @@ static void *ath10k_wmi_tlv_put_wmm(void *ptr, tlv->len = __cpu_to_le16(sizeof(*cmd)); cmd = (void *)tlv->value; cmd->filter = __cpu_to_le32(filter); + cmd->pdev_id = __cpu_to_le32(0); + cmd->reserved = __cpu_to_le32(0); ptr += sizeof(*tlv); ptr += sizeof(*cmd); diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.h b/drivers/net/wireless/ath/ath10k/wmi-tlv.h index 65e6aa5..5226283 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.h +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.h @@ -1923,6 +1923,7 @@ struct wmi_tlv_vdev_stats { } __packed; struct wmi_tlv_pktlog_enable { + __le32 pdev_id; __le32 reserved; __le32 filter; } __packed;
PKT log enable command expects pdev id in enable params which is missing in current configuration. Fill pdev id in pkt log enable wmi command for correct configuration. Fixes: ca996ec56608 ("ath10k: implement wmi-tlv backend") Tested HW: WCN3990 Tested FW: WLAN.HL.3.1-00963-QCAHLSWMTPL-1 Signed-off-by: Abhishek Ambure <aambure@codeaurora.org> --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 2 ++ drivers/net/wireless/ath/ath10k/wmi-tlv.h | 1 + 2 files changed, 3 insertions(+)