ath11k: Update tx and rx chain count properly on drv_set_antenna
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/9 ath11k: Update tx and rx chain count properly on drv_set_antenna
From: Sriram R <[email protected]>
Set the number of tx and rx chains properly on drv_set_antenna(). This will ensure the related ht/vht/he caps are properly recalculated based on the tx/rx chains set.
--- drivers/net/wireless/ath/ath11k/mac.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/wireless/ath/ath11k/mac.c +4 -0
@@ -3480,6 +3480,8 @@ static int __ath11k_set_antenna(struct ath11k *ar, u32 tx_ant, u32 rx_ant)return ret; } + ar->num_tx_chains =get_num_chains (tx_ant); + ret =ath11k_wmi_pdev_set_param (ar,WMI_PDEV_PARAM_RX_CHAIN_MASK , rx_ant, ar->pdev->pdev_id);if (ret) {
@@ -3488,6 +3490,8 @@ static int __ath11k_set_antenna(struct ath11k *ar, u32 tx_ant, u32 rx_ant)return ret; } + ar->num_rx_chains =get_num_chains (rx_ant); +/* Reload HT/VHT/HE capability */ ath11k_mac_setup_ht_vht_cap (ar, &ar->pdev->cap,NULL );ath11k_mac_setup_he_cap (ar, &ar->pdev->cap);
Signature · 1 line
2.7.4
Quoted 6 lines · Kalle Valo
Set the number of tx and rx chains properly on
drv_set_antenna(). This will ensure the related ht/vht/he caps are properly recalculated based on the tx/rx chains set.Signed-off-by Sriram R <[email protected]>Signed-off-by Kalle Valo <[email protected]>
9 patches applied to ath-next branch of ath.git, thanks.
a3c5195a97af ath11k: Update tx and rx chain count properly on drv_set_antenna c000e56ee6b0 ath11k: Advertise MPDU start spacing as no restriction 5e02bc7354e1 ath11k: fix memory leak in monitor mode28dee8ef7645 ath11k: fix vht guard interval mappinga9e945eadf17 ath11k: update tx duration in station info b9269a078ae6 ath11k: Skip update peer stats for management packets 0366f42640a4 ath11k: Move mac80211 hw allocation before wmi_init command 9c57d7e3b488 ath11k: Setup REO destination ring before sending wmi_init command fcaf49d0f2dc ath11k: fix indentation in ath11k_mac_prepare_he_mode()
Signature · 3 lines
https://patchwork.kernel.org/patch/11265469/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 6 lines · Kalle Valo
Set the number of tx and rx chains properly on
drv_set_antenna(). This will ensure the related ht/vht/he caps are properly recalculated based on the tx/rx chains set.Signed-off-by Sriram R <[email protected]>Signed-off-by Kalle Valo <[email protected]>
9 patches applied to ath-next branch of ath.git, thanks.
a3c5195a97af ath11k: Update tx and rx chain count properly on drv_set_antenna c000e56ee6b0 ath11k: Advertise MPDU start spacing as no restriction 5e02bc7354e1 ath11k: fix memory leak in monitor mode28dee8ef7645 ath11k: fix vht guard interval mappinga9e945eadf17 ath11k: update tx duration in station info b9269a078ae6 ath11k: Skip update peer stats for management packets 0366f42640a4 ath11k: Move mac80211 hw allocation before wmi_init command 9c57d7e3b488 ath11k: Setup REO destination ring before sending wmi_init command fcaf49d0f2dc ath11k: fix indentation in ath11k_mac_prepare_he_mode()
Signature · 9 lines
https://patchwork.kernel.org/patch/11265469/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 1/9 ath11k: Update tx and rx chain count properly on drv_set_antenna
In reply to a message not in the archiveFrom: Sriram R <[email protected]>
Set the number of tx and rx chains properly on drv_set_antenna(). This will ensure the related ht/vht/he caps are properly recalculated based on the tx/rx chains set.
--- drivers/net/wireless/ath/ath11k/mac.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/wireless/ath/ath11k/mac.c +4 -0
@@ -3480,6 +3480,8 @@ static int __ath11k_set_antenna(struct ath11k *ar, u32 tx_ant, u32 rx_ant)return ret; } + ar->num_tx_chains =get_num_chains (tx_ant); + ret =ath11k_wmi_pdev_set_param (ar,WMI_PDEV_PARAM_RX_CHAIN_MASK , rx_ant, ar->pdev->pdev_id);if (ret) {
@@ -3488,6 +3490,8 @@ static int __ath11k_set_antenna(struct ath11k *ar, u32 tx_ant, u32 rx_ant)return ret; } + ar->num_rx_chains =get_num_chains (rx_ant); +/* Reload HT/VHT/HE capability */ ath11k_mac_setup_ht_vht_cap (ar, &ar->pdev->cap,NULL );ath11k_mac_setup_he_cap (ar, &ar->pdev->cap);
Signature · 7 lines
2.7.4 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 2/9 ath11k: Advertise MPDU start spacing as no restriction
In reply to a message not in the archiveFrom: Venkateswara Naralasetty <[email protected]>
Adverise MPDU start spacing as no restriction in ht capabilities, Since IPQ8074 hw support all sorts of mpdu start spcing. With this observed minor uplink performance improvement in lower data frame size case with Veriwave clients.
--- drivers/net/wireless/ath/ath11k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/mac.c +1 -1
@@ -3089,7 +3089,7 @@ ath11k_create_ht_cap(struct ath11k *ar, u32 ar_ht_cap, u32 rate_cap_rx_chainmask ht_cap.ht_supported =1 ; ht_cap.ampdu_factor =IEEE80211_HT_MAX_AMPDU_64K ; - ht_cap.ampdu_density =IEEE80211_HT_MPDU_DENSITY_8 ; + ht_cap.ampdu_density =IEEE80211_HT_MPDU_DENSITY_NONE ; ht_cap.cap |=IEEE80211_HT_CAP_SUP_WIDTH_20_40 ; ht_cap.cap |=IEEE80211_HT_CAP_DSSSCCK40 ; ht_cap.cap |=WLAN_HT_CAP_SM_PS_STATIC <<IEEE80211_HT_CAP_SM_PS_SHIFT ;
Signature · 1 line
2.7.4
PATCH 2/9 ath11k: Advertise MPDU start spacing as no restriction
In reply to a message not in the archiveFrom: Venkateswara Naralasetty <[email protected]>
Adverise MPDU start spacing as no restriction in ht capabilities, Since IPQ8074 hw support all sorts of mpdu start spcing. With this observed minor uplink performance improvement in lower data frame size case with Veriwave clients.
--- drivers/net/wireless/ath/ath11k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/mac.c +1 -1
@@ -3089,7 +3089,7 @@ ath11k_create_ht_cap(struct ath11k *ar, u32 ar_ht_cap, u32 rate_cap_rx_chainmask ht_cap.ht_supported =1 ; ht_cap.ampdu_factor =IEEE80211_HT_MAX_AMPDU_64K ; - ht_cap.ampdu_density =IEEE80211_HT_MPDU_DENSITY_8 ; + ht_cap.ampdu_density =IEEE80211_HT_MPDU_DENSITY_NONE ; ht_cap.cap |=IEEE80211_HT_CAP_SUP_WIDTH_20_40 ; ht_cap.cap |=IEEE80211_HT_CAP_DSSSCCK40 ; ht_cap.cap |=WLAN_HT_CAP_SM_PS_STATIC <<IEEE80211_HT_CAP_SM_PS_SHIFT ;
Signature · 7 lines
2.7.4 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 3/9 ath11k: fix memory leak in monitor mode
In reply to a message not in the archiveFrom: Miles Hu <[email protected]>
remove tail check to avoid last amsdu leak.
recycle skb in ppdu id wrap around case
--- drivers/net/wireless/ath/ath11k/dp_rx.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/net/wireless/ath/ath11k/dp_rx.c +9 -2
@@ -3735,8 +3735,15 @@ ath11k_dp_rx_mon_mpdu_pop(struct ath11k *ar,if (ath11k_dp_rx_mon_comp_ppduid (msdu_ppdu_id, ppdu_id, - &rx_bufs_used)) + &rx_bufs_used)) { +if (rx_bufs_used) { + drop_mpdu = true; +dev_kfree_skb_any (msdu); + msdu =NULL ; + goto next_msdu; + }return rx_bufs_used; + } pmon->mon_last_linkdesc_paddr = paddr; is_first_msdu = false; }
@@ -3938,7 +3945,7 @@ static int ath11k_dp_rx_mon_deliver(struct ath11k *ar, u32 mac_id,ath11k_dp_rx_deliver_msdu (ar, napi, mon_skb); mon_skb = skb_next; - }while (mon_skb && (mon_skb != tail_msdu)); + }while (mon_skb); rxs->flag =0 ;return 0 ;
Signature · 7 lines
2.7.4 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 3/9 ath11k: fix memory leak in monitor mode
In reply to a message not in the archiveFrom: Miles Hu <[email protected]>
remove tail check to avoid last amsdu leak.
recycle skb in ppdu id wrap around case
--- drivers/net/wireless/ath/ath11k/dp_rx.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/net/wireless/ath/ath11k/dp_rx.c +9 -2
@@ -3735,8 +3735,15 @@ ath11k_dp_rx_mon_mpdu_pop(struct ath11k *ar,if (ath11k_dp_rx_mon_comp_ppduid (msdu_ppdu_id, ppdu_id, - &rx_bufs_used)) + &rx_bufs_used)) { +if (rx_bufs_used) { + drop_mpdu = true; +dev_kfree_skb_any (msdu); + msdu =NULL ; + goto next_msdu; + }return rx_bufs_used; + } pmon->mon_last_linkdesc_paddr = paddr; is_first_msdu = false; }
@@ -3938,7 +3945,7 @@ static int ath11k_dp_rx_mon_deliver(struct ath11k *ar, u32 mac_id,ath11k_dp_rx_deliver_msdu (ar, napi, mon_skb); mon_skb = skb_next; - }while (mon_skb && (mon_skb != tail_msdu)); + }while (mon_skb); rxs->flag =0 ;return 0 ;
Signature · 1 line
2.7.4
PATCH 4/9 ath11k: fix vht guard interval mapping
In reply to a message not in the archiveFrom: Manikanta Pubbisetty <[email protected]>
Guard interval value which comes from VHT_SIG_A TLV has a mapping where value 0 corresponds to LGI, 1 and 3 corresponds to SGI.
Value 3 which is SGI(0.4us) in VHT was incorrectly mapped to a GI of 3.2us(only applicable in HE) resulting in incorrect rx GI stats. Fixing the mapping.
--- drivers/net/wireless/ath/ath11k/hal_rx.c | 16 +++++++++++++--- drivers/net/wireless/ath/ath11k/hal_rx.h | 6 ++++++ 2 files changed, 19 insertions(+), 3 deletions(-)
drivers/net/wireless/ath/ath11k/hal_rx.c +13 -3
@@ -920,6 +920,7 @@ ath11k_hal_rx_parse_mon_status_tlv(struct ath11k_base *ab, (struct hal_rx_vht_sig_a_info *)tlv_data;u32 nsts;u32 group_id; +u8 gi_setting; info0 =__le32_to_cpu (vht_sig->info0); info1 =__le32_to_cpu (vht_sig->info1);
@@ -928,9 +929,18 @@ ath11k_hal_rx_parse_mon_status_tlv(struct ath11k_base *ab, info0); ppdu_info->mcs =FIELD_GET (HAL_RX_VHT_SIG_A_INFO_INFO1_MCS , info1); - ppdu_info->gi = -FIELD_GET (HAL_RX_VHT_SIG_A_INFO_INFO1_GI_SETTING , - info1); + gi_setting =FIELD_GET (HAL_RX_VHT_SIG_A_INFO_INFO1_GI_SETTING , + info1); +switch (gi_setting) { +case HAL_RX_VHT_SIG_A_NORMAL_GI : + ppdu_info->gi =HAL_RX_GI_0_8_US ; +break ; +case HAL_RX_VHT_SIG_A_SHORT_GI : +case HAL_RX_VHT_SIG_A_SHORT_GI_AMBIGUITY : + ppdu_info->gi =HAL_RX_GI_0_4_US ; +break ; + } + ppdu_info->is_stbc = info0 &HAL_RX_VHT_SIG_A_INFO_INFO0_STBC ; nsts =FIELD_GET (HAL_RX_VHT_SIG_A_INFO_INFO0_NSTS , info0);if (ppdu_info->is_stbc && nsts >0 )
drivers/net/wireless/ath/ath11k/hal_rx.h +6 -0
@@ -189,6 +189,12 @@ struct hal_rx_vht_sig_a_info {__le32 info1; } __packed; +enum hal_rx_vht_sig_a_gi_setting { +HAL_RX_VHT_SIG_A_NORMAL_GI =0 , +HAL_RX_VHT_SIG_A_SHORT_GI =1 , +HAL_RX_VHT_SIG_A_SHORT_GI_AMBIGUITY =3 , +}; +#define HAL_RX_HE_SIG_A_SU_INFO_INFO0_TRANSMIT_MCS GENMASK(6, 3)#define HAL_RX_HE_SIG_A_SU_INFO_INFO0_DCM BIT(7)#define HAL_RX_HE_SIG_A_SU_INFO_INFO0_TRANSMIT_BW GENMASK(20, 19)
Signature · 1 line
2.7.4
PATCH 4/9 ath11k: fix vht guard interval mapping
In reply to a message not in the archiveFrom: Manikanta Pubbisetty <[email protected]>
Guard interval value which comes from VHT_SIG_A TLV has a mapping where value 0 corresponds to LGI, 1 and 3 corresponds to SGI.
Value 3 which is SGI(0.4us) in VHT was incorrectly mapped to a GI of 3.2us(only applicable in HE) resulting in incorrect rx GI stats. Fixing the mapping.
--- drivers/net/wireless/ath/ath11k/hal_rx.c | 16 +++++++++++++--- drivers/net/wireless/ath/ath11k/hal_rx.h | 6 ++++++ 2 files changed, 19 insertions(+), 3 deletions(-)
drivers/net/wireless/ath/ath11k/hal_rx.c +13 -3
@@ -920,6 +920,7 @@ ath11k_hal_rx_parse_mon_status_tlv(struct ath11k_base *ab, (struct hal_rx_vht_sig_a_info *)tlv_data;u32 nsts;u32 group_id; +u8 gi_setting; info0 =__le32_to_cpu (vht_sig->info0); info1 =__le32_to_cpu (vht_sig->info1);
@@ -928,9 +929,18 @@ ath11k_hal_rx_parse_mon_status_tlv(struct ath11k_base *ab, info0); ppdu_info->mcs =FIELD_GET (HAL_RX_VHT_SIG_A_INFO_INFO1_MCS , info1); - ppdu_info->gi = -FIELD_GET (HAL_RX_VHT_SIG_A_INFO_INFO1_GI_SETTING , - info1); + gi_setting =FIELD_GET (HAL_RX_VHT_SIG_A_INFO_INFO1_GI_SETTING , + info1); +switch (gi_setting) { +case HAL_RX_VHT_SIG_A_NORMAL_GI : + ppdu_info->gi =HAL_RX_GI_0_8_US ; +break ; +case HAL_RX_VHT_SIG_A_SHORT_GI : +case HAL_RX_VHT_SIG_A_SHORT_GI_AMBIGUITY : + ppdu_info->gi =HAL_RX_GI_0_4_US ; +break ; + } + ppdu_info->is_stbc = info0 &HAL_RX_VHT_SIG_A_INFO_INFO0_STBC ; nsts =FIELD_GET (HAL_RX_VHT_SIG_A_INFO_INFO0_NSTS , info0);if (ppdu_info->is_stbc && nsts >0 )
drivers/net/wireless/ath/ath11k/hal_rx.h +6 -0
@@ -189,6 +189,12 @@ struct hal_rx_vht_sig_a_info {__le32 info1; } __packed; +enum hal_rx_vht_sig_a_gi_setting { +HAL_RX_VHT_SIG_A_NORMAL_GI =0 , +HAL_RX_VHT_SIG_A_SHORT_GI =1 , +HAL_RX_VHT_SIG_A_SHORT_GI_AMBIGUITY =3 , +}; +#define HAL_RX_HE_SIG_A_SU_INFO_INFO0_TRANSMIT_MCS GENMASK(6, 3)#define HAL_RX_HE_SIG_A_SU_INFO_INFO0_DCM BIT(7)#define HAL_RX_HE_SIG_A_SU_INFO_INFO0_TRANSMIT_BW GENMASK(20, 19)
Signature · 7 lines
2.7.4 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 5/9 ath11k: update tx duration in station info
In reply to a message not in the archiveFrom: Venkateswara Naralasetty <[email protected]>
Update tx duration in station info form PPDU stats so that users can dump tx duration of the station.
--- drivers/net/wireless/ath/ath11k/core.h | 1 + drivers/net/wireless/ath/ath11k/dp_rx.c | 2 +- drivers/net/wireless/ath/ath11k/mac.c | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/core.h +1 -0
@@ -335,6 +335,7 @@ struct ath11k_sta {struct rate_info txrate;struct rate_info last_txrate;u64 rx_duration; +u64 tx_duration;u8 rssi_comb;struct ath11k_htt_tx_stats *tx_stats;struct ath11k_rx_peer_stats *rx_stats;
drivers/net/wireless/ath/ath11k/dp_rx.c +1 -1
@@ -1147,7 +1147,7 @@ ath11k_update_per_peer_tx_stats(struct ath11k *ar, arsta->txrate.nss = nss; arsta->txrate.bw =ath11k_mac_bw_to_mac80211_bw (bw); arsta->tx_info.status.rates[0 ].flags |=ath11k_bw_to_mac80211_bwflags (bw); - + arsta->tx_duration += tx_duration;memcpy (&arsta->last_txrate, &arsta->txrate,sizeof (struct rate_info ));if (succ_pkts) {
drivers/net/wireless/ath/ath11k/mac.c +3 -0
@@ -5316,6 +5316,9 @@ static void ath11k_mac_op_sta_statistics(struct ieee80211_hw *hw, sinfo->rx_duration = arsta->rx_duration; sinfo->filled |=BIT_ULL (NL80211_STA_INFO_RX_DURATION ); + sinfo->tx_duration = arsta->tx_duration; + sinfo->filled |=BIT_ULL (NL80211_STA_INFO_TX_DURATION ); +if (!arsta->txrate.legacy && !arsta->txrate.nss)return ;
Signature · 1 line
2.7.4
PATCH 5/9 ath11k: update tx duration in station info
In reply to a message not in the archiveFrom: Venkateswara Naralasetty <[email protected]>
Update tx duration in station info form PPDU stats so that users can dump tx duration of the station.
--- drivers/net/wireless/ath/ath11k/core.h | 1 + drivers/net/wireless/ath/ath11k/dp_rx.c | 2 +- drivers/net/wireless/ath/ath11k/mac.c | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/core.h +1 -0
@@ -335,6 +335,7 @@ struct ath11k_sta {struct rate_info txrate;struct rate_info last_txrate;u64 rx_duration; +u64 tx_duration;u8 rssi_comb;struct ath11k_htt_tx_stats *tx_stats;struct ath11k_rx_peer_stats *rx_stats;
drivers/net/wireless/ath/ath11k/dp_rx.c +1 -1
@@ -1147,7 +1147,7 @@ ath11k_update_per_peer_tx_stats(struct ath11k *ar, arsta->txrate.nss = nss; arsta->txrate.bw =ath11k_mac_bw_to_mac80211_bw (bw); arsta->tx_info.status.rates[0 ].flags |=ath11k_bw_to_mac80211_bwflags (bw); - + arsta->tx_duration += tx_duration;memcpy (&arsta->last_txrate, &arsta->txrate,sizeof (struct rate_info ));if (succ_pkts) {
drivers/net/wireless/ath/ath11k/mac.c +3 -0
@@ -5316,6 +5316,9 @@ static void ath11k_mac_op_sta_statistics(struct ieee80211_hw *hw, sinfo->rx_duration = arsta->rx_duration; sinfo->filled |=BIT_ULL (NL80211_STA_INFO_RX_DURATION ); + sinfo->tx_duration = arsta->tx_duration; + sinfo->filled |=BIT_ULL (NL80211_STA_INFO_TX_DURATION ); +if (!arsta->txrate.legacy && !arsta->txrate.nss)return ;
Signature · 7 lines
2.7.4 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 6/9 ath11k: Skip update peer stats for management packets
In reply to a message not in the archiveFrom: Venkateswara Naralasetty <[email protected]>
Currently HTT_PPDU_STATS_TAG_USR_COMPLTN_ACK_BA_STATUS tag of PPDU stats doesn't have valid success bytes info of management frames. So skip update peer stats for management packets.
--- drivers/net/wireless/ath/ath11k/dp.h | 4 +++- drivers/net/wireless/ath/ath11k/dp_rx.c | 33 ++++++++++++++++++++------------- 2 files changed, 23 insertions(+), 14 deletions(-)
drivers/net/wireless/ath/ath11k/dp.h +3 -1
@@ -1176,7 +1176,9 @@ struct htt_ppdu_stats_usr_cmpltn_cmn {#define HTT_PPDU_STATS_ACK_BA_INFO_NUM_MPDU_M GENMASK(8, 0)#define HTT_PPDU_STATS_ACK_BA_INFO_NUM_MSDU_M GENMASK(24, 9) -#define HTT_PPDU_STATS_ACK_BA_INFO_TID_NUM GENMASK(3, 0) +#define HTT_PPDU_STATS_ACK_BA_INFO_TID_NUM GENMASK(31, 25) + +#define HTT_PPDU_STATS_NON_QOS_TID 16struct htt_ppdu_stats_usr_cmpltn_ack_ba_status {u32 ppdu_id;
drivers/net/wireless/ath/ath11k/dp_rx.c +20 -13
@@ -1034,6 +1034,7 @@ ath11k_update_per_peer_tx_stats(struct ath11k *ar,u32 succ_bytes =0 ;u16 rate =0 , succ_pkts =0 ;u32 tx_duration =0 ; +u8 tid =HTT_PPDU_STATS_NON_QOS_TID ;bool is_ampdu = false;if (!usr_stats)
@@ -1051,6 +1052,8 @@ ath11k_update_per_peer_tx_stats(struct ath11k *ar, succ_bytes = usr_stats->ack_ba.success_bytes; succ_pkts =FIELD_GET (HTT_PPDU_STATS_ACK_BA_INFO_NUM_MSDU_M , usr_stats->ack_ba.info); + tid =FIELD_GET (HTT_PPDU_STATS_ACK_BA_INFO_TID_NUM , + usr_stats->ack_ba.info); }if (common->fes_duration_us)
@@ -1156,19 +1159,23 @@ ath11k_update_per_peer_tx_stats(struct ath11k *ar,ieee80211_tx_rate_update (ar->hw, sta, &arsta->tx_info); } -memset (peer_stats,0 ,sizeof (*peer_stats)); - - peer_stats->succ_pkts = succ_pkts; - peer_stats->succ_bytes = succ_bytes; - peer_stats->is_ampdu = is_ampdu; - peer_stats->duration = tx_duration; - peer_stats->ba_fails = -HTT_USR_CMPLTN_LONG_RETRY (usr_stats->cmpltn_cmn.flags) + -HTT_USR_CMPLTN_SHORT_RETRY (usr_stats->cmpltn_cmn.flags); - -if (ath11k_debug_is_extd_tx_stats_enabled (ar)) -ath11k_accumulate_per_peer_tx_stats (arsta, - peer_stats, rate_idx); +/* PPDU stats reported for mgmt packet doesn't have valid tx bytes. +* So skip peer stats update for mgmt packets. +*/ +if (tid <HTT_PPDU_STATS_NON_QOS_TID ) { +memset (peer_stats,0 ,sizeof (*peer_stats)); + peer_stats->succ_pkts = succ_pkts; + peer_stats->succ_bytes = succ_bytes; + peer_stats->is_ampdu = is_ampdu; + peer_stats->duration = tx_duration; + peer_stats->ba_fails = +HTT_USR_CMPLTN_LONG_RETRY (usr_stats->cmpltn_cmn.flags) + +HTT_USR_CMPLTN_SHORT_RETRY (usr_stats->cmpltn_cmn.flags); + +if (ath11k_debug_is_extd_tx_stats_enabled (ar)) +ath11k_accumulate_per_peer_tx_stats (arsta, + peer_stats, rate_idx); + }spin_unlock_bh (&ab->base_lock);rcu_read_unlock ();
Signature · 1 line
2.7.4
PATCH 6/9 ath11k: Skip update peer stats for management packets
In reply to a message not in the archiveFrom: Venkateswara Naralasetty <[email protected]>
Currently HTT_PPDU_STATS_TAG_USR_COMPLTN_ACK_BA_STATUS tag of PPDU stats doesn't have valid success bytes info of management frames. So skip update peer stats for management packets.
--- drivers/net/wireless/ath/ath11k/dp.h | 4 +++- drivers/net/wireless/ath/ath11k/dp_rx.c | 33 ++++++++++++++++++++------------- 2 files changed, 23 insertions(+), 14 deletions(-)
drivers/net/wireless/ath/ath11k/dp.h +3 -1
@@ -1176,7 +1176,9 @@ struct htt_ppdu_stats_usr_cmpltn_cmn {#define HTT_PPDU_STATS_ACK_BA_INFO_NUM_MPDU_M GENMASK(8, 0)#define HTT_PPDU_STATS_ACK_BA_INFO_NUM_MSDU_M GENMASK(24, 9) -#define HTT_PPDU_STATS_ACK_BA_INFO_TID_NUM GENMASK(3, 0) +#define HTT_PPDU_STATS_ACK_BA_INFO_TID_NUM GENMASK(31, 25) + +#define HTT_PPDU_STATS_NON_QOS_TID 16struct htt_ppdu_stats_usr_cmpltn_ack_ba_status {u32 ppdu_id;
drivers/net/wireless/ath/ath11k/dp_rx.c +20 -13
@@ -1034,6 +1034,7 @@ ath11k_update_per_peer_tx_stats(struct ath11k *ar,u32 succ_bytes =0 ;u16 rate =0 , succ_pkts =0 ;u32 tx_duration =0 ; +u8 tid =HTT_PPDU_STATS_NON_QOS_TID ;bool is_ampdu = false;if (!usr_stats)
@@ -1051,6 +1052,8 @@ ath11k_update_per_peer_tx_stats(struct ath11k *ar, succ_bytes = usr_stats->ack_ba.success_bytes; succ_pkts =FIELD_GET (HTT_PPDU_STATS_ACK_BA_INFO_NUM_MSDU_M , usr_stats->ack_ba.info); + tid =FIELD_GET (HTT_PPDU_STATS_ACK_BA_INFO_TID_NUM , + usr_stats->ack_ba.info); }if (common->fes_duration_us)
@@ -1156,19 +1159,23 @@ ath11k_update_per_peer_tx_stats(struct ath11k *ar,ieee80211_tx_rate_update (ar->hw, sta, &arsta->tx_info); } -memset (peer_stats,0 ,sizeof (*peer_stats)); - - peer_stats->succ_pkts = succ_pkts; - peer_stats->succ_bytes = succ_bytes; - peer_stats->is_ampdu = is_ampdu; - peer_stats->duration = tx_duration; - peer_stats->ba_fails = -HTT_USR_CMPLTN_LONG_RETRY (usr_stats->cmpltn_cmn.flags) + -HTT_USR_CMPLTN_SHORT_RETRY (usr_stats->cmpltn_cmn.flags); - -if (ath11k_debug_is_extd_tx_stats_enabled (ar)) -ath11k_accumulate_per_peer_tx_stats (arsta, - peer_stats, rate_idx); +/* PPDU stats reported for mgmt packet doesn't have valid tx bytes. +* So skip peer stats update for mgmt packets. +*/ +if (tid <HTT_PPDU_STATS_NON_QOS_TID ) { +memset (peer_stats,0 ,sizeof (*peer_stats)); + peer_stats->succ_pkts = succ_pkts; + peer_stats->succ_bytes = succ_bytes; + peer_stats->is_ampdu = is_ampdu; + peer_stats->duration = tx_duration; + peer_stats->ba_fails = +HTT_USR_CMPLTN_LONG_RETRY (usr_stats->cmpltn_cmn.flags) + +HTT_USR_CMPLTN_SHORT_RETRY (usr_stats->cmpltn_cmn.flags); + +if (ath11k_debug_is_extd_tx_stats_enabled (ar)) +ath11k_accumulate_per_peer_tx_stats (arsta, + peer_stats, rate_idx); + }spin_unlock_bh (&ab->base_lock);rcu_read_unlock ();
Signature · 7 lines
2.7.4 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 7/9 ath11k: Move mac80211 hw allocation before wmi_init command
In reply to a message not in the archiveFrom: Vasanthakumar Thiagarajan <[email protected]>
This is to prepare REO ring setup before sending wmi_init command. Firmware expects all the required REO rings to be setup while processing wmi_init command. But as per the current initialization sequence, REO ring configurations are done only after wmi_init command is sent. Also refactoring ath11k_mac_create() into ath11k_mac_alloc() and ath11k_mac_register() to it mac80211 hw structure available before sending wmi_init command.
--- drivers/net/wireless/ath/ath11k/core.c | 27 ++++++---- drivers/net/wireless/ath/ath11k/mac.c | 97 +++++++++++++++++++++------------- drivers/net/wireless/ath/ath11k/mac.h | 3 +- 3 files changed, 81 insertions(+), 46 deletions(-)
drivers/net/wireless/ath/ath11k/core.c +18 -9
@@ -378,23 +378,22 @@ static int ath11k_core_pdev_create(struct ath11k_base *ab)return ret; } - ret =ath11k_mac_create (ab); + ret =ath11k_mac_register (ab);if (ret) { -ath11k_err (ab,"failed to create new hw device with mac80211 :%d\n" , - ret); +ath11k_err (ab,"failed register the radio with mac80211: %d\n" , ret); goto err_pdev_debug; } ret =ath11k_dp_pdev_alloc (ab);if (ret) {ath11k_err (ab,"failed to attach DP pdev: %d\n" , ret); - goto err_mac_destroy; + goto err_mac_unregister; }return 0 ; -err_mac_destroy: -ath11k_mac_destroy (ab); +err_mac_unregister: +ath11k_mac_unregister (ab); err_pdev_debug:ath11k_debug_pdev_destroy (ab);
@@ -470,28 +469,37 @@ static int ath11k_core_start(struct ath11k_base *ab, goto err_hif_stop; } + ret =ath11k_mac_allocate (ab); +if (ret) { +ath11k_err (ab,"failed to create new hw device with mac80211 :%d\n" , + ret); + goto err_hif_stop; + } + ret =ath11k_wmi_cmd_init (ab);if (ret) {ath11k_err (ab,"failed to send wmi init cmd: %d\n" , ret); - goto err_hif_stop; + goto err_mac_destroy; } ret =ath11k_wmi_wait_for_unified_ready (ab);if (ret) {ath11k_err (ab,"failed to receive wmi unified ready event: %d\n" , ret); - goto err_hif_stop; + goto err_mac_destroy; } ret =ath11k_dp_tx_htt_h2t_ver_req_msg (ab);if (ret) {ath11k_err (ab,"failed to send htt version request message: %d\n" , ret); - goto err_hif_stop; + goto err_mac_destroy; }return 0 ; +err_mac_destroy: +ath11k_mac_destroy (ab); err_hif_stop:ath11k_ahb_stop (ab); err_wmi_detach:
@@ -537,6 +545,7 @@ int ath11k_core_qmi_firmware_ready(struct ath11k_base *ab) err_core_stop:ath11k_core_stop (ab); +ath11k_mac_destroy (ab); err_dp_free:ath11k_dp_free (ab);mutex_unlock (&ab->core_lock);
drivers/net/wireless/ath/ath11k/mac.c +61 -36
146 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/mac.h +2 -1
@@ -118,9 +118,10 @@ struct ath11k_generic_iter {extern const struct htt_rx_ring_tlv_filter ath11k_mac_mon_status_filter_default; -int ath11k_mac_create (struct ath11k_base *ab);void ath11k_mac_destroy (struct ath11k_base *ab);void ath11k_mac_unregister (struct ath11k_base *ab); +int ath11k_mac_register (struct ath11k_base *ab); +int ath11k_mac_allocate (struct ath11k_base *ab);int ath11k_mac_hw_ratecode_to_legacy_rate (u8 hw_rc,u8 preamble,u8 *rateidx,u16 *rate); u8 ath11k_mac_bitrate_to_idx(const struct ieee80211_supported_band *sband,
Signature · 1 line
2.7.4
PATCH 7/9 ath11k: Move mac80211 hw allocation before wmi_init command
In reply to a message not in the archiveFrom: Vasanthakumar Thiagarajan <[email protected]>
This is to prepare REO ring setup before sending wmi_init command. Firmware expects all the required REO rings to be setup while processing wmi_init command. But as per the current initialization sequence, REO ring configurations are done only after wmi_init command is sent. Also refactoring ath11k_mac_create() into ath11k_mac_alloc() and ath11k_mac_register() to it mac80211 hw structure available before sending wmi_init command.
--- drivers/net/wireless/ath/ath11k/core.c | 27 ++++++---- drivers/net/wireless/ath/ath11k/mac.c | 97 +++++++++++++++++++++------------- drivers/net/wireless/ath/ath11k/mac.h | 3 +- 3 files changed, 81 insertions(+), 46 deletions(-)
drivers/net/wireless/ath/ath11k/core.c +18 -9
@@ -378,23 +378,22 @@ static int ath11k_core_pdev_create(struct ath11k_base *ab)return ret; } - ret =ath11k_mac_create (ab); + ret =ath11k_mac_register (ab);if (ret) { -ath11k_err (ab,"failed to create new hw device with mac80211 :%d\n" , - ret); +ath11k_err (ab,"failed register the radio with mac80211: %d\n" , ret); goto err_pdev_debug; } ret =ath11k_dp_pdev_alloc (ab);if (ret) {ath11k_err (ab,"failed to attach DP pdev: %d\n" , ret); - goto err_mac_destroy; + goto err_mac_unregister; }return 0 ; -err_mac_destroy: -ath11k_mac_destroy (ab); +err_mac_unregister: +ath11k_mac_unregister (ab); err_pdev_debug:ath11k_debug_pdev_destroy (ab);
@@ -470,28 +469,37 @@ static int ath11k_core_start(struct ath11k_base *ab, goto err_hif_stop; } + ret =ath11k_mac_allocate (ab); +if (ret) { +ath11k_err (ab,"failed to create new hw device with mac80211 :%d\n" , + ret); + goto err_hif_stop; + } + ret =ath11k_wmi_cmd_init (ab);if (ret) {ath11k_err (ab,"failed to send wmi init cmd: %d\n" , ret); - goto err_hif_stop; + goto err_mac_destroy; } ret =ath11k_wmi_wait_for_unified_ready (ab);if (ret) {ath11k_err (ab,"failed to receive wmi unified ready event: %d\n" , ret); - goto err_hif_stop; + goto err_mac_destroy; } ret =ath11k_dp_tx_htt_h2t_ver_req_msg (ab);if (ret) {ath11k_err (ab,"failed to send htt version request message: %d\n" , ret); - goto err_hif_stop; + goto err_mac_destroy; }return 0 ; +err_mac_destroy: +ath11k_mac_destroy (ab); err_hif_stop:ath11k_ahb_stop (ab); err_wmi_detach:
@@ -537,6 +545,7 @@ int ath11k_core_qmi_firmware_ready(struct ath11k_base *ab) err_core_stop:ath11k_core_stop (ab); +ath11k_mac_destroy (ab); err_dp_free:ath11k_dp_free (ab);mutex_unlock (&ab->core_lock);
drivers/net/wireless/ath/ath11k/mac.c +61 -36
146 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/mac.h +2 -1
@@ -118,9 +118,10 @@ struct ath11k_generic_iter {extern const struct htt_rx_ring_tlv_filter ath11k_mac_mon_status_filter_default; -int ath11k_mac_create (struct ath11k_base *ab);void ath11k_mac_destroy (struct ath11k_base *ab);void ath11k_mac_unregister (struct ath11k_base *ab); +int ath11k_mac_register (struct ath11k_base *ab); +int ath11k_mac_allocate (struct ath11k_base *ab);int ath11k_mac_hw_ratecode_to_legacy_rate (u8 hw_rc,u8 preamble,u8 *rateidx,u16 *rate); u8 ath11k_mac_bitrate_to_idx(const struct ieee80211_supported_band *sband,
Signature · 7 lines
2.7.4 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 8/9 ath11k: Setup REO destination ring before sending wmi_init command
In reply to a message not in the archiveFrom: Vasanthakumar Thiagarajan <[email protected]>
Firmware expects all the required REO destination rings setup while processing wmi_init command. Not doing this causes connected stations getting disconnected and not able to connect back.
--- drivers/net/wireless/ath/ath11k/core.c | 19 +++++++++++-- drivers/net/wireless/ath/ath11k/dp.c | 10 +++++-- drivers/net/wireless/ath/ath11k/dp.h | 1 + drivers/net/wireless/ath/ath11k/dp_rx.c | 49 +++++++++++++++++++++++++++------ drivers/net/wireless/ath/ath11k/dp_rx.h | 2 ++ 5 files changed, 67 insertions(+), 14 deletions(-)
drivers/net/wireless/ath/ath11k/core.c +16 -3
@@ -10,6 +10,7 @@#include "ahb.h" #include "core.h" #include "dp_tx.h" +#include "dp_rx.h" #include "debug.h" unsigned int ath11k_debug_mask;
@@ -325,6 +326,7 @@ static void ath11k_core_stop(struct ath11k_base *ab)ath11k_qmi_firmware_stop (ab);ath11k_ahb_stop (ab);ath11k_wmi_detach (ab); +ath11k_dp_pdev_reo_cleanup (ab);/* De-Init of components as needed */ }
@@ -476,28 +478,38 @@ static int ath11k_core_start(struct ath11k_base *ab, goto err_hif_stop; } +ath11k_dp_pdev_pre_alloc (ab); + + ret =ath11k_dp_pdev_reo_setup (ab); +if (ret) { +ath11k_err (ab,"failed to initialize reo destination rings: %d\n" , ret); + goto err_mac_destroy; + } + ret =ath11k_wmi_cmd_init (ab);if (ret) {ath11k_err (ab,"failed to send wmi init cmd: %d\n" , ret); - goto err_mac_destroy; + goto err_reo_cleanup; } ret =ath11k_wmi_wait_for_unified_ready (ab);if (ret) {ath11k_err (ab,"failed to receive wmi unified ready event: %d\n" , ret); - goto err_mac_destroy; + goto err_reo_cleanup; } ret =ath11k_dp_tx_htt_h2t_ver_req_msg (ab);if (ret) {ath11k_err (ab,"failed to send htt version request message: %d\n" , ret); - goto err_mac_destroy; + goto err_reo_cleanup; }return 0 ; +err_reo_cleanup: +ath11k_dp_pdev_reo_cleanup (ab); err_mac_destroy:ath11k_mac_destroy (ab); err_hif_stop:
@@ -561,6 +573,7 @@ static int ath11k_core_reconfigure_on_crash(struct ath11k_base *ab)ath11k_dp_pdev_free (ab);ath11k_ahb_stop (ab);ath11k_wmi_detach (ab); +ath11k_dp_pdev_reo_cleanup (ab);mutex_unlock (&ab->core_lock);ath11k_dp_free (ab);
drivers/net/wireless/ath/ath11k/dp.c +8 -2
@@ -684,11 +684,10 @@ void ath11k_dp_pdev_free(struct ath11k_base *ab) } } -int ath11k_dp_pdev_alloc (struct ath11k_base *ab) +void ath11k_dp_pdev_pre_alloc (struct ath11k_base *ab) {struct ath11k *ar;struct ath11k_pdev_dp *dp; -int ret;int i;for (i =0 ; i < ab->num_radios; i++) {
@@ -704,6 +703,13 @@ int ath11k_dp_pdev_alloc(struct ath11k_base *ab)idr_init (&dp->rxdma_mon_buf_ring.bufs_idr);spin_lock_init (&dp->rxdma_mon_buf_ring.idr_lock); } +} + +int ath11k_dp_pdev_alloc (struct ath11k_base *ab) +{ +struct ath11k *ar; +int ret; +int i;/* TODO:Per-pdev rx ring unlike tx ring which is mapped to different AC's */ for (i =0 ; i < ab->num_radios; i++) {
drivers/net/wireless/ath/ath11k/dp.h +1 -0
@@ -1507,6 +1507,7 @@ void ath11k_dp_vdev_tx_attach(struct ath11k *ar, struct ath11k_vif *arvif);void ath11k_dp_free (struct ath11k_base *ab);int ath11k_dp_alloc (struct ath11k_base *ab);int ath11k_dp_pdev_alloc (struct ath11k_base *ab); +void ath11k_dp_pdev_pre_alloc (struct ath11k_base *ab);void ath11k_dp_pdev_free (struct ath11k_base *ab);int ath11k_dp_tx_htt_srng_setup (struct ath11k_base *ab,u32 ring_id,int mac_id,enum hal_ring_type ring_type);
drivers/net/wireless/ath/ath11k/dp_rx.c +40 -9
66 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/dp_rx.h +2 -0
@@ -48,6 +48,8 @@ int ath11k_peer_rx_tid_setup(struct ath11k *ar, const u8 *peer_mac, int vdev_id, u8 tid, u32 ba_win_sz, u16 ssn);void ath11k_dp_htt_htc_t2h_msg_handler (struct ath11k_base *ab,struct sk_buff *skb); +int ath11k_dp_pdev_reo_setup (struct ath11k_base *ab); +void ath11k_dp_pdev_reo_cleanup (struct ath11k_base *ab);int ath11k_dp_rx_pdev_alloc (struct ath11k_base *ab,int pdev_idx);void ath11k_dp_rx_pdev_free (struct ath11k_base *ab,int pdev_idx);void ath11k_dp_reo_cmd_list_cleanup (struct ath11k_base *ab);
Signature · 1 line
2.7.4
PATCH 8/9 ath11k: Setup REO destination ring before sending wmi_init command
In reply to a message not in the archiveFrom: Vasanthakumar Thiagarajan <[email protected]>
Firmware expects all the required REO destination rings setup while processing wmi_init command. Not doing this causes connected stations getting disconnected and not able to connect back.
--- drivers/net/wireless/ath/ath11k/core.c | 19 +++++++++++-- drivers/net/wireless/ath/ath11k/dp.c | 10 +++++-- drivers/net/wireless/ath/ath11k/dp.h | 1 + drivers/net/wireless/ath/ath11k/dp_rx.c | 49 +++++++++++++++++++++++++++------ drivers/net/wireless/ath/ath11k/dp_rx.h | 2 ++ 5 files changed, 67 insertions(+), 14 deletions(-)
drivers/net/wireless/ath/ath11k/core.c +16 -3
@@ -10,6 +10,7 @@#include "ahb.h" #include "core.h" #include "dp_tx.h" +#include "dp_rx.h" #include "debug.h" unsigned int ath11k_debug_mask;
@@ -325,6 +326,7 @@ static void ath11k_core_stop(struct ath11k_base *ab)ath11k_qmi_firmware_stop (ab);ath11k_ahb_stop (ab);ath11k_wmi_detach (ab); +ath11k_dp_pdev_reo_cleanup (ab);/* De-Init of components as needed */ }
@@ -476,28 +478,38 @@ static int ath11k_core_start(struct ath11k_base *ab, goto err_hif_stop; } +ath11k_dp_pdev_pre_alloc (ab); + + ret =ath11k_dp_pdev_reo_setup (ab); +if (ret) { +ath11k_err (ab,"failed to initialize reo destination rings: %d\n" , ret); + goto err_mac_destroy; + } + ret =ath11k_wmi_cmd_init (ab);if (ret) {ath11k_err (ab,"failed to send wmi init cmd: %d\n" , ret); - goto err_mac_destroy; + goto err_reo_cleanup; } ret =ath11k_wmi_wait_for_unified_ready (ab);if (ret) {ath11k_err (ab,"failed to receive wmi unified ready event: %d\n" , ret); - goto err_mac_destroy; + goto err_reo_cleanup; } ret =ath11k_dp_tx_htt_h2t_ver_req_msg (ab);if (ret) {ath11k_err (ab,"failed to send htt version request message: %d\n" , ret); - goto err_mac_destroy; + goto err_reo_cleanup; }return 0 ; +err_reo_cleanup: +ath11k_dp_pdev_reo_cleanup (ab); err_mac_destroy:ath11k_mac_destroy (ab); err_hif_stop:
@@ -561,6 +573,7 @@ static int ath11k_core_reconfigure_on_crash(struct ath11k_base *ab)ath11k_dp_pdev_free (ab);ath11k_ahb_stop (ab);ath11k_wmi_detach (ab); +ath11k_dp_pdev_reo_cleanup (ab);mutex_unlock (&ab->core_lock);ath11k_dp_free (ab);
drivers/net/wireless/ath/ath11k/dp.c +8 -2
@@ -684,11 +684,10 @@ void ath11k_dp_pdev_free(struct ath11k_base *ab) } } -int ath11k_dp_pdev_alloc (struct ath11k_base *ab) +void ath11k_dp_pdev_pre_alloc (struct ath11k_base *ab) {struct ath11k *ar;struct ath11k_pdev_dp *dp; -int ret;int i;for (i =0 ; i < ab->num_radios; i++) {
@@ -704,6 +703,13 @@ int ath11k_dp_pdev_alloc(struct ath11k_base *ab)idr_init (&dp->rxdma_mon_buf_ring.bufs_idr);spin_lock_init (&dp->rxdma_mon_buf_ring.idr_lock); } +} + +int ath11k_dp_pdev_alloc (struct ath11k_base *ab) +{ +struct ath11k *ar; +int ret; +int i;/* TODO:Per-pdev rx ring unlike tx ring which is mapped to different AC's */ for (i =0 ; i < ab->num_radios; i++) {
drivers/net/wireless/ath/ath11k/dp.h +1 -0
@@ -1507,6 +1507,7 @@ void ath11k_dp_vdev_tx_attach(struct ath11k *ar, struct ath11k_vif *arvif);void ath11k_dp_free (struct ath11k_base *ab);int ath11k_dp_alloc (struct ath11k_base *ab);int ath11k_dp_pdev_alloc (struct ath11k_base *ab); +void ath11k_dp_pdev_pre_alloc (struct ath11k_base *ab);void ath11k_dp_pdev_free (struct ath11k_base *ab);int ath11k_dp_tx_htt_srng_setup (struct ath11k_base *ab,u32 ring_id,int mac_id,enum hal_ring_type ring_type);
drivers/net/wireless/ath/ath11k/dp_rx.c +40 -9
66 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/dp_rx.h +2 -0
@@ -48,6 +48,8 @@ int ath11k_peer_rx_tid_setup(struct ath11k *ar, const u8 *peer_mac, int vdev_id, u8 tid, u32 ba_win_sz, u16 ssn);void ath11k_dp_htt_htc_t2h_msg_handler (struct ath11k_base *ab,struct sk_buff *skb); +int ath11k_dp_pdev_reo_setup (struct ath11k_base *ab); +void ath11k_dp_pdev_reo_cleanup (struct ath11k_base *ab);int ath11k_dp_rx_pdev_alloc (struct ath11k_base *ab,int pdev_idx);void ath11k_dp_rx_pdev_free (struct ath11k_base *ab,int pdev_idx);void ath11k_dp_reo_cmd_list_cleanup (struct ath11k_base *ab);
Signature · 7 lines
2.7.4 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 9/9 ath11k: fix indentation in ath11k_mac_prepare_he_mode()
In reply to a message not in the archiveFrom: John Crispin <[email protected]>
--- drivers/net/wireless/ath/ath11k/mac.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/net/wireless/ath/ath11k/mac.c +5 -5
@@ -3883,15 +3883,15 @@ ath11k_mac_prepare_he_mode(struct ath11k_pdev *pdev, u32 viftype) hecap_phy_ptr = &cap_band->he_cap_phy_info[0 ]; hemode =FIELD_PREP (HE_MODE_SU_TX_BFEE ,HE_SU_BFEE_ENABLE ) | -FIELD_PREP (HE_MODE_SU_TX_BFER ,HECAP_PHY_SUBFMR_GET (hecap_phy_ptr)) | -FIELD_PREP (HE_MODE_UL_MUMIMO ,HECAP_PHY_ULMUMIMO_GET (hecap_phy_ptr)); +FIELD_PREP (HE_MODE_SU_TX_BFER ,HECAP_PHY_SUBFMR_GET (hecap_phy_ptr)) | +FIELD_PREP (HE_MODE_UL_MUMIMO ,HECAP_PHY_ULMUMIMO_GET (hecap_phy_ptr));/* TODO WDS and other modes */ if (viftype ==NL80211_IFTYPE_AP ) { hemode |=FIELD_PREP (HE_MODE_MU_TX_BFER , -HECAP_PHY_MUBFMR_GET (hecap_phy_ptr)) | -FIELD_PREP (HE_MODE_DL_OFDMA ,HE_DL_MUOFDMA_ENABLE ) | -FIELD_PREP (HE_MODE_UL_OFDMA ,HE_UL_MUOFDMA_ENABLE ); +HECAP_PHY_MUBFMR_GET (hecap_phy_ptr)) | +FIELD_PREP (HE_MODE_DL_OFDMA ,HE_DL_MUOFDMA_ENABLE ) | +FIELD_PREP (HE_MODE_UL_OFDMA ,HE_UL_MUOFDMA_ENABLE ); }else { hemode |=FIELD_PREP (HE_MODE_MU_TX_BFEE ,HE_MU_BFEE_ENABLE ); }
Signature · 7 lines
2.7.4 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 9/9 ath11k: fix indentation in ath11k_mac_prepare_he_mode()
In reply to a message not in the archiveFrom: John Crispin <[email protected]>
--- drivers/net/wireless/ath/ath11k/mac.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/net/wireless/ath/ath11k/mac.c +5 -5
@@ -3883,15 +3883,15 @@ ath11k_mac_prepare_he_mode(struct ath11k_pdev *pdev, u32 viftype) hecap_phy_ptr = &cap_band->he_cap_phy_info[0 ]; hemode =FIELD_PREP (HE_MODE_SU_TX_BFEE ,HE_SU_BFEE_ENABLE ) | -FIELD_PREP (HE_MODE_SU_TX_BFER ,HECAP_PHY_SUBFMR_GET (hecap_phy_ptr)) | -FIELD_PREP (HE_MODE_UL_MUMIMO ,HECAP_PHY_ULMUMIMO_GET (hecap_phy_ptr)); +FIELD_PREP (HE_MODE_SU_TX_BFER ,HECAP_PHY_SUBFMR_GET (hecap_phy_ptr)) | +FIELD_PREP (HE_MODE_UL_MUMIMO ,HECAP_PHY_ULMUMIMO_GET (hecap_phy_ptr));/* TODO WDS and other modes */ if (viftype ==NL80211_IFTYPE_AP ) { hemode |=FIELD_PREP (HE_MODE_MU_TX_BFER , -HECAP_PHY_MUBFMR_GET (hecap_phy_ptr)) | -FIELD_PREP (HE_MODE_DL_OFDMA ,HE_DL_MUOFDMA_ENABLE ) | -FIELD_PREP (HE_MODE_UL_OFDMA ,HE_UL_MUOFDMA_ENABLE ); +HECAP_PHY_MUBFMR_GET (hecap_phy_ptr)) | +FIELD_PREP (HE_MODE_DL_OFDMA ,HE_DL_MUOFDMA_ENABLE ) | +FIELD_PREP (HE_MODE_UL_OFDMA ,HE_UL_MUOFDMA_ENABLE ); }else { hemode |=FIELD_PREP (HE_MODE_MU_TX_BFEE ,HE_MU_BFEE_ENABLE ); }
Signature · 1 line
2.7.4