Skip to content

Commit

Permalink
wifi: ath12k: peer assoc for 320 MHz
Browse files Browse the repository at this point in the history
Add required peer association definitions and processing if the
bandwidth is 320 MHz.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Signed-off-by: Pradeep Kumar Chitrapu<quic_pradeepc@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230725224034.14045-9-quic_alokad@quicinc.com
  • Loading branch information
Aloka Dixit authored and Kalle Valo committed Aug 3, 2023
1 parent 5b70ec6 commit 6734cf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/ath/ath12k/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1816,6 +1816,8 @@ static void ath12k_wmi_copy_peer_flags(struct wmi_peer_assoc_complete_cmd *cmd,
cmd->peer_flags |= cpu_to_le32(WMI_PEER_80MHZ);
if (arg->bw_160)
cmd->peer_flags |= cpu_to_le32(WMI_PEER_160MHZ);
if (arg->bw_320)
cmd->peer_flags |= cpu_to_le32(WMI_PEER_EXT_320MHZ);

/* Typically if STBC is enabled for VHT it should be enabled
* for HT as well
Expand Down
2 changes: 2 additions & 0 deletions drivers/net/wireless/ath/ath12k/wmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,7 @@ enum wmi_tlv_peer_flags {

enum wmi_tlv_peer_flags_ext {
WMI_PEER_EXT_EHT = BIT(0),
WMI_PEER_EXT_320MHZ = BIT(1),
};

/** Enum list of TLV Tags for each parameter structure type. */
Expand Down Expand Up @@ -3552,6 +3553,7 @@ struct ath12k_wmi_peer_assoc_arg {
bool bw_40;
bool bw_80;
bool bw_160;
bool bw_320;
bool stbc_flag;
bool ldpc_flag;
bool static_mimops_flag;
Expand Down

0 comments on commit 6734cf9

Please sign in to comment.